Skip to content

Instantly share code, notes, and snippets.

@Naesstrom
Last active December 20, 2018 09:15
Show Gist options
  • Save Naesstrom/2f402d6889a74337bb7e2a2c3609e671 to your computer and use it in GitHub Desktop.
Save Naesstrom/2f402d6889a74337bb7e2a2c3609e671 to your computer and use it in GitHub Desktop.
[
{
"id": "9807b581.2c0318",
"type": "tab",
"label": "Temperatur.nu",
"disabled": false,
"info": ""
},
{
"id": "972bb80a.6aca08",
"type": "http request",
"z": "9807b581.2c0318",
"name": "HTTP POST",
"method": "POST",
"ret": "txt",
"url": "",
"tls": "",
"x": 1007.3027267456055,
"y": 559.1007823944092,
"wires": [
[
"67541a02.6b1014"
]
]
},
{
"id": "67541a02.6b1014",
"type": "debug",
"z": "9807b581.2c0318",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 1172,
"y": 558,
"wires": []
},
{
"id": "4acb85b7.2af1cc",
"type": "mqtt in",
"z": "9807b581.2c0318",
"name": "Climate:Temp",
"topic": "/Climate/BME280/Temperature",
"qos": "0",
"broker": "ba80ab3d.961428",
"x": 319.00000762939453,
"y": 277.00000190734863,
"wires": [
[
"6c21fee7.f05a2",
"45139c.75a64c64"
]
]
},
{
"id": "993198dd.0047a8",
"type": "mqtt in",
"z": "9807b581.2c0318",
"name": "greenhouse:temp",
"topic": "/greenhouse/DHT22/Temperature",
"qos": "0",
"broker": "ba80ab3d.961428",
"x": 312,
"y": 381,
"wires": [
[
"16a1e7d0.e09768"
]
]
},
{
"id": "c5e4bbfe.e8e048",
"type": "mqtt in",
"z": "9807b581.2c0318",
"name": "SDS011:temp",
"topic": "/sds011/values/temp/",
"qos": "0",
"broker": "ba80ab3d.961428",
"x": 319.00000762939453,
"y": 477.00000190734863,
"wires": [
[
"2b52cbf9.f7d044",
"6c21fee7.f05a2"
]
]
},
{
"id": "e16233e4.1af45",
"type": "function",
"z": "9807b581.2c0318",
"name": "MQTT to Temperatur.nu",
"func": "msg.temphash = \"enter your hashcode from temperatur.nu here\";\nmsg.url =\"http://www.temperatur.nu/rapportera.php?hash=\" + msg.temphash + \"&t=\" + msg.payload;\nmsg.payload;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 797,
"y": 560,
"wires": [
[
"972bb80a.6aca08"
]
]
},
{
"id": "16a1e7d0.e09768",
"type": "debug",
"z": "9807b581.2c0318",
"name": "Greenhouse",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 539,
"y": 380,
"wires": []
},
{
"id": "2b52cbf9.f7d044",
"type": "debug",
"z": "9807b581.2c0318",
"name": "SDS011",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 527,
"y": 478,
"wires": []
},
{
"id": "6c21fee7.f05a2",
"type": "smooth",
"z": "9807b581.2c0318",
"name": "",
"property": "payload",
"action": "min",
"count": "4",
"round": "2",
"mult": "single",
"x": 543.0000076293945,
"y": 561.0000019073486,
"wires": [
[
"16fc30d4.7c6c7f",
"e16233e4.1af45"
]
]
},
{
"id": "16fc30d4.7c6c7f",
"type": "debug",
"z": "9807b581.2c0318",
"name": "Smooth",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 747,
"y": 515,
"wires": []
},
{
"id": "45139c.75a64c64",
"type": "debug",
"z": "9807b581.2c0318",
"name": "Climate",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 527,
"y": 278,
"wires": []
},
{
"id": "c73bfac6.55ae48",
"type": "comment",
"z": "9807b581.2c0318",
"name": "Sensors",
"info": "Feel free to add more sensors as needed",
"x": 304,
"y": 220,
"wires": []
},
{
"id": "1be2d61a.e8a08a",
"type": "comment",
"z": "9807b581.2c0318",
"name": "Lowest value of the 4 latest seen",
"info": "",
"x": 474,
"y": 603,
"wires": []
},
{
"id": "51612d69.042334",
"type": "comment",
"z": "9807b581.2c0318",
"name": "Replace hashcode",
"info": "enter your hash code from temperatur.nu as the variable",
"x": 798,
"y": 609,
"wires": []
},
{
"id": "ba80ab3d.961428",
"type": "mqtt-broker",
"z": "",
"name": "Broker Name",
"broker": "https://replace.with.broker.ip",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willPayload": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment