# No output in the worldmap

**URL:** <https://discourse.nodered.org/t/no-output-in-the-worldmap/7654>\
**Category:** Dashboard\
**Created:** [6 February 2019 11:59 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654 "2019-02-06T11:59:31Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 May 2020 13:57 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/21 "2020-05-03T13:57:09Z")

</div>

I suggested using a change node - but as you already have a function node then in there may well be easiest. I would move hardware\_serial to name and latitude to lat etc.

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [3 May 2020 14:00 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/22 "2020-05-03T14:00:39Z")

</div>

Im sure i didnt got you explanation right, what node should i edit? I dont see any hardware\_serial and so on..

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 May 2020 14:24 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/23 "2020-05-03T14:24:55Z")

</div>

That came from your original message.... so I assumed you had that in your function node...

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/7/b77ed4f76d7dc40994dc7c5e221ab6a69fb26b79.png)

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [3 May 2020 17:48 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/24 "2020-05-03T17:48:31Z")

</div>

> [@dceejay](#):
>
> {"name":"Joe", "lat":51, "lon":-1.05}

Thanks for the reply, i have a small succesful update that the map is working, i used your suggestion and used instead a change node with an inject button on the back and then to the map. Used the following object as a JSON in change {"name":"Joe", "lat":41.1613, "lon":24.1386} and i get my point on the map manually. Question is how i will feed the same off the ttn\_uplink using a path copy of my lon and lat in the same brackets and the type of the syntax. Just for reference  
payload\_fields: object  
altitude: "159.9m"  
barometer: "989.7hPa"  
battery: "3.79V"  
gasResistance: "11.83KΩ"  
humidity: "57%RH"  
latitude: "41.1612°"  
longitude: "24.1387°"  
temperature: "22.3°C"  
and if i copythe path i get this "payload\_fields.latitude"  
tried different syntax respect to  
{ "name":"Jason", "lat":51.05, "lon":-1.35 } but nothing

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 May 2020 18:16 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/25 "2020-05-03T18:16:41Z")

</div>

So you have `msg.payload` object like

```auto
{  
   altitude: "159.9m"
   barometer: "989.7hPa"
   battery: "3.79V"
   gasResistance: "11.83KΩ"
   humidity: "57%RH"
   latitude: "41.1612°"
   longitude: "24.1387°"
   temperature: "22.3°C"
}

```

so you need to ffed this to a change node that is set to  
move [msg.]payload.latitude to [msg.]payload.lat  
move [msg.]payload.longitude to [msg.]payload.lon  
set [msg.]payload.name to [string]Some\_name\_of\_your-Choice

then feed it into the worldmap

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [3 May 2020 18:28 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/26 "2020-05-03T18:28:05Z")

</div>

![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a62dbed4df879972b4b3d86aa1bc16216f7e5a34.png)  
did something like that, but im sure i didnt understood it

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 May 2020 18:39 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/27 "2020-05-03T18:39:00Z")

</div>

Look at what I typed. Move not set

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [3 May 2020 18:46 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/28 "2020-05-03T18:46:02Z")

</div>

> [@dceejay](#):
>
> Look at what I typed. Move not set

Thanks for the clarification, im not very proficient in this.  
How will it parse the actual data im curious with that.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 May 2020 18:49 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/29 "2020-05-03T18:49:07Z")

</div>

As there is nothing in the recent object that you shared that could be a name just SET msg.payload.name to a string of some words of your choice

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 May 2020 20:44 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/30 "2020-05-03T20:44:22Z")

</div>

Here is a simple example flow to show you - based on your payload above.

```auto
[{"id":"434f2d44.298a94","type":"inject","z":"8df32294.80f4f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":260,"wires":[["fe0977bb.728668"]]},{"id":"fe0977bb.728668","type":"function","z":"8df32294.80f4f","name":"create dummy input","func":"msg.payload = { \n altitude: \"159.9m\",\n barometer: \"989.7hPa\",\n battery: \"3.79V\",\n gasResistance: \"11.83KΩ\",\n humidity: \"57%RH\",\n latitude: \"41.1612\",\n longitude: \"24.1387\",\n temperature: \"22.3°C\",\n}\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":260,"wires":[["42512ca5.9631c4"]]},{"id":"42512ca5.9631c4","type":"change","z":"8df32294.80f4f","name":"","rules":[{"t":"set","p":"payload.name","pt":"msg","to":"My_Super_Device","tot":"str"},{"t":"move","p":"payload.latitude","pt":"msg","to":"payload.lat","tot":"msg"},{"t":"move","p":"payload.longitude","pt":"msg","to":"payload.lon","tot":"msg"},{"t":"set","p":"payload.altitude","pt":"msg","to":"payload.alt","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":320,"wires":[["43e3cbe8.307ee4","688913c4.7d992c"]]},{"id":"43e3cbe8.307ee4","type":"worldmap","z":"8df32294.80f4f","name":"","lat":"","lon":"","zoom":"13","layer":"","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"true","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","path":"/worldmap","x":560,"y":320,"wires":[]},{"id":"688913c4.7d992c","type":"debug","z":"8df32294.80f4f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":570,"y":380,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [4 May 2020 12:59 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/31 "2020-05-04T12:59:26Z")

</div>

> [@dceejay](#):
>
> [{"id":"434f2d44.298a94","type":"inject","z":"8df32294.80f4f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":260,"wires":[["fe0977bb.728668"]]},{"id":"fe0977bb.728668","type":"function","z":"8df32294.80f4f","name":"create dummy input","func":"msg.payload = { \n altitude: "159.9m",\n barometer: "989.7hPa",\n battery: "3.79V",\n gasResistance: "11.83KΩ",\n humidity: "57%RH",\n latitude: "41.1612",\n longitude: "24.1387",\n temperature: "22.3°C",\n}\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":260,"wires":[["42512ca5.9631c4"]]},{"id":"42512ca5.9631c4","type":"change","z":"8df32294.80f4f","name":"","rules":[{"t":"set","p":"payload.name","pt":"msg","to":"My\_Super\_Device","tot":"str"},{"t":"move","p":"payload.latitude","pt":"msg","to":"payload.lat","tot":"msg"},{"t":"move","p":"payload.longitude","pt":"msg","to":"payload.lon","tot":"msg"},{"t":"set","p":"payload.altitude","pt":"msg","to":"payload.alt","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":320,"wires":[["43e3cbe8.307ee4","688913c4.7d992c"]]},{"id":"43e3cbe8.307ee4","type":"worldmap","z":"8df32294.80f4f","name":"","lat":"","lon":"","zoom":"13","layer":"","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"true","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","path":"/worldmap","x":560,"y":320,"wires":},{"id":"688913c4.7d992c","type":"debug","z":"8df32294.80f4f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":570,"y":380,"wires":}]

I loaded it, it works with a click, now i have either find a way to write some code in the function node to parse the data from ttn\_uplink or some solution with the change node ( i think it need some kind of conversion of the path were the data is to a JSON accepted format)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 May 2020 13:51 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/32 "2020-05-04T13:51:30Z")

</div>

Yes - if you actually show us what comes out of a debug node attached to your TTN feed we may be able to help - Or we could try mind reading.

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [4 May 2020 15:03 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/33 "2020-05-04T15:03:05Z")

</div>

If i time stamp i get the following on debug window and worldmap respectively

 ![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/f/bf50128079dd59c910fda86473866d8cac54fc4e.png)  
 ![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/ed17f6892fc29c3013d399b39e4bbbaf7b9fe885.png)  
If i connect the ttn\_uplink i get the same debug info from the dummy input as it triggers it and also i direct connected the uplink with debug for the live data. Map still gets the canned data from the dummy output.  
 ![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/ba8c604a42bdfc688e958709e14fbe418e7585bc.png)

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [4 May 2020 16:47 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/34 "2020-05-04T16:47:36Z")

</div>

i also tried to change the coding from TTN to Cayene LPP and added to the change node as JSON {"name":"Joe", "lat":payload.gps\_1.latitude, "lon":payload.gps\_1.longitude} but its not valid hence no data to the map

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [4 May 2020 17:45 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/35 "2020-05-04T17:45:49Z")

</div>

@dceejay dceejay, i finally made it work. i get my location on the map. i used the function node and edited a script i found online. it still gives invalid JSON property but it works.  
var msg1 = {  
"payload" : JSON.parse(JSON.stringify(data))  
};  
return msg1;

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 May 2020 21:47 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/36 "2020-05-04T21:47:20Z")

</div>

In your picture above you linked the TTN node to the dummy data node... it should go direct to the change node as it already has the data...

---

<div class="post-metadata">

**Author:** ![panban-ux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/panban-ux/32/21609_2.png) [@panban-ux](https://discourse.nodered.org/u/panban-ux)\
**Post date:** [10 May 2020 18:32 UTC](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654/37 "2020-05-10T18:32:39Z")

</div>

@dceejay Yes that purpose was only for you see the payload example in the debug window, thanks though!  
It worked as i altered the decode function in TTN and edited the fuction script within the function.

[Previous page](https://discourse.nodered.org/t/no-output-in-the-worldmap/7654.md?page=1)
