I followed this guide and I have configured influxdb + Grafana. Creating and manipulating a chart containing sensors temperature through Grafana server (openhab:3000) was as easy as it could be
In the next step I have tried to include a graph in my sitemap, example taken here.
Text item=Charts icon="calendar"{
Webview url="http://MYIP:3000/static/chartsDay.html" height=33
}
However, the OpenHAB does not open any chart but a blank window with the message
I think Grafana also has a setting to allow embedding charts in other websites that needs to be set. I donât embed directly so canât say what it is but this should give you enough to search on.
As mentioned, make sure youâve restarted Grafana after the ini updates.
Also, the logs appear to show that you donât have an appropriate item called âChartsâ in your items file which makes me wonder if you might have an issue in the sitemap file.
Have you tried using the webview with just Webview url="/static/chartsDay.html" part called out like in the example?
Now grafana is loaded - I see the âsunâ spinning and jumping around while loading the page, then a nice version of the classic â404 Page not foundâ appears - see below.
Wait, that URL doesnât make sense. If you are following Paulâs approach you need to create chartsDay.html and put that in $OH_CONF/html/chartsDay.html. That HTML file has the links to your Grafana charts. On your sitemap you put
http://<IP of your OH instance>:8080/static/chartsDay.html
I highly recommend returning to Paulâs post and reread how it is supposed to work.
All files are loaded w/o issues, but when I try to access the charts the log shows
2020-02-12 23:26:22.951 [WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/weatherChartPeriod' with an invalid status value '1'.
with the â1â actually being â0â, â1â or â2â according to the clicked mapping.