Thanks for that – I’ll check that node out.
Well, for those of us looking to use Node-Red for IOT, the one thing that is missing is a replacement for the good old timer. The inject tool is ok but very limiting… so what I want and am trying to create, hampered only by the utter lack of debugging ability when the JS doesn’t work – is a super version of the old mechanical timer…
A simple example of use which will not work with Inject..
Turn the hose on at dusk every night for 15 minutes but only in the summer.
I’ve modified the sunrise node so I can get dusk and dawn out of it – that works – I’ve published that elsewhere (and made a mistake which I need to fix) but I’ve not tried to add in start and end times – and…. It kills Node-Red – no error messages, nothing… I must’ve stared at the code 100 times…
--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/eyDCH9mis3Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You might try a different tack. Use an inject node to send a message every minute or so to a function node with code that determines 'should the hose be on now?'. It's not the most node-RED way to do it but it might be easier!Max
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.