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.