OpenMarine
NR Embedded - Worldmap 404 - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: Node Red (https://forum.openmarine.net/forumdisplay.php?fid=15)
+--- Thread: NR Embedded - Worldmap 404 (/showthread.php?tid=2389)



NR Embedded - Worldmap 404 - jamos.tan@gmail.com - 2020-02-28

I am running Node Red Embedded on SignalK 1.23.0
I've installed the worldmap, and it is working on this URL: http://localhost:3000/plugins/signalk-node-red/redApi/worldmap/
However, it does not work in the URL: http://192.168.1.106:3000/plugins/signalk-node-red/redApi/ui/#!/0?socketid=1njLq9-fMZW8vjIZAAAc#%2F

The UI dashboard and the iframe loads, but the content of the iframe (worldmap) gives a 404 error.
When F12 in my browser (Mozilla firefox) I also get these errors:


Code:
SideNav 'left' is not available! Did you use md-component-id='left'?


Code:
Source map error: Error: request failed with status 404 Resource URL: [url=http://192.168.1.106:3000/plugins/signalk-node-red/redApi/ui/js/app.min.js]http://192.168.1.106:3000/plugins/signalk-node-red/redApi/ui/js/app.min.js[/url] Source Map URL: angular-chart.min.js.map

Here is the .json of the flow I am using:


Code:
[{"id":"f247ad6a.ad5f8","type":"tab","label":"Worldmap","disabled":false,"info":""},{"id":"db7e8ee7.50b3a","type":"switch","z":"f247ad6a.ad5f8","name":"Is it nav data?","property":"msg.payload.updates.source.sentence","propertyType":"jsonata","rules":[{"t":"cont","v":"GLL","vt":"str"}],"checkall":"false","outputs":1,"x":380,"y":180,"wires":[["c96dc6f3.1526d"]]},{"id":"c96dc6f3.1526d","type":"change","z":"f247ad6a.ad5f8","name":"create msg.lat etc","rules":[{"t":"set","p":"LAT","pt":"msg","to":"payload.updates.values.value.latitude","tot":"jsonata"},{"t":"set","p":"LONG","pt":"msg","to":"payload.updates.values.value.longitude","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":180,"wires":[["5846300e.48d6c"]]},{"id":"5846300e.48d6c","type":"function","z":"f247ad6a.ad5f8","name":"Make JSON","func":"var mymsg = {\"name\":\"MyPlace\",\"lat\":msg.LAT,\"lon\":msg.LONG, icon:\"ship\",\niconColor:\"red\"};\n\nmsg.payload=mymsg;\nreturn msg;","outputs":1,"noerr":0,"x":810,"y":180,"wires":[["7cb660d5.9e377"]]},{"id":"8474c6a.5234738","type":"json","z":"f247ad6a.ad5f8","name":"","pretty":true,"x":190,"y":180,"wires":[["db7e8ee7.50b3a"]]},{"id":"7cb660d5.9e377","type":"worldmap","z":"f247ad6a.ad5f8","name":"","lat":"","lon":"","zoom":"","layer":"Esri Satellite","cluster":"","maxage":"","usermenu":"hide","panit":"true","hiderightclick":"false","coords":"none","path":"","x":990,"y":180,"wires":[]},{"id":"26c63b50.28621c","type":"ui_template","z":"f247ad6a.ad5f8","group":"eb43e8f4.11c598","name":"world-map","order":4,"width":"6","height":"6","format":"<iframe width=\"600\" height=\"600\" src=\"http://localhost:3000/plugins/signalk-node-red/redApi/worldmap/\" frameborder=\"0\" allowfullscreen></iframe>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":910,"y":240,"wires":[[]]},{"id":"eb43e8f4.11c598","type":"ui_group","z":"","name":"World","tab":"49b0a98d.f2c868","order":5,"disp":true,"width":"6"},{"id":"49b0a98d.f2c868","type":"ui_tab","z":"","name":"Map ","icon":"dashboard","disabled":false,"hidden":false}]


Hope someone can help me, thanks in advance!

Kind regards,

Jamos