Node Red World Map

1,540 views
Skip to first unread message

Tom Rothoehler

unread,
Mar 15, 2017, 1:15:12 AM3/15/17
to Node-RED

Hi there,

First off... big thanks to all the developers and contributors to this awesome project!

I'm running Node Red 0.16.2 on Ubuntu 64-bit and it works great.  I've got it controlling wemos/android devices via MQTT as well as pulling and displaying data from my home energy monitor.

What I hope someone can help with is I'm trying to plot objects using world map (node-red-contrib-web-worldmap).  I believe I have it installed correctly, the map shows up (but seems to be always centered on "Winchester" UK).  I manually entered position data into the Worldmap object and it plotted it ok for a few tries and then seemed to stop working.  I'm pulling AIS data for a local ferry and I have that working ok... just need to get it onto the map. 

Is there anything obvious I'm missing?  I can think of 1000s of things I can do with this if I could only get it working.  I've searched this group and online with not much luck. 

I've attached my flow so far... any ideas?:

[
    {
        "id": "57009dab.2b1904",
        "type": "tab",
        "label": "Flow 2"
    },
    {
        "id": "86f7937d.11f9b",
        "type": "function",
        "z": "57009dab.2b1904",
        "name": "Plot object on map",
        "func": "var posFerry = {\n    name:\"Ferry\", \n    lat:49, \n    lon:-123.45,\n    icon:\"ship\",\n    iconColor:\"darkred\",\n    extrainfo:\"Something goes here\",\n    zoom:\"10\"\n};\nmsg.payload = posFerry;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 471,
        "y": 217.10003662109375,
        "wires": [
            [
                "12984e95.797101",
                "7f1def58.0b441"
            ]
        ]
    },
    {
        "id": "12984e95.797101",
        "type": "worldmap",
        "z": "57009dab.2b1904",
        "name": "",
        "lat": "",
        "lon": "",
        "zoom": "",
        "layer": "Esri Satellite",
        "cluster": "",
        "maxage": "",
        "x": 711,
        "y": 217.10003662109375,
        "wires": []
    },
    {
        "id": "38e7cff9.041008",
        "type": "inject",
        "z": "57009dab.2b1904",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 281,
        "y": 217.10003662109375,
        "wires": [
            [
                "86f7937d.11f9b"
            ]
        ]
    },
    {
        "id": "3b96f305.18baa4",
        "type": "comment",
        "z": "57009dab.2b1904",
        "name": "Simple map - click inject to send thing to map.",
        "info": "Adds a map at http://(your-server-ip):1880/worldmap. \n\nThe `function` node creates an object with some basic properties required to add to a map.",
        "x": 411,
        "y": 157.10003662109375,
        "wires": []
    },
    {
        "id": "7f1def58.0b441",
        "type": "debug",
        "z": "57009dab.2b1904",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "false",
        "x": 715,
        "y": 298,
        "wires": []
    }
]


Thanks so much!

PS The flow was pulled mostly from another thread on this group...


Thanks!

Tom

Librae

unread,
Mar 15, 2017, 1:38:08 AM3/15/17
to node...@googlegroups.com
Hi Tom,

You could import the example and do modification based on it.
BTW, you can also check the working flow here:
    https://goiot.cc/librae/earthquake (need signin)
and the live demo:





--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/8251ef15-1c3b-4936-8b39-3396da9600d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Rothoehler

unread,
Mar 15, 2017, 2:40:53 AM3/15/17
to Node-RED
Thanks for the reply!

I tried both the example that comes included and other such things... but I think I just figured it out.  It doesn't seem to want to work in Chrome/Firefox.  It works in Internet Explorer though... whens the last time you ever heard that? haha!

I'm very excited... I got two boats on there, plus course and speed information.  Sky's the limit!

Thanks for the tips :)

Tom

To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
Auto Generated Inline Image 1

Tom Rothoehler

unread,
Mar 15, 2017, 2:43:25 AM3/15/17
to Node-RED
I just wanted to add that your earthquake map doesn't seem to want to work in Chrome/FF but does work in IE.  Issue could be local with my machine though.

t.


On Tuesday, March 14, 2017 at 10:38:08 PM UTC-7, Librae L wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Librae

unread,
Mar 15, 2017, 4:22:47 AM3/15/17
to node...@googlegroups.com
My Chrome/Safari/Firefox all works well, maybe your browsers are out-of-date?
IE is a hell, sometimes, haha

To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

Dave C-J

unread,
Mar 15, 2017, 4:44:16 AM3/15/17
to node...@googlegroups.com
Yes, 
odd - your flow (as per first post) is working fine for me in Chrome.
Is there anything in the developer console log worth reporting ?

Tom Rothoehler

unread,
Mar 15, 2017, 11:07:52 PM3/15/17
to Node-RED
Thanks for the tips!  I'll check out the debug thing... I enabled some IPS stuff on my firewall, I've seen it sometimes blow things up on our work firewall so I'll disable that and give it a shot.

Thanks for the feedback; knowing it works in Chrome for someone else is really helpful.

Cheers,

Tom

Ann Sunny

unread,
May 5, 2017, 10:43:59 PM5/5/17
to Node-RED
Hi, i'm interested in checking the flow in  https://goiot.cc/librae/earthquake , but i tried to signin at it failed. May i know which acc i should use? Or where should i register?
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages