Public Repository

Last pushed: 7 months ago
Short Description
my first trial for building node-red from node.js and add some net-util tools
Full Description

my first trial for building node-red from node.js and add some net-util tools,Need to add more...

as soon as the image is pulled to local, use:

docker run -d -p 1888:1880 bd19
get running container id (ie:1bcd)
docker exec -ti 1bcd bash (enter container)
$31231312312312312-for-example>node-red

[{"id":"9bbb9a8c.95d258","type":"mqtt in","z":"d21124ec.f55d18","name":"getIAQ1","topic":"iaq/data","qos":"1","broker":"19fd21e5.7b56ae","x":119,"y":51.62109375,"wires":[["1849327d.73cd9e","ef4f2fb5.5f29b"]]},{"id":"1849327d.73cd9e","type":"debug","z":"d21124ec.f55d18","name":"","active":false,"console":"false","complete":"payload","x":615.98828125,"y":20,"wires":[]},{"id":"ef4f2fb5.5f29b","type":"json","z":"d21124ec.f55d18","name":"","x":173.36328125,"y":156.60546875,"wires":[["276a93f5.4f5d3c","ab196bcc.4150a8","c7676862.9423c8","b6dfa5d5.b11c38"]]},{"id":"ab196bcc.4150a8","type":"function","z":"d21124ec.f55d18","name":"getCO2","func":"msg.payload=msg.payload.co2;\nreturn msg;","outputs":1,"noerr":0,"x":355.12890625,"y":113.21875,"wires":[["5ea0ea52.4855e4","fc13a2b1.b12ff","6fb0c49e.b6329c"]]},{"id":"276a93f5.4f5d3c","type":"function","z":"d21124ec.f55d18","name":"getTemp","func":"msg.payload=msg.payload.temp;\nreturn msg;","outputs":1,"noerr":0,"x":341.12890625,"y":182.21875,"wires":[["5ea0ea52.4855e4","7b7d3e27.65876","b76121af.05334"]]},{"id":"5ea0ea52.4855e4","type":"debug","z":"d21124ec.f55d18","name":"","active":false,"console":"false","complete":"false","x":565.00390625,"y":322.015625,"wires":[]},{"id":"fc13a2b1.b12ff","type":"ui_gauge","z":"d21124ec.f55d18","name":"CO2","group":"55f86f5b.1ae","order":0,"width":"7","height":"7","gtype":"gage","title":"二氧化碳","label":"ppm","format":"{{value}}","min":"350","max":"1500","colors":["#00b500","#e6e600","#ca3838"],"x":541,"y":144.12109375,"wires":[]},{"id":"7b7d3e27.65876","type":"ui_gauge","z":"d21124ec.f55d18","name":"溫度","group":"55f86f5b.1ae","order":0,"width":"7","height":"7","gtype":"gage","title":"溫度","label":"°C","format":"{{value}}","min":"0","max":"100","colors":["#00b500","#e6e600","#ca3838"],"x":544.00390625,"y":199.1171875,"wires":[]},{"id":"b6dfa5d5.b11c38","type":"function","z":"d21124ec.f55d18","name":"getGWID","func":"msg.payload=msg.payload.gwid;\nreturn msg;","outputs":1,"noerr":0,"x":341,"y":312,"wires":[["5ea0ea52.4855e4"]]},{"id":"c7676862.9423c8","type":"function","z":"d21124ec.f55d18","name":"getHumd","func":"msg.payload=msg.payload.humd;\nreturn msg;","outputs":1,"noerr":0,"x":331,"y":238,"wires":[["5ea0ea52.4855e4","5db760ef.e78bc","9affbdf0.06787"]]},{"id":"5db760ef.e78bc","type":"ui_gauge","z":"d21124ec.f55d18","name":"濕度","group":"55f86f5b.1ae","order":0,"width":"7","height":"7","gtype":"gage","title":"濕度","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"x":544,"y":260,"wires":[]},{"id":"6fb0c49e.b6329c","type":"ui_chart","z":"d21124ec.f55d18","name":"CO2","group":"55f86f5b.1ae","order":0,"width":"7","height":"7","label":"CO2","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"x":657,"y":101,"wires":[[],[]]},{"id":"b76121af.05334","type":"ui_chart","z":"d21124ec.f55d18","name":"Tempture","group":"55f86f5b.1ae","order":0,"width":"7","height":"7","label":"Tempture","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"x":686,"y":169,"wires":[[],[]]},{"id":"9affbdf0.06787","type":"ui_chart","z":"d21124ec.f55d18","name":"Humidity","group":"55f86f5b.1ae","order":0,"width":"7","height":"7","label":"Humidity","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"x":678,"y":226,"wires":[[],[]]},{"id":"19fd21e5.7b56ae","type":"mqtt-broker","z":"","broker":"artt.ddns.net","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"55f86f5b.1ae","type":"ui_group","z":"","name":"ARTT","tab":"fefa6ec0.2f0e8","disp":true,"width":"21"},{"id":"fefa6ec0.2f0e8","type":"ui_tab","z":"","name":"myIAQ","icon":"dashboard"}]

Docker Pull Command
Owner
vincentlinartt

Comments (0)