OpenMarine

Full Version: Node Red Dashboard in BBN
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

If this is not the right venue for this, please let me know.

I have a RPI3 with BBN OS (Ubuntu).  It includes Signalk-Server with embedded Node-Red.  I have been creating a flow and am attempting to setup a dashboard for external access.

I can access the Node-Red admin page via the SignalK-Server Webapps page at https://localhost:3000 which directs to https://localhost:3000/admin/#/dashboard
- Webapps is at https://localhost:3000/admin/#/webapps.  
- Node-Red is at https://localhost:3000/plugins/signalk-n...d/redAdmin

I added minimal Dashboard widgets (a button and an audio out) and tried to view it. 
- http://localhost:3000/plugins/signalk-no...redapi/ui/ gives a totally blank page
- http://localhost:3000/plugins/signalk-no.../dashboard gives "Cannot GET /plugins/signalk-node-red/redapi/dashboard"

What's the secret to getting the dashboard?
Chrome's "Inspect" Console tab shows 3 errors:

Failed to load resource: the server responded with a status of 404 (Not Found) - http://localhost:3000/plugins/signalk-no...cket.io.js

Refused to execute script from 'http://localhost:3000/plugins/signalk-node-red/redapi/ui/socket.io/socket.io.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. - http://localhost:3000/plugins/signalk-no...redapi/ui/

ReferenceError: io is not defined
    at angular.module.service.connect (app.min.js:606:145)
    at Object.<anonymous> (app.min.js:605:5924)
    at Object.invoke (app.min.js:66:264)
    at S.instance (app.min.js:120:161)
    at p (app.min.js:94:161)
    at g (app.min.js:87:186)
    at app.min.js:86:311
    at app.min.js:43:199
    at m.$eval (app.min.js:177:180)
    at m.$apply (app.min.js:177:423)
- http://localhost:3000/plugins/signalk-no...app.min.js
on Node-Red.org ( Localhost:1880 connection refused - Dashboard - Node-RED Forum), I got this reply:
TotallyInformation, post:8, topic:97195, full:true Wrote:This is absolutely an issue for signalk, it is not a node-red issue as such.

The 1st of those errors is the important one, the others are just noise.

The original Node-RED Dashboard (D1) requires [Socket.IO](http://Socket.IO) to function, running via signalk's proxy is failing to find the library.

I did find the missing resource at /.signalk/node_modules/.pnpm/socket.io@4.8.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/socket.io/client-dist/socket.io.js

Where do I go from here?