Retrieve measurements from a RuuviTag and show in a dashbord
Please check my Blogpost https://pysselilivet.blogspot.com/2019/10/ruuvitag-and-node-red.html
Check the link to the documentation |
{ | |
"bridge": { | |
"name": "Homebridge", | |
"username": "CC:21:3E:E4:DE:33", | |
"port": 51826, | |
"pin": "031-45-154" | |
}, | |
"description": "Configuration file for Domoticz and Telldus Live.", | |
"platforms": [ | |
{ |
{ | |
"vessel": { | |
"uuid": "urn:mrn:imo:mmsi:98765432" | |
}, | |
"pipedProviders": [ | |
{ | |
"pipeElements": [ | |
{ | |
"type": "providers/udp", | |
"options": { |
[{"id":"9ae73cb2.1aa53","type":"tab","label":"Flow 1","disabled":true,"info":""},{"id":"b203a1de.b0e7b","type":"inject","z":"9ae73cb2.1aa53","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":false,"onceDelay":"1","x":130,"y":60,"wires":[["b50bf0c3.5a39"]]},{"id":"b50bf0c3.5a39","type":"rpi-ds18b20","z":"9ae73cb2.1aa53","topic":"","array":true,"name":"","x":290,"y":60,"wires":[["5755463c.bc7758"]]},{"id":"5755463c.bc7758","type":"split","z":"9ae73cb2.1aa53","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":130,"y":140,"wires":[["7338dfbc.b0fb1"]]},{"id":"7338dfbc.b0fb1","type":"function","z":"9ae73cb2.1aa53","name":"Set values","func":"\ntempIn = msg.payload.temp + 273.15;\ntempDsId = msg.payload.file\n\nswitch(tempDsId) {\n \n case \"28-051693ea56ff\" :\n SkPath = \"propulsion.starboard.exhaustTemperature\"; \n break;\n \n case \"28-051693ec41ff\" :\n SkPath = \"propulsion.port.exhaustTempe |
[Unit] | |
Description=Node.js HomeKit Server | |
After=syslog.target network-online.target | |
[Service] | |
Type=simple | |
User=pi | |
# Could be /usr/local/bin/homebridge | |
ExecStart=/usr/bin/homebridge | |
Restart=on-failure |
[{"id":"540d1e27.4b2ae","type":"signalk-subscribe","z":"84ac7b53.3bfa68","name":"port.exhaustTemperature ","flatten":true,"context":"vessels.self","path":"propulsion.port.exhaustTemperature","source":"signalk-node-red","period":1000,"x":170,"y":100,"wires":[["972d13ad.877cf"]]},{"id":"3c1f5d23.4842b2","type":"signalk-subscribe","z":"84ac7b53.3bfa68","name":"starboard.exhaustTemperature","flatten":true,"context":"vessels.self","path":"propulsion.starboard.exhaustTemperature","source":"signalk-node-red","period":1000,"x":190,"y":180,"wires":[["9eecfd70.d936b"]]},{"id":"972d13ad.877cf","type":"switch","z":"84ac7b53.3bfa68","name":"If over 300 Kelvin","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"300","vt":"str"},{"t":"lte","v":"300","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":430,"y":100,"wires":[["8014c150.fd873"],["53d36d2d.996844"]]},{"id":"8014c150.fd873","type":"signalk-send-notification","z":"84ac7b53.3bfa68","name":"send alarm","path":"ptExhaustTemp","state":" |
<?php include('livedata.php');include('common.php');header('Content-type: text/html; charset=utf-8');?> | |
<div class="topmin"> | |
<?php //Temperature min day | |
if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>30){echo "<topred1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; } | |
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=24){echo "<toporange1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; } | |
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=18){echo "<topyellow1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; } | |
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=6){ echo "<topgreen1>", $weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; } | |
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>-50){ echo "<topblue1>", $weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; } |
Retrieve measurements from a RuuviTag and show in a dashbord
Please check my Blogpost https://pysselilivet.blogspot.com/2019/10/ruuvitag-and-node-red.html
[{"id":"974898cd.7d1728","type":"tab","label":"Scan ","disabled":false,"info":""},{"id":"def002f2.e31fc","type":"ui_text","z":"974898cd.7d1728","group":"2cc923ff.1cf05c","order":1,"width":6,"height":3,"name":"Selected options","label":"<h1>Selected Options<h1/>","format":"{{msg.payload}}","layout":"col-center","x":830,"y":120,"wires":[]},{"id":"13bb8db9.aaa432","type":"ui_dropdown","z":"974898cd.7d1728","name":"Resolution","label":"                  <b> Resolution<b/>","tooltip":"","place":"Select option","group":"2cc923ff.1cf05c","order":4,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"Auto","value":"Auto","type":"str"},{"label":"75","value":75,"type":"num"},{"label":"150","value":150,"type":"num"},{"label":"300","value":300,"type":"num"},{"label":"600","value":600,"type":"num"},{"label":"1200","value":1200,"type":"num"}],"payload":"","topic":"resolution","x":290,"y":100,"wires":[["bec26866.40d118"]]},{"id":"bec26866.40d118","type":"function","z |
[{"id":"3113b544.8ff882","type":"tab","label":"Signalk & Shelly & WSK","disabled":false,"info":""},{"id":"3a0b4910.ac2df6","type":"debug","z":"3113b544.8ff882","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":690,"y":500,"wires":[]},{"id":"68ac6e9e.e86d","type":"signalk-put-handler","z":"3113b544.8ff882","name":"","path":"electrical.switches.anchorLight.state","x":330,"y":500,"wires":[["3a0b4910.ac2df6","98f13e8a.d877d8"]]},{"id":"b501dbf4.3b32f","type":"inject","z":"3113b544.8ff882","name":"ON","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":110,"y":500,"wires":[["98f13e8a.d877d8"]]},{"id":"98f13e8a.d877d8","type":"function","z":"3113b544.8ff882","name":"Turn ON/OFF","func":"// Input from WSK or Inject nodes \n\nswitch(msg.payload) {\n case 1:\n msg.payload = \"turn=on\";\n break;\n case 0:\n msg.payload = \"turn=off\";\n break;\n default: |