I followed the instruction from here and here on how to install and configure InfluxDB and Grafana for my RPI3, consulting grafana-on-raspberry for up do date install instructions and had some further reading on influxDB or Grafana .
I run InfluxDB, Grafana and OpenHAB on the RPI3.
As the webview element in Android App did not log in and showed the loggin credentials i thought of setting up the webview url with user credentials.
Calling the url from the browser got me a warning that the page does not accept login credentials which leaded me to this post which states to disable the basic authentification.
sudo nano /etc/grafana/grafana.ini
#################################### Users ####################################
[users]
# disable user signup / registration
allow_sign_up = false
...
#################################### Anonymous Auth ##########################
[auth.anonymous]
# enable anonymous access
enabled = true
...
#################################### Basic Auth ##########################
[auth.basic]
enabled = false
[security]
allow_embedding=true
Restart grafana and close the App!!!
systemctl restart grafana-server.service
So this made gafana work also in the AndroidApp
Frame{ Webview height=10
url="http://<IP_HOST>:3000/dashboard-solo/db/<PANELNAME>?panelId=<PANELID>& <...>
}
This is the sitemap view in the browser.
This is the sitemap view in the App.
Thank you @ThomDietrich for the nice tutorial. Maybe this was allready known, but i could not find anything about it.
EDIT: @jeffstagedoor added it to the grafana config