[ { "id": "a2a235229a25a99c", "type": "http request", "z": "ea42da07.f8c51", "name": "https://www.fournisseurs-electricite.com/edf/tarifs/tempo", "method": "GET", "ret": "txt", "paytoqs": "ignore", "url": "https://www.fournisseurs-electricite.com/edf/tarifs/tempo", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": false, "headers": [], "x": 2130, "y": 640, "wires": [ [ "78e1dbfa721609f8", "939b8b98240a7dd9" ] ] }, { "id": "42d230aec4f89423", "type": "inject", "z": "ea42da07.f8c51", "name": "Tous les jours à 9h30", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "30 09 * * *", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 1740, "y": 640, "wires": [ [ "a2a235229a25a99c" ] ] }, { "id": "78e1dbfa721609f8", "type": "debug", "z": "ea42da07.f8c51", "name": "Debug URL", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2490, "y": 640, "wires": [] }, { "id": "939b8b98240a7dd9", "type": "html", "z": "ea42da07.f8c51", "name": "", "property": "payload", "outproperty": "payload", "tag": "table:has(caption:contains('option Tempo')) tbody tr", "ret": "text", "as": "single", "x": 1870, "y": 720, "wires": [ [ "aeeaf574f941bb52", "ba818b8aba83af9f" ] ] }, { "id": "aeeaf574f941bb52", "type": "change", "z": "ea42da07.f8c51", "name": "[0] 6 kVA", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload[0]", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2180, "y": 720, "wires": [ [ "1a1923055089faf1" ] ] }, { "id": "ba818b8aba83af9f", "type": "debug", "z": "ea42da07.f8c51", "name": "Debug table", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2190, "y": 760, "wires": [] }, { "id": "1a1923055089faf1", "type": "split", "z": "ea42da07.f8c51", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 2330, "y": 720, "wires": [ [ "8dd335359ee76448" ] ] }, { "id": "40988ce4fb91aebb", "type": "join", "z": "ea42da07.f8c51", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 2610, "y": 720, "wires": [ [ "c4150d51a8cfcdbb" ] ] }, { "id": "4daeba5c9f6260ad", "type": "debug", "z": "ea42da07.f8c51", "name": "Debug Prix", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2930, "y": 720, "wires": [] }, { "id": "8dd335359ee76448", "type": "change", "z": "ea42da07.f8c51", "name": " €", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": " €", "fromt": "str", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2470, "y": 720, "wires": [ [ "40988ce4fb91aebb" ] ] }, { "id": "c4150d51a8cfcdbb", "type": "function", "z": "ea42da07.f8c51", "name": "JSON", "func": "\n\nmsg.payload = {\n \"Puissance souscrite\":msg.payload[0],\n \"Prix abonnement TEMPO\":Number(msg.payload[1]),\n \"Prix HCJB\":Number(msg.payload[2]),\n \"Prix HPJB\":Number(msg.payload[3]),\n \"Prix HCJW\":Number(msg.payload[4]),\n \"Prix HPJW\":Number(msg.payload[5]),\n \"Prix HCJR\":Number(msg.payload[6]),\n \"Prix HPJR\":Number(msg.payload[7])\n}\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2750, "y": 720, "wires": [ [ "4daeba5c9f6260ad" ] ] } ]