[
{
"id": "3f38c999.2ce17e",
"type": "tab",
"label": "lecture temperature",
"disabled": false,
"info": ""
},
{
"id": "a64763fb.de18d",
"type": "function",
"z": "3f38c999.2ce17e",
"name": "talking response",
"func": "\n\nmsg.payload = {\"speech\":{\"text\":\"La température du jardin est de \" + msg.payload + \" degrés celcius \"}};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 500,
"y": 200,
"wires": [
[
"fd1a77c3.1a1fd"
]
]
},
{
"id": "abcca5b2.59f7b8",
"type": "http request",
"z": "3f38c999.2ce17e",
"name": "",
"method": "GET",
"ret": "txt",
"paytoqs": false,
"url": "https://bfed8dca.dns5.jeedom.com/core/api/jeeApi.php?apikey=InsVgHIpPhhxcLMDkBmXnW4aYfE5EGd5&type=cmd&id=113",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 490,
"y": 80,
"wires": [
[
"577cec79.fa2c34"
]
]
},
{
"id": "577cec79.fa2c34",
"type": "debug",
"z": "3f38c999.2ce17e",
"name": "temperature",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 690,
"y": 80,
"wires": []
},
{
"id": "fd1a77c3.1a1fd",
"type": "http response",
"z": "3f38c999.2ce17e",
"name": "",
"statusCode": "",
"headers": {},
"x": 690,
"y": 200,
"wires": []
},
{
"id": "e8e66693.b01828",
"type": "link in",
"z": "3f38c999.2ce17e",
"name": "",
"links": [
"827a6443.76a66",
"d0b94694.f4ec7"
],
"x": 235,
"y": 80,
"wires": [
[
"abcca5b2.59f7b8",
"a64763fb.de18d"
]
]
},
{
"id": "9eacce1d.0e7168",
"type": "inject",
"z": "3f38c999.2ce17e",
"name": "",
"topic": "",
"payload": "true",
"payloadType": "bool",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 230,
"y": 160,
"wires": [
[
"abcca5b2.59f7b8"
]
]
},
{
"id": "de9b2e8c.6364d",
"type": "function",
"z": "3f38c999.2ce17e",
"name": "",
"func": "[{\"id\":\"51532a7f.e2ab14\",\"type\":\"inject\",\"z\":\"ed8328d3.5fbd88\",\"name\":\"\",\"props\":[{\"p\":\"payload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"Temperature\",\"payload\":\"10\",\"payloadType\":\"num\",\"x\":100,\"y\":900,\"wires\":[[\"ead8e8f6.f469a8\"]]},{\"id\":\"2498f84a.ab6108\",\"type\":\"inject\",\"z\":\"ed8328d3.5fbd88\",\"name\":\"\",\"props\":[{\"p\":\"payload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"Temperature\",\"payload\":\"20\",\"payloadType\":\"num\",\"x\":100,\"y\":940,\"wires\":[[\"ead8e8f6.f469a8\"]]},{\"id\":\"ead8e8f6.f469a8\",\"type\":\"change\",\"z\":\"ed8328d3.5fbd88\",\"name\":\"\",\"rules\":[{\"t\":\"move\",\"p\":\"payload\",\"pt\":\"msg\",\"to\":\"temperature\",\"tot\":\"global\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":370,\"y\":900,\"wires\":[[]]},{\"id\":\"7726a510.6cd6ec\",\"type\":\"function\",\"z\":\"ed8328d3.5fbd88\",\"name\":\"\",\"func\":\"msg.payload = global.get(\\\"temperature\\\");\\n\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"initialize\":\"\",\"finalize\":\"\",\"x\":320,\"y\":1020,\"wires\":[[\"50ef2865.2508c8\"]]},{\"id\":\"28bfa94f.c9b126\",\"type\":\"inject\",\"z\":\"ed8328d3.5fbd88\",\"name\":\"\",\"props\":[{\"p\":\"payload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\" recover\",\"payload\":\"\",\"payloadType\":\"date\",\"x\":120,\"y\":1020,\"wires\":[[\"7726a510.6cd6ec\"]]},{\"id\":\"50ef2865.2508c8\",\"type\":\"debug\",\"z\":\"ed8328d3.5fbd88\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"false\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":470,\"y\":1020,\"wires\":[]}]\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 360,
"y": 300,
"wires": [
[]
]
}
]