This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Node Red Dashboard in BBN
#1
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?
Reply
#2
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
Reply
#3
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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)