How would you suggest integrating HH and Node.js? The JSON API?
I've been playing around with creating a simple TCP server running on Node.js in order to provide feedback from an HAI panel to an RTI XP-6 controller. RTI does make a driver for HAI, however it's buggy and unreliable (the driver tends to hang while retrieving certain types of information from the HAI panel). Until they update the driver, I've been using limited 1-way control over a global cache RS-232 port. RTI does make a simple 2-way "strings" driver that can send/receive simple ascii strings over tcp so why not have Node.js be the glue between HH and the RTI system. Something like:
RTI Controller sends ascii "U1" - Node.js TCP server receives string / queries HH JSON object / Sends back ascii "ON" to RTI - The RTI controller now updates a flag and any connected remotes know unit 1 is actually on.
Moving forward, I could see even keeping some states in Node.js too rather than querying each request. What do you think?
I've been playing around with creating a simple TCP server running on Node.js in order to provide feedback from an HAI panel to an RTI XP-6 controller. RTI does make a driver for HAI, however it's buggy and unreliable (the driver tends to hang while retrieving certain types of information from the HAI panel). Until they update the driver, I've been using limited 1-way control over a global cache RS-232 port. RTI does make a simple 2-way "strings" driver that can send/receive simple ascii strings over tcp so why not have Node.js be the glue between HH and the RTI system. Something like:
RTI Controller sends ascii "U1" - Node.js TCP server receives string / queries HH JSON object / Sends back ascii "ON" to RTI - The RTI controller now updates a flag and any connected remotes know unit 1 is actually on.
Moving forward, I could see even keeping some states in Node.js too rather than querying each request. What do you think?