Forget about porting InfluxDB & Grafana in a NAS, if you have WeeWX in 
RPi.... too much trouble to setup in a "Container".

I previously mentioned how to port InfluxDB & Grafana in QNAP... but now 
installed and moved to RPi (database restarting)... and NOT without 
difficulties. To note, usual or outdated directions does NOT work, so 
follow the following;

RPi - Raspbian Buster

A) InfluxDB
% apt isntall influxdb
% systemctl unmask influxdb
% systemctl enable influxdb
% systemctl enable influxdb
% influx

Config file:
/etc/influxdb/influxdb.conf
Meta database file:
/var/lib/influxdb/meta/meta.db

http://[localhost/IP]:8086

https://pimylifeup.com/raspberry-pi-influxdb/
https://docs.influxdata.com/influxdb/v1.7/administration/config/

B) Grafana
% wget https://dl.grafana.com/oss/release/grafana_6.5.2_armhf.deb
% dpkg -i grafana_6.5.2_armhf.deb

Install msg:
### NOT starting on installation, please execute the following statements 
to configure grafana to start automatically using systemd
% sudo /bin/systemctl daemon-reload
% sudo /bin/systemctl enable grafana-server
### You can start grafana-server by executing
% sudo /bin/systemctl start grafana-server

Package notes:
Installs binary to /usr/sbin/grafana-server
Installs Init.d script to /etc/init.d/grafana-server
Creates default file (environment vars) to /etc/default/grafana-server
Installs configuration file to /etc/grafana/grafana.ini
Installs systemd service (if systemd is available) name 
grafana-server.service
The default configuration sets the log file at /var/log/grafana/grafana.log
The default configuration specifies an sqlite3 db at 
/var/lib/grafana/grafana.db
Installs HTML/JS/CSS and other Grafana files at /usr/share/grafana


http://[localhost/IP]:3000

https://grafana.com/grafana/download?platform=arm
https://grafana.com/docs/grafana/latest/installation/debian/#package-details


Extra note: Anonymous access for Website Embed Grafana panel or dashboard

1) Anonymous access
Edit "defaults.ini" to allow anonymous access, no password and role as 
viewer (in RPi, remove ';' from Config file to be effective!).
[auth.anonymous]
enabled = true
org_name = ['Main Org.' or other]
org_role = Viewer
[auth.basic]
...
allow_embedding = true

https://stackoverflow.com/questions/33111835/how-to-set-up-grafana-so-that-no-password-is-necessary-to-view-dashboards
https://grafana.com/docs/grafana/latest/installation/configuration/

2) URL
iframe can be setup to share a single panel (graph) or the entire dashboard.
Many options can be insert in menu, including timeframe.
Add '&kiosk' at the end of URL to remove buttons and menus.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/874dd0e1-535e-4403-bbec-125152d7fbbd%40googlegroups.com.

Reply via email to