#Image creation triggered by HA

1 messages · Page 1 of 1 (latest)

undone silo
#

Hallo,

I was planning simply to send mobile notification once a day showing the electricity prices for the next day. Nice addition would have been to include small plot of the prices as an image. This is where it got difficult.

I tried to create python script and run it in HA-docker container to generate image, but appears that it is missing mathplotlib from there.

I could generate it externally, but I don't know what would be easiest way to trigger the generation with the data from the HA.

Any ideas?

undone silo
#

Hmm, actually that data was rather easy to fetch from the HA and also got it plotted and stored to web server.

Maybe I will just set crontab trigger to create the image a bit before sending out the notification

subtle basin
#

or could use MQTT to send a command?

#

or run the script via ssh. there is an integration for easily doing that on HACS

#

one of those, "100 solutions" problems I think.

undone silo
#

Yeah definitely. I got pretty far with this already, so I will continue the attempts. Thanks for those tips!