Created
March 21, 2018 17:47
-
-
Save Naesstrom/f66247087fd7a2be06daa66f25ded5d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "36e44ecd.4941f2", | |
"type": "tab", | |
"label": "Flow 4", | |
"disabled": true, | |
"info": "" | |
}, | |
{ | |
"id": "bd43a711.db4298", | |
"type": "inject", | |
"z": "36e44ecd.4941f2", | |
"name": "", | |
"topic": "", | |
"payload": "", | |
"payloadType": "str", | |
"repeat": "60", | |
"crontab": "", | |
"once": false, | |
"onceDelay": "", | |
"x": 190, | |
"y": 420, | |
"wires": [ | |
[ | |
"9fe322c4.ee65a" | |
] | |
] | |
}, | |
{ | |
"id": "9fe322c4.ee65a", | |
"type": "http request", | |
"z": "36e44ecd.4941f2", | |
"name": "Luftdata JSON", | |
"method": "GET", | |
"url": "http://192.168.1.165/data.json", | |
"tls": "", | |
"x": 340, | |
"y": 420, | |
"wires": [ | |
[ | |
"99877d8f.b0469" | |
] | |
] | |
}, | |
{ | |
"id": "99877d8f.b0469", | |
"type": "json", | |
"z": "36e44ecd.4941f2", | |
"name": "", | |
"property": "payload", | |
"action": "", | |
"pretty": false, | |
"x": 490, | |
"y": 420, | |
"wires": [ | |
[ | |
"ab8c2766.654d48" | |
] | |
] | |
}, | |
{ | |
"id": "ab8c2766.654d48", | |
"type": "change", | |
"z": "36e44ecd.4941f2", | |
"name": "Temperature", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "payload.sensordatavalues[2].value", | |
"tot": "jsonata" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 630, | |
"y": 420, | |
"wires": [ | |
[ | |
"6cee5e15.4fbe5" | |
] | |
] | |
}, | |
{ | |
"id": "6cee5e15.4fbe5", | |
"type": "function", | |
"z": "36e44ecd.4941f2", | |
"name": "post to Temperatur.nu hash", | |
"func": "msg.url =\"http://www.temperatur.nu/rapportera.php?hash=XXXXXXXXXXXXXXXXXXXX&t=\" + msg.payload;\nmsg.payload;\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 840, | |
"y": 420, | |
"wires": [ | |
[ | |
"6a9d0ea5.dac38" | |
] | |
] | |
}, | |
{ | |
"id": "6a9d0ea5.dac38", | |
"type": "http request", | |
"z": "36e44ecd.4941f2", | |
"name": "HTTP POST", | |
"method": "POST", | |
"ret": "txt", | |
"url": "", | |
"tls": "", | |
"x": 1050, | |
"y": 420, | |
"wires": [ | |
[ | |
"25d37670.aeea1a" | |
] | |
] | |
}, | |
{ | |
"id": "25d37670.aeea1a", | |
"type": "debug", | |
"z": "36e44ecd.4941f2", | |
"name": "", | |
"active": true, | |
"console": "false", | |
"complete": "payload", | |
"x": 1210, | |
"y": 420, | |
"wires": [] | |
}, | |
{ | |
"id": "930ad0ea.7a68d", | |
"type": "comment", | |
"z": "36e44ecd.4941f2", | |
"name": "Inject", | |
"info": "Set this to reasonable time like 180s (3min)", | |
"x": 180, | |
"y": 380, | |
"wires": [] | |
}, | |
{ | |
"id": "3b751430.ad5dcc", | |
"type": "comment", | |
"z": "36e44ecd.4941f2", | |
"name": "JSON", | |
"info": "Set the IP to your local luftdata sensor, ie. 192.168.x.x", | |
"x": 320, | |
"y": 380, | |
"wires": [] | |
}, | |
{ | |
"id": "ff86d71d.5100e8", | |
"type": "comment", | |
"z": "36e44ecd.4941f2", | |
"name": "hash code", | |
"info": "Enter your individual hash code from temperatur.nu\ninstead of the XXXXXXXXXXXXXX", | |
"x": 790, | |
"y": 380, | |
"wires": [] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment