Tried adding "payload.":
as this:
![image](https://global.discourse-cdn.com/business6/uploads/nodered/original/2X/4/4a1261aac367b3cf01022baf9baeac2de973fa76.png)
but still get nothing in output.
here is node red config:
[
{
"id": "a0081ad3.d51948",
"type": "inject",
"z": "c6be1934.85f088",
"name": "",
"topic": "",
"payload": "07010000",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"x": 80,
"y": 560,
"wires": [
[
"44fbfb1f.9f1214"
]
]
},
{
"id": "177b19c4.d23da6",
"type": "http request",
"z": "c6be1934.85f088",
"name": "",
"method": "GET",
"ret": "txt",
"paytoqs": false,
"url": "",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 290,
"y": 600,
"wires": [
[
"db6c6583.d39348",
"8b21dc79.19e7c"
]
]
},
{
"id": "8b21dc79.19e7c",
"type": "debug",
"z": "c6be1934.85f088",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 770,
"y": 580,
"wires": []
},
{
"id": "40a845ba.a4f3cc",
"type": "change",
"z": "c6be1934.85f088",
"name": "",
"rules": [
{
"t": "set",
"p": "url",
"pt": "msg",
"to": "https://waterservices.usgs.gov/nwis/iv/?format=json&stateCd=mo¶meterCd=00060&siteStatus=all&drainAreaMin=100000",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 310,
"y": 560,
"wires": [
[
"177b19c4.d23da6"
]
]
},
{
"id": "44fbfb1f.9f1214",
"type": "change",
"z": "c6be1934.85f088",
"name": "siteid",
"rules": [
{
"t": "set",
"p": "siteid",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 190,
"y": 560,
"wires": [
[
"40a845ba.a4f3cc"
]
]
},
{
"id": "db6c6583.d39348",
"type": "change",
"z": "c6be1934.85f088",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.value.timeSeries {\t name : {\t \"siteName\":sourceInfo.siteName,\t \"siteCode\": sourceInfo.siteCode.value,\t \"value\" : values.value.value,\t \"units\" : variable.unit.unitCode,\t \"geoLocation\": sourceInfo.geoLocation\t }\t}\t",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 560,
"y": 620,
"wires": [
[
"41a15677.d1a468"
]
]
},
{
"id": "41a15677.d1a468",
"type": "debug",
"z": "c6be1934.85f088",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 750,
"y": 620,
"wires": []
}
]