(sorry if this is show up twice - I posted this July 17, 2015 at 8:58 AM - according to the email I received - but the thread is gone??)
platform: rpi B model 2
I have a piface digital atached to the pi and have installed node-red-n...@0.0.3
I built a simple flow with two injection nodes - one sends a 1, the the other sends a 0, and the PiFace Out node. The on/off nodes also go to a debug node. This works fine until I shutdown node-red.
When I start, I get this on the console:
pi@raspberrypi ~ $ sudo node-red-pi –max-old-space-size=128 -v
Welcome to Node-RED
===================
25 Jul 05:39:04 - [info] Node-RED version: v0.11.1
25 Jul 05:39:04 - [info] Node.js version: v0.12.7
25 Jul 05:39:04 - [info] Loading palette nodes
25 Jul 05:39:11 - [info] Settings file : /usr/lib/node_modules/node-red/settings.js
25 Jul 05:39:11 - [info] User directory : /root/.node-red
25 Jul 05:39:11 - [info] Flows file : /root/.node-red/–max-old-space-size=128
25 Jul 05:39:11 - [info] Server now running at http://127.0.0.1:1880/
25 Jul 05:39:11 - [info] Starting flows
25 Jul 05:39:11 - [info] Waiting for missing types to be registered:
25 Jul 05:39:11 - [info] - rpi-piface out
25 Jul 05:39:12 - [info] Missing type registered: rpi-piface out
When I press the 'on' then 'off' injection nodes, I see this in the debug/console:
25 Jul 05:39:33 - [info] [debug:Debug] 1
25 Jul 05:39:35 - [info] [debug:Debug] 0
but the led fails to turn on. If I add any node and delete it or delete one of the wirings and re-add it and re-deploy the log shows:
25 Jul 05:43:04 - [info] Stopping flows
25 Jul 05:43:04 - [info] Stopped flows
25 Jul 05:43:04 - [info] Starting flows
25 Jul 05:43:04 - [info] Started flows
25 Jul 05:43:06 - [info] [debug:Debug] 1
25 Jul 05:43:08 - [info] [debug:Debug] 0
and the led starts turning on and off.
Any ideas?
Hi,
There may be some time sensitive init code in there that may be interacting with the node presence check in some way. I would take a look but am on hols for a bit so won't get to it for a while.