ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
442 stars 62 forks source link

Update script #87

Open ddppddpp opened 1 year ago

ddppddpp commented 1 year ago

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.

ironsheep commented 1 year ago

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
ddppddpp commented 1 year ago

No, not really, only RPi-Reporter

ironsheep commented 1 year ago

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.

armin-gh commented 1 year ago

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

ironsheep commented 1 year ago

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

bsimmo commented 1 year ago

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.