question

laurenceh avatar image
laurenceh asked

Can you install signalk on a Venus OS Rpi, and how ?

I would like to get a Json interface running to access the Venus dbus data from an Ajax client but have so far failed.

Background

I have a working Ajax implementation of a GUI this was written a few years back and easy to customise and serve from the inbuilt Venus web server - Hiawatha. I would like to make calls to access the data in Venus OS running on my Rpi 3B+. The UI Being Ajax and Javascript, the interface should be REST/Json. I could write a Json server to interface to dbus but I realised this is just what Signalk offers. So I took a look at how to get it installed.

Going forward an Ajax UI could be easier to customise within the community than the current pages, would be lightweight as much of the processing is in the client end - not the server, and should integrate well with the signalk service/

Getting Signal k running:

I tried following this instruction: from https://github.com/victronenergy/venus/wiki/Signal-K

"Note for the raspberrypis that it is not necessary, nor recommended to reinstall a full image on an sdcard. Doing so will also remove all configuration and stored data.

Latest available files:

The SWU is found own the SDcard and selecting it says installing. But when the install is complete going to [IP address]:3000 does not display a dashboard and I can't find any installed files with include signal k in the filename.

Either:

I have version Venus OS 2.51 running already so perhaps the SWU which is for 2.50 is ignored.

or

I do need to do the full sdimg install first as per this instruction:

"To install Venus OS + Signalk on an sdcard for a rasperrypi; follow these instructions; but then using below file instead of the one mentioned in the instructions:

And If I do this then how do I go for future version updates (2.6 being around the corner).

Or could Signalk be made available as a opkg install?

Does signal k have much dependency on the Venus OS version?

Venus OSRaspberry PiSignalK
6 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

perstr avatar image perstr commented ·

Is the extended image file for Rpi no longer available for download? Or has they been merged into one image today?

Looking to install SignalK on the same Rpi running Venus OS.

0 Likes 0 ·
Stefanie (Victron Energy Staff) avatar image Stefanie (Victron Energy Staff) ♦♦ perstr commented ·
0 Likes 0 ·
perstr avatar image perstr Stefanie (Victron Energy Staff) ♦♦ commented ·

Is Signalk embedded in node-red? It looked like the extended Venus-image was no longer downloadable. The Dropbox-file was missing (404-error). Hoped to run Signalk in same Rpi as Venus to fetch NMEA-data into Venus.

0 Likes 0 ·
Stefanie (Victron Energy Staff) avatar image Stefanie (Victron Energy Staff) ♦♦ perstr commented ·

Maybe a connection problem? I still can download from dropbox.

The large image basically has node-red two times. One within SignalK, which comes as plugin and can be deactivated. Then another node-red, which you can activate/deactivate (just like signalk) from the remote console on your GX device.

0 Likes 0 ·
perstr avatar image perstr Stefanie (Victron Energy Staff) ♦♦ commented ·

Thas weird. I get at Dropbox error saying 404 this file no loner exist. Tried the URL's above (both) to download the larger image for Rpi. Tried both Safari and Chrome on a Mac. Tried from an iPhone via 4G, same error.

0 Likes 0 ·
Stefanie (Victron Energy Staff) avatar image Stefanie (Victron Energy Staff) ♦♦ perstr commented ·

Maybe you're looking at an older entry/version with link to dropbox?

Some parts of the thread is collapsed. So when you expand the view, 50+ more messages will appear...

Try this one: https://github.com/victronenergy/venus/issues/378#issuecomment-629419456

1 Like 1 ·
1 Answer
Stefanie (Victron Energy Staff) avatar image
Stefanie (Victron Energy Staff) answered ·

Hi @LaurenceH,

that's weird. For me it installs perfect using the offline install method. Even from a more recent version like 2.51 or 2.60~xyz I always can revert back to the Signal K/VenusOS version. Rpi 3B+ here too.

Maybe something in the offline install method went wrong? Here is the link to the howto, just in case you did not read that: https://www.victronenergy.com/live/ccgx:firmware_updating
It could also help to set "Update to" in the console to "Latest release".

Please also check /etc/signalk-server
AFAIK this should contain the service for Signal K. Ensure that the service has started.
Signal K path is: /data/conf/signalk


Are you on Slack? If so, you need an invite for the Victron/Signal K channel. Support there from one of the core devs for Signal K, who also is working on the integration with VenusOS. I would need your email address, if you want to join.

6 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

laurenceh avatar image laurenceh commented ·

Hi Stefanie,

Thanks for the quick reponse. If I’m on the right track - by taking a normal install and applying a signalk SWU I’ll try it again. I’ll take a look at some of the hints you have given.

Interestingly I had a Venus SD card that had been updated so I could boot as versio 2.51 or 2.42 but after attempting the SWU the firmware menu said there were no backup versions available.

I’m on slack so was ready to post my query on slack or Victron Comunuty. I joined slack today (As Laurence Hardwick) so I’ll see if I need more of an invite when I look tomorrow.

I’ll be at it again tomorrow.

Any further advice would still be welcome.


0 Likes 0 ·
Stefanie (Victron Energy Staff) avatar image Stefanie (Victron Energy Staff) ♦♦ laurenceh commented ·

Yes, I noticed the same that the menu said there is no backup versions available.
Dunno how this can happen. AFAIK there is max. of two firmware files possible. The one you ran previously before the update and the one you are running. Now when you copy another swu file to SD or USB (I use USB for update firmware) and update again, the first file is lost. Kinda like first in first out.

My guess is that after attempting the SWU, something went wrong, so it couldn't read the firmware file section. Could well be that the SD card has a problem.

0 Likes 0 ·
Show more comments

Related Resources

Additional resources still need to be added for this topic

Additional resources still need to be added for this topic

Raspberry Pi running Victron’s Venus firmware - Blog Post

Venus OS Large image: Signal K and Node-RED - Install

raspberrypi install venus image


Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)