Hi everyone,
First of all, I'm pretty new here so if I'm using the wrong termonology or my problem has to be in a different topic, I'll apologise beforehand
I'm having trouble to show coƶrdinates on a worldmap, and I figured it might have to do with the data I send. In the msg.payload it shows the following data:
I figured that longitude and latitude should be a value instead of text and I thought that a change node could help me. I can't figure out to change the lon and lat to value without changing the name to text. I hope this sounds logic?
Underneath the code I'm using. I hope you people can help me out!
[
{
"id": "e8710f740e50011c",
"type": "change",
"z": "1c8a948f5c8de378",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$number(payload)\t",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 640,
"y": 560,
"wires": [
[
"96566d88637dabd4",
"cbe47233a4cf6ca1"
]
]
}
]