webpage - How to create simple Node Red Web Page to display "HTTP In" node data from my device -


i can push json formatted sensor data using http post out of arduino uno/adafruit cc3000 wifi shield bluemix , see on node red debug console using "http in" , "debug node". works perfectly! (had use http post since out of memory on arduino uno , http post leanest way move data.)

my question: within node red, how take output of "http in" node , put on web page served bluemix displays last 5 sets of sensor data pushed out every 5 minutes. web page should not need manually refreshed visitor page.

there many possible ways depending on how want store history of sensor readings or server basic html file. i'll outline idea keeping values in memory.

basically simplest way enable static file serving (see node-red doc here) , serve basic html file javascript can connect websocket.

your original http-in (post) should connected function node push values global context , http-out close out post properly. want branch flow websocket-out (listen) node javascript in web page can connect in order latest values pushed page in realtime.

the static page can use http-in(get) node function node (or template node) read pervious values out of context lined corresponding http-out node.

that should enough looking in right direction


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -