RPi-Reporter-MQTT2HA-Daemon icon indicating copy to clipboard operation
RPi-Reporter-MQTT2HA-Daemon copied to clipboard

Update script

Open ddppddpp opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe. No, not related to a problem. Just an idea :-) Describe the solution you'd like I've used your update instructions to create a update-rpireporter.sh in /home/pi. This can be executed remotely (i.e. with a curl command or command_line switch) from HA.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

ddppddpp avatar Feb 28 '23 17:02 ddppddpp

Is your intent now to create a button in HA to do the full os upgrade sequence but unattended?:

sudo apt-get update
sudo apt-get dist-upgrade

ironsheep avatar Feb 28 '23 19:02 ironsheep

No, not really, only RPi-Reporter

ddppddpp avatar Feb 28 '23 20:02 ddppddpp

Ok, I'm misunderstanding, sorry. So, do you want the reporter project itself to be updated?

Since there are a number of ways it could be installed this would have to be a script created by the user and then identified to the daemon. The script would do the installation specific to the users' install technique. The daemon would tell the system to launch the script asynchronously as the Daemon couldn't launch the script directly since it would be being replaced... hmm... need to ponder this and do some research.

ironsheep avatar Feb 28 '23 20:02 ironsheep

Using the attached script since a while, nothing fancy, installation location and service name are not really flexible, but it is doing the job when updating this project .

Forgot to mention: The file is of course kept outside the installation-folder for RPI-Reporter, I'm starting it from the "home"-folder for my standard user on the Raspberry.

Armin rpi-reporterupdate.txt

armin-gh avatar Mar 01 '23 16:03 armin-gh

Thanks for the script... more when I decide how to handle this...

ironsheep avatar Mar 01 '23 22:03 ironsheep

One thing that update script doesn't do, as I just used it thankyou :-), is merge the config.ini files.
So some new features can are not used/easy to edit afterwards.

bsimmo avatar Apr 24 '23 17:04 bsimmo