is it possible to include a chart in an email remote?
In my case I am looking for a solution to the get the solar power generation by email. In this email I want to get some more information: total power and the chart of the day before.
Is this somehow possible?
The standard openHAB charts can be created directly, see Here..
In order to include such a chart in an email I would use an external html-to-picture converter. Something like the one I was talking about in Here
Thanks, this was really helpful
I got the external html-to-picture converter for several html pages, but it does not work for my default sitemap in which I have the graphs.
this works, but does not contain anything interesting:
I want the same thing,
I hope that I can execute the external html-to-picture by a crontab in Linux and from Openhab send a mail from a rule with:
sendMail(“test@hotmail.com”, “Electrical Consumtion”, “Graph of todays energy consumption”, “file:///home/pi/IOTstack/MyPicture.jpg”)
I have not verified that this will work - first step is to get the picture, but I can not get a jpg export of my graph in opehab - I need some help with this step
Great job,
I am sending an email and a telegram with a small video file when someone rings my doorbell or the mail has dropped something in my mailbox.
I am trying to see if the command work first (take a screenshot of sitemap, and save the png file in the html folder), then I’ll put the command inside a .sh file, and run the script using executeCommandLine in a rule.
In putty terminal:
openhabian@FlowerRoom2:~ $ xvfb-run --server-args="-screen 0, 640Ă—480x24" cutycapt --url=http://192.168.1.252:8080/basicui/app?w=0300&sitemap=FR2 --out=/etc/openhab2/html/Grafana_Temp.png
[1] 1514
-bash: --out=/etc/openhab2/html/Grafana_Temp.png: No such file or directory
openhabian@FlowerRoom2:~ $ xvfb-run: error: Xvfb failed to start
Then I used sudo:
openhabian@FlowerRoom2:~ $ sudo xvfb-run --server-args="-screen 0, 640Ă—480x24" cutycapt --url=http://192.168.1.252:8080/basicui/app?w=0300&sitemap=FR2 --out=/etc/openhab2/html/Grafana_Temp.png
[1] 1655
-bash: --out=/etc/openhab2/html/Grafana_Temp.png: No such file or directory
Could someone please assist me? I don’t have enough knowledge or experience to figure this out. Thank you.
FYI: openhab2.5.12, RPi3B+. influxdb and grafana running smoothly as well.