From b0d98cca019c4ac4a75225d2f8167b0b02c9b28a Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sun, 23 Sep 2018 20:32:11 +0100 Subject: [PATCH] check for correct version of neopixel library --- hardware/neopixel/neopixel.js | 2 +- hardware/neopixel/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 hardware/neopixel/neopixel.js diff --git a/hardware/neopixel/neopixel.js b/hardware/neopixel/neopixel.js old mode 100755 new mode 100644 index c8781367..815326e3 --- a/hardware/neopixel/neopixel.js +++ b/hardware/neopixel/neopixel.js @@ -14,7 +14,7 @@ module.exports = function(RED) { RED.log.warn("rpi-neopixels : "+RED._("node-red:rpi-gpio.errors.ignorenode")); allOK = false; } - else if (execSync('python -c "import neopixel"').toString() !== "") { + else if (execSync('python -c "import rpi_ws281x"').toString() !== "") { RED.log.warn("rpi-neopixels : Can't find neopixel python library"); allOK = false; } diff --git a/hardware/neopixel/package.json b/hardware/neopixel/package.json index eca2cf6b..a9bf250a 100644 --- a/hardware/neopixel/package.json +++ b/hardware/neopixel/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pi-neopixel", - "version" : "0.0.21", + "version" : "0.0.22", "description" : "A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.", "dependencies" : { },