I just received my first RevPi Compact. I am planning to write my control program in nodejs/javascript. But I have not been able to find an example how to read, write, listen to changes of the IOs with Javascript.
What would you recommend to be the best approach and is there some example code somewhere?
One option I can see is https://github.com/erminas/noderedrevpinodes-server ... although there are no examples how to use it so I will have to go through the code to try work it out.
Another option I can see is to call the shell command
Code: Select all
piTest -r
Code: Select all
piTest -r DIn_Status
Code: Select all
piTest -r RevPiLED
Thanks for any advice.
Shea