RPi-Reporter-MQTT2HA-Daemon
RPi-Reporter-MQTT2HA-Daemon copied to clipboard
Update script
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.
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
No, not really, only RPi-Reporter
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.
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
Thanks for the script... more when I decide how to handle this...
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.