RPi-Reporter-MQTT2HA-Daemon
RPi-Reporter-MQTT2HA-Daemon copied to clipboard
Add easy way to report individual values to monitor
Thanks for your wonderful Daemon and perfect setup description - works like a charm!
To support individual programs or scripts running on the Raspberry Pi it would be more than useful if the monitoring/reporting of individual values/parameters could be added.
For example on my Pi there are multiple scripts running - it would be very helpful if I could use the RPI-Reporter_MQTT2HA-Daemon to report in parallel, which script was running on what time and for what period of time. This could be done by different methods - e.g. an environment-value, which the script sets to 1 if running and 0 if not and is monitored by your program. Or e.g. by a program-call with some parameters (e.g. ./update_individual_value.py NEW_VALUE ) or any other smarter way to pass individual values to the script...
Happy to support / test / discuss (but unfortunately not smart enough, to implement from scratch on my own :( )
@snoopy0815 Hmmm... have to ponder this one. It seems you are asking for custom external "somethings" to be run and their "results" being reported via MQTT messaging.
I'll need more examples to get a sense of how this could work. Tell me more?
I would be interested in an easy way for extending the topics and data reported via MQTT as well. I would think of this as adding a software layer to the reporting, since hardware and OS is already covered very well.
In my setup, I have multiple RPIs each of which runs multiple applications inside podman containers. Every night, a systemd service is triggered to backup the container volumes (i.e. my user data) to an external drive and afterwards to a cloud storage. I would like to see the status of the podman/docker containers and the status of my backups. Both could actually be done by looking at the status of the corresponding systemd services and maybe have the service's logs parsed by e.g. a user-defined regex. Not sure if this would cover @snoopy0815 initial intent, but for me looking into the output of systemctl status <MY_SERVICE> and possibly journalctl -u <MY_SERVICE> plus a bit of regex parsing would suffice.
After your backup, in the same script just send an mqtt message to HA and then pick it up yourself.
?
No need to bloat this script for niche uses (just my opinion).
On Sat, 10 Jun 2023, 12:12 pm simfinite, @.***> wrote:
I would be interested in an easy way for extending the topics and data reported via MQTT as well. I would think of this as adding a software layer to the reporting, since hardware and OS is already covered very well.
In my setup, I have multiple RPIs each of which runs multiple applications inside podman containers. Every night, a systemd service is triggered to backup the container volumes (i.e. my user data) to an external drive and afterwards to a cloud storage. I would like to see the status of the podman/docker containers and the status of my backups. Both could actually be done by looking at the status of the corresponding systemd services and maybe have the service's logs parsed by e.g. a user-defined regex. Not sure if this would cover @snoopy0815 https://github.com/snoopy0815 initial intent, but for me looking into the output of systemctl status <MY_SERVICE> and possibly journalctl -u <MY_SERVICE> plus a bit of regex parsing would suffice.
— Reply to this email directly, view it on GitHub https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/issues/41#issuecomment-1585620307, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN7KIRRLSUZJXGZR4KLXKRJAFANCNFSM5K53JIVQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>
Or look into Glances and see if it can do it. It's an official one and I know it can do Docker stuff, so may work.
On Sat, 10 Jun 2023, 12:12 pm simfinite, @.***> wrote:
I would be interested in an easy way for extending the topics and data reported via MQTT as well. I would think of this as adding a software layer to the reporting, since hardware and OS is already covered very well.
In my setup, I have multiple RPIs each of which runs multiple applications inside podman containers. Every night, a systemd service is triggered to backup the container volumes (i.e. my user data) to an external drive and afterwards to a cloud storage. I would like to see the status of the podman/docker containers and the status of my backups. Both could actually be done by looking at the status of the corresponding systemd services and maybe have the service's logs parsed by e.g. a user-defined regex. Not sure if this would cover @snoopy0815 https://github.com/snoopy0815 initial intent, but for me looking into the output of systemctl status <MY_SERVICE> and possibly journalctl -u <MY_SERVICE> plus a bit of regex parsing would suffice.
— Reply to this email directly, view it on GitHub https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/issues/41#issuecomment-1585620307, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN7KIRRLSUZJXGZR4KLXKRJAFANCNFSM5K53JIVQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>