SignalK / instrumentpanel

Instrument panel implemented as a grid with draggable & resizable components
Apache License 2.0
44 stars 30 forks source link

Loading error #205

Closed Morten-Laurrsen closed 2 years ago

Morten-Laurrsen commented 3 years ago

When I run the new version it will not login - the loading wheel just runs aroun

SignalK Instrumentpanel
cmotelet commented 3 years ago

Can you provide additional information to locate the problem ? In Chrome on a computer, activate the debug console ( F12 key) Open the same URL and tell me what's in the console. Can you also provide the JSON content of your Signal K server for this URL: /signalk/v1/api/vessels/self/

Morten-Laurrsen commented 3 years ago

Hi

/signalk/v1/api/vessels/self/ =

{"mmsi":"urn:mrn:imo:mmsi:219021302","name":"ANNA","class":"B","navigation":{"position":{"timestamp":"2021-10-28T10:50:40.000Z","latitude":55.490791,"longitude":9.728787,"source":"N2000-01"},"headingTrue":{"value":1.832502},"courseOverGroundTrue":{"value":0.000000},"speedOverGround":{"value":0.050000},"speedThroughWater":{"value":0.000000},"log":{"value":8912444},"logTrip":{"value":8912444},"magneticVariation":{"value":0.034900},"magneticVariationAgeOfService":{"value":65535}},"environment":{"wind":{"angleTrueGround":{"value":6.553506},"speedTrue":{"value":655.349976},"angleApparent":{"value":0.776601},"speedApparent":{"value":2.260000}},"outside":{"temperature":{"value":304.679993},"pressure":{"value":103400.000000}},"water":{"temperature":{"value":290.160004}},"depth":{"belowSurface":{"value":2.560000}}},"tanks":{"fuel":{"6":{"currentLevel":{"value":22}}},"freshWater":{"3":{"currentLevel":{"value":0}},"0":{"currentLevel":{"value":0}}},"blackWater":{"0":{"currentLevel":{"value":100}}}},"electrical":{"batteries":{"0":{"temperature":{"value":273.149994},"voltage":{"value":14.340000},"current":{"value":0.000000},"DCType":{"name":"battery"},"stateofCharge":{"value":0.000000},"stateofHealth":{"value":0},"timeRemaining":{"value":1}},"8":{"temperature":{"value":146.149994},"voltage":{"value":14.059999},"current":{"value":14.100000},"DCType":{"name":"battery"},"stateofCharge":{"value":0.000000},"stateofHealth":{"value":24},"timeRemaining":{"value":421}}}}}

Morten-Laurrsen commented 3 years ago

ui.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) site.webmanifest:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Udviklerværktøjer kunne ikke indlæse kildekortet: Indholdet kunne ikke indlæses for http://192.168.0.103/hosted/instrumentpanel/css/bootstrap.min.css.map: HTTP-fejl: Statuskode 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Morten-Laurrsen commented 3 years ago

 ui.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)

site.webmanifest:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Udviklerværktøjer kunne ikke indlæse kildekortet: Indholdet kunne ikke indlæses for http://192.168.0.103/hosted/instrumentpanel/css/bootstrap.min.css.map: HTTP-fejl: Statuskode 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE  ​

Morten-Laurrsen commented 3 years ago

The old version works fine -

cmotelet commented 3 years ago

I think the update was not applied correctly. In the folder that contains the instrumentpanel plugin files, you are missing the ui.js file. "ui.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)" It contains all the code of the plugin. Did you restart the server after the update? If it still doesn't work, you can remove the instrumentpanel plugin in the server GUI: "Appstore" "Installed" And then install it again

Morten-Laurrsen commented 3 years ago

Thanks for your answer - But where do I find / download the file "ui.js" has downloaded

Morten-Laurrsen commented 3 years ago

Hi how to use "Appstore"

cmotelet commented 3 years ago

I don't advise you to simply add the missing ui.js file. If it's missing it's probably not the only one and that indicates a problem during the update. The easiest way is to go through the SignalK GUI, this is normally also where you should have done the update. image Once deleted, and the server restarted you will find the version that was installed at the same time as the server. image Later, if you wish, you can restart the update. If you really only want to get the missing ui.js file, you can upload it to the npm server: npm pack @signalk/instrumentpanel tar -xzf signalk-instrumentpanel-0.21.0.tgz ls -l package/public/ui.js

cmotelet commented 3 years ago

I checked with @tkurki and it seems that your server is an iKommunicate. And so this version of InstrumentPanel is not usable with the Signal K server inside your gateway.

cmotelet commented 2 years ago

InstrumentPanel running on iKommunicate is not supported with the latest versions.