[ { "id": "4d047019.8d6138", "type": "exec", "z": "a1022646.b5f068", "command": "cat /sys/class/thermal/thermal_zone0/temp", "addpay": false, "append": "", "useSpawn": "", "timer": "", "name": "Get CPU Temp", "x": 280, "y": 140, "wires": [ [ "b439c512.1b4768" ], [], [] ] }, { "id": "8545f2d5.e12c4", "type": "comment", "z": "a1022646.b5f068", "name": "emonPi CPU Temp Monitor", "info": "", "x": 140, "y": 40, "wires": [] }, { "id": "c3b1fb93.eb6a4", "type": "inject", "z": "a1022646.b5f068", "name": "1 min", "topic": "", "payload": "", "payloadType": "str", "repeat": "60", "crontab": "", "once": false, "x": 110, "y": 140, "wires": [ [ "4d047019.8d6138" ] ] }, { "id": "1c7e61b7.4479ae", "type": "mqtt out", "z": "a1022646.b5f068", "name": "emon/emonpiCPU/#", "topic": "", "qos": "2", "retain": "", "broker": "19211dbb.e6dee2", "x": 720, "y": 120, "wires": [] }, { "id": "b439c512.1b4768", "type": "function", "z": "a1022646.b5f068", "name": "convert temp data", "func": "msg.payload = (msg.payload / 1000).toFixed(1);\nmsg.topic = \"emon/emonpiCPU/tempC\";\nreturn msg;\n", "outputs": 1, "noerr": 0, "x": 490, "y": 120, "wires": [ [ "1c7e61b7.4479ae" ] ] }, { "id": "e841486.a5cf138", "type": "mqtt in", "z": "a1022646.b5f068", "name": "", "topic": "emon/emonpiCPU/#", "qos": "2", "broker": "19211dbb.e6dee2", "x": 170, "y": 240, "wires": [ [ "f20a85e6.15ad18" ] ] }, { "id": "f20a85e6.15ad18", "type": "debug", "z": "a1022646.b5f068", "name": "emon/emonpiCPU/#", "active": true, "console": "false", "complete": "payload", "x": 660, "y": 240, "wires": [] }, { "id": "19211dbb.e6dee2", "type": "mqtt-broker", "z": "", "broker": "localhost", "port": "1883", "clientid": "", "usetls": false, "verifyservercert": true, "compatmode": true, "keepalive": "15", "cleansession": true, "willTopic": "", "willQos": "0", "willRetain": "false", "willPayload": "", "birthTopic": "", "birthQos": "0", "birthRetain": "false", "birthPayload": "" } ]