Update Pi Hardware nodes that call python

Pibrella, PiLiter, PiLcd
This commit is contained in:
Dave Conway-Jones
2015-12-12 16:33:39 +00:00
parent 11dfcd4a46
commit 1a9da583f1
8 changed files with 94 additions and 22 deletions

0
hardware/PiLcd/nrlcd.py Normal file → Executable file
View File

View File

@@ -1,6 +1,6 @@
{
"name" : "node-red-node-pilcd",
"version" : "0.0.1",
"version" : "0.0.2",
"description" : "A Node-RED node for Raspberry Pi to write to HD44780 style LCD panels.",
"dependencies" : {
},

View File

@@ -20,7 +20,7 @@ module.exports = function(RED) {
var spawn = require('child_process').spawn;
var fs = require('fs');
var gpioCommand = __dirname + '/nrlcd';
var gpioCommand = __dirname + '/nrlcd.py';
if (!fs.existsSync("/dev/ttyAMA0")) { // unlikely if not on a Pi
//util.log("Info : Ignoring Raspberry Pi specific node.");