experimenting with nodejs - open thermostat scheduler
Submitted by TrystanLea on Wed, 17/12/2014 - 11:54
I've been experimenting with nodejs for the server side component of the 'open thermostat scheduler' web application here: https://github.com/emoncms/development/tree/master/experimental/control/... - primarily because of its relatively easy to use web socket (socket.io) support which I think could be useful for emoncms + control applications to get fast response times both from browser to rfm node network and the other way around.
Im quite new to nodejs and im interested to know if there is interest among other forum members for using nodejs?
I got as far as getting basic session support running on the express app side of things but struggling a bit with sharing that same session information across to the socket connection at the moment, I understand that I need to go via a session store, possibly in redis somehow but not quite got there yet. A lot of the documentation on the web is for different versions of node/express etc as it seems its all evolving quite fast..
experimenting with nodejs - open thermostat scheduler
Submitted by TrystanLea on Wed, 17/12/2014 - 11:54I've been experimenting with nodejs for the server side component of the 'open thermostat scheduler' web application here: https://github.com/emoncms/development/tree/master/experimental/control/... - primarily because of its relatively easy to use web socket (socket.io) support which I think could be useful for emoncms + control applications to get fast response times both from browser to rfm node network and the other way around.
The source code for what I've done so far is up here: https://github.com/emoncms/development/blob/master/experimental/control/...
Im quite new to nodejs and im interested to know if there is interest among other forum members for using nodejs?
I got as far as getting basic session support running on the express app side of things but struggling a bit with sharing that same session information across to the socket connection at the moment, I understand that I need to go via a session store, possibly in redis somehow but not quite got there yet. A lot of the documentation on the web is for different versions of node/express etc as it seems its all evolving quite fast..