perfect. heres what i have. how do i go about extracting the 2nd temp so i have 2 values simutaneously?
[
{
"id": "5a49526254ec633c",
"type": "debug",
"z": "cced12873da21ab9",
"name": "debug 59",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 700,
"y": 1360,
"wires": []
},
{
"id": "399394da3ae96cf1",
"type": "exec",
"z": "cced12873da21ab9",
"command": "megabas 0 owbtrd 1",
"addpay": "",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 200,
"y": 1440,
"wires": [
[
"1feddf9de5d3e61e",
"3812d6cbe983caa9"
],
[],
[]
]
},
{
"id": "1ec7e00827a203f3",
"type": "inject",
"z": "cced12873da21ab9",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "15",
"crontab": "",
"once": true,
"onceDelay": "1",
"topic": "",
"payload": "",
"payloadType": "date",
"x": 130,
"y": 1360,
"wires": [
[
"399394da3ae96cf1"
]
]
},
{
"id": "1feddf9de5d3e61e",
"type": "debug",
"z": "cced12873da21ab9",
"name": "debug 68",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 480,
"y": 1360,
"wires": []
},
{
"id": "b2eaf3b64480d6f3",
"type": "function",
"z": "cced12873da21ab9",
"name": "function 28",
"func": "// Assuming msg.payload contains the temperature in Celsius\nvar celsius = parseFloat(msg.payload);\n\n// Convert Celsius to Fahrenheit\nvar fahrenheit = (celsius * 9 / 5) + 32;\n\n// Update msg.payload with the temperature in Fahrenheit\nmsg.payload = fahrenheit;\n\n// Return the updated message\nreturn msg;\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
"y": 1420,
"wires": [
[
"5a49526254ec633c",
"0123fdd11fbe2c91"
]
]
},
{
"id": "3812d6cbe983caa9",
"type": "exec",
"z": "cced12873da21ab9",
"command": "megabas 0 owbtrd 2",
"addpay": "",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 460,
"y": 1440,
"wires": [
[
"b2eaf3b64480d6f3"
],
[
"61e17a8a89c526ec"
],
[]
]
}
]