Skip to content

Instantly share code, notes, and snippets.

@cpietsch
Last active October 30, 2020 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpietsch/6ea2a8fed919383d184b2df9f7d3cb33 to your computer and use it in GitHub Desktop.
Save cpietsch/6ea2a8fed919383d184b2df9f7d3cb33 to your computer and use it in GitHub Desktop.
[
{
"id":"8447d084.7e9fb",
"type":"tab",
"label":"Flow 1",
"disabled":false,
"info":""
},
{
"id":"5ab61f98.c68d3",
"type":"influxdb",
"z":"",
"hostname":"192.168.0.205",
"port":"8086",
"protocol":"http",
"database":"logs1",
"name":"",
"usetls":false,
"tls":""
},
{
"id":"391e1489.51cc3c",
"type":"inject",
"z":"8447d084.7e9fb",
"name":"",
"topic":"",
"payload":"",
"payloadType":"date",
"repeat":"30",
"crontab":"",
"once":true,
"onceDelay":0.1,
"x":150,
"y":220,
"wires":[
[
"e5dedd66.be8c8"
]
]
},
{
"id":"e5dedd66.be8c8",
"type":"rpi-dht22",
"z":"8447d084.7e9fb",
"name":"",
"topic":"rpi-dht22",
"dht":22,
"pintype":"0",
"pin":4,
"x":280,
"y":340,
"wires":[
[
"fa44b2fb.10985"
]
]
},
{
"id":"de4366b6.5e1138",
"type":"influxdb out",
"z":"8447d084.7e9fb",
"influxdb":"5ab61f98.c68d3",
"name":"",
"measurement":"sensor",
"precision":"s",
"retentionPolicy":"",
"x":600,
"y":540,
"wires":[
]
},
{
"id":"fa44b2fb.10985",
"type":"function",
"z":"8447d084.7e9fb",
"name":"combine",
"func":"msg.payload = {\n name: \"temp1\",\n temp: +msg.payload,\n humidity: +msg.humidity\n}\nreturn msg;",
"outputs":1,
"noerr":0,
"x":480,
"y":320,
"wires":[
[
"de4366b6.5e1138"
]
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment