question

Mark avatar image
Mark asked

Keep changes on RPI after firmware update, (headless, rotate, relays ect)

HI all

Has anyone managed to write a script that will run all the modifications and changes back to the RPI after a version update? like headless, touchscreen, screen dimming and timer. So we don't have to redo this every time.

I've read https://www.victronenergy.com/live/ccgx:root_access but cnat quite get my head around what is needed? I'm no programmer but I dont mind a little tinkering if I have some guidance.

Thanks

Mark

Venus OSfirmware updateRaspberry Pi
2 |3000

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

2 Answers
wkirby avatar image
wkirby answered ·

There is some useful information here with some examples of what people (myself included) have done: https://community.victronenergy.com/questions/13646/upgrading-pi-erased-settings.html

9 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.

Mark avatar image Mark commented ·

That’s awesome thank you, I’m guessing that you put the updated files in the /data folder along with the script if I’ve read it correctly lol. As I also add a folder for adc and relays and gpio list.

Thanks

Mark

0 Likes 0 ·
wkirby avatar image wkirby ♦♦ Mark commented ·

Yes. I keep the modified files and script in the /data directory where they are preserved.

1 Like 1 ·
Mark avatar image Mark wkirby ♦♦ commented ·

@WKirby

Thanks i'll have tinker tonight and hopefully get it work working.

On a different note..... Do you know how to change the resistor values for the tank levels? id like to monitor my LPG but the sender is only 0-95 ohm. I have the water tank one working no problem but that sender is the 0 -190 ohm.

I cant seem to find where the settings for the values are? Ive found the relevant pages in the gui folder tanksettings, sensor settings and settingsJS but i'm not sure where the resistance settings are?


Cheers

Mark

0 Likes 0 ·
laurenceh avatar image laurenceh Mark commented ·

Mark

I was thinking of putting all the (re)configuration files onto a removable USB memory stick then it can be plugged in any time you need to fix a configuration. This would be particularly useful if you keep more than one Venus os SD around so that you have a spare in case of corruption ( which has happened to me in other Rpi projects)

Laurence

0 Likes 0 ·
Mark avatar image Mark laurenceh commented ·

@LaurenceH

Thats an awesome idea if you manage to get that working i'd love a heads up how you did it.

I'm still trying to no avail :( to find out how / where you alter the tank resistance settings.

Thanks

Mark

0 Likes 0 ·
laurenceh avatar image laurenceh Mark commented ·

Mark

I have completed and tested the script I suggested here against release 2.51. I have just published and article about it.

here

Laurence

0 Likes 0 ·
neoneddy avatar image neoneddy laurenceh commented ·

Link to article?

0 Likes 0 ·
laurenceh avatar image laurenceh neoneddy commented ·

added to my comment

0 Likes 0 ·
Mark avatar image Mark laurenceh commented ·

awesome thank you

0 Likes 0 ·
Kevin Windrem avatar image
Kevin Windrem answered ·

I have created scripts to add support for the "Official Raspberry PI 7" Touchscreen" and the CANable CANbus USB interface.

https://github.com/kwindrem/RpiDisplaySetup

https://github.com/kwindrem/VeCanSetup

Both scripts add code to reinstall components following a Venus OS upgrade. /data/rc.local runs every time the system boots, so the code there checks "flag" files that are wiped out by a Venus update to control whether to run the setup scripts. If the flag is missing, the related setup script is run again.

Read carefully the introduction for the display setup as unannounced reboots can occur to run touchscreen calibration.

Hope this helps or gives you ideas for your own scripts.

2 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.

Kevin Windrem avatar image Kevin Windrem commented ·

I have rewritten my RPI mods they are now here

For RPI 7" touch screen

https://github.com/kwindrem/RpiDisplaySetup-for-VenusOs

VeCan setup -- MUCH advanced

https://github.com/kwindrem/VeCanSetup-for-VenusOs

digital inputs - all 5 and all have pull-ups instead of a mix of up and down

https://github.com/kwindrem/RpiGpioSetup-for-VenusOS


0 Likes 0 ·