National Control Devices will be closed for the holidays from December 22nd through January 2nd. Orders placed during this time will begin processing when we reopen on January 2nd, 2019.
Please keep in mind our standard lead times when placing orders Dismiss

You are using an unsupported browser!

Please upgrade your version of IE to at least 9, or use a modern browser such as Chrome or Firefox.

Pressure/Temperature Dashboard

Node-RED Dashboard Flow

The examples in this series are for use with Node-RED and our Wireless Enterprise line of products. If you haven’t already, check out this post, which will explain the packages required for this flow.

This example will set up a dashboard with 2 tabs, one containing current readings, the other showing historical data. All telemetry reported from the sensor is displayed in both tabs.

Usage

Click on the flow below to copy it to your clipboard.

From the hamburger menu on the top right of your flow window, hover over import, click clipboard, and paste in the copied flow.

Double click on the Wireless Gateway node and set up the “Serial Device” field.

At this point you can deploy (it will throw an error about unconfigured nodes, this is fine).

Go to the other node that still shows a triangle, indicating it needs additional configuration, and select the serial device you just created from the drop down.

Deploy again and you will begin receiving telemetry when the sensor is restarted, or at the interval indicated by the settings stored in the sensor.

Pressure/Temperature Dashboard - Current

The Flow

[{"id":"400cba0d.021bd4","type":"ncd-wireless-node","z":"13754c0b.dca3a4","name":"Pressure/Temperature","connection":"","config_comm":"","addr":"","sensor_type":"6","auto_config":true,"node_id":0,"delay":"5","destination":"0000FFFF","power":"1","retries":10,"pan_id":"7FFF","change_enabled":false,"change_pr":"0","change_interval":"0","cm_calibration":"0","bp_altitude":"0","bp_pressure":"0","bp_temp_prec":"0","bp_press_prec":"0","amgt_accel":"0","amgt_mag":"0","amgt_gyro":"0","x":120,"y":340,"wires":[["af59356d.0f23f8","9a2a7cbf.76161"]]},{"id":"af59356d.0f23f8","type":"split","z":"13754c0b.dca3a4","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":310,"y":320,"wires":[["e24a52cf.d53e2"]]},{"id":"e24a52cf.d53e2","type":"switch","z":"13754c0b.dca3a4","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"absolute_pressure","vt":"str"},{"t":"eq","v":"relative_pressure","vt":"str"},{"t":"eq","v":"altitude_change","vt":"str"},{"t":"eq","v":"temperature","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":430,"y":320,"wires":[["8aecc887.85b3a8","f9ca4edf.47aa4"],["a59fc3b1.f0d74","ee7b70f5.01003"],["b66e142a.3e3ae8","949b51d2.d1e08"],["91a15743.aa9538"]]},{"id":"8aecc887.85b3a8","type":"ui_chart","z":"13754c0b.dca3a4","name":"","group":"8b6cb092.e5788","order":1,"width":"12","height":"6","label":"Absolute Pressure","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":990,"y":200,"wires":[[],[]]},{"id":"9a2a7cbf.76161","type":"change","z":"13754c0b.dca3a4","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"data.battery","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":580,"wires":[["238470ce.4d10f"]]},{"id":"786bff29.83c1f","type":"ncd-gateway-node","z":"13754c0b.dca3a4","name":"","connection":"","x":170,"y":140,"wires":[["e2d8807d.240c6"]]},{"id":"e2d8807d.240c6","type":"debug","z":"13754c0b.dca3a4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":430,"y":80,"wires":[]},{"id":"91a15743.aa9538","type":"function","z":"13754c0b.dca3a4","name":"C to F","func":"msg.payload = (msg.payload * 1.8) + 32;\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":500,"wires":[["4adf4a13.461a44","5cc8646d.11e81c"]]},{"id":"4adf4a13.461a44","type":"ui_gauge","z":"13754c0b.dca3a4","name":"","group":"60afd6aa.b52828","order":4,"width":"6","height":"4","gtype":"gage","title":"Temperature","label":"Fahrenheit","format":"{{value | number:2}}","min":"30","max":"100","colors":["#dad0ff","#2ce619","#ca3838"],"seg1":"","seg2":"","x":770,"y":520,"wires":[]},{"id":"238470ce.4d10f","type":"ui_gauge","z":"13754c0b.dca3a4","name":"","group":"60afd6aa.b52828","order":5,"width":"6","height":"4","gtype":"gage","title":"Battery","label":"V","format":"{{value | number:2}}","min":0,"max":"3.3","colors":["#e00600","#e6e600","#07ca00"],"seg1":"","seg2":"","x":680,"y":580,"wires":[]},{"id":"5cc8646d.11e81c","type":"ui_chart","z":"13754c0b.dca3a4","name":"","group":"8b6cb092.e5788","order":4,"width":"12","height":"6","label":"Temperature","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":970,"y":500,"wires":[[],[]]},{"id":"f9ca4edf.47aa4","type":"ui_gauge","z":"13754c0b.dca3a4","name":"","group":"60afd6aa.b52828","order":1,"width":"4","height":"4","gtype":"gage","title":"Absolute Pressure","label":"mbar","format":"{{value}}","min":0,"max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":770,"y":200,"wires":[]},{"id":"ee7b70f5.01003","type":"ui_chart","z":"13754c0b.dca3a4","name":"","group":"8b6cb092.e5788","order":2,"width":"12","height":"6","label":"Relative Pressure","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":990,"y":280,"wires":[[],[]]},{"id":"a59fc3b1.f0d74","type":"ui_gauge","z":"13754c0b.dca3a4","name":"","group":"60afd6aa.b52828","order":2,"width":"4","height":"4","gtype":"gage","title":"Relative Pressure","label":"mbar","format":"{{value}}","min":0,"max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":770,"y":280,"wires":[]},{"id":"949b51d2.d1e08","type":"ui_chart","z":"13754c0b.dca3a4","name":"","group":"8b6cb092.e5788","order":3,"width":"12","height":"6","label":"Altitude Change","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":980,"y":380,"wires":[[],[]]},{"id":"b66e142a.3e3ae8","type":"ui_gauge","z":"13754c0b.dca3a4","name":"","group":"60afd6aa.b52828","order":3,"width":"4","height":"4","gtype":"gage","title":"Altitude Change","label":"m","format":"{{value}}","min":0,"max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":760,"y":380,"wires":[]},{"id":"8b6cb092.e5788","type":"ui_group","z":"","name":"Pressure/Temperature","tab":"38410f18.307bb","disp":true,"width":"24","collapse":false},{"id":"60afd6aa.b52828","type":"ui_group","z":"","name":"Pressure/Temperature","tab":"4c7c29de.f9ea38","disp":true,"width":"12","collapse":false},{"id":"38410f18.307bb","type":"ui_tab","z":"","name":"History","icon":"dashboard"},{"id":"4c7c29de.f9ea38","type":"ui_tab","z":"","name":"Current","icon":"dashboard"}]

ControlAnything.com and ControlEverything Site Migration Notes

©2018 National Control Devices, LLC

ncd.io

Made in the USA
5 Year Warranty
Free Shipping on orders over $100
Free Shipping on orders over $100

To learn something new, take the path that you took yesterday. ~John Burroughs

*

Log in with your credentials

or    

Forgot your details?

Create Account