lux4rd0 / weatherflow-collector

The WeatherFlow Collector is a comprehensive data collection system that gathers weather data from local UDP broadcasts and remote APIs. It seamlessly feeds this data into InfluxDB V2, which can be visualized using a set of pre-configured Grafana dashboards. The application provides real-time current conditions and detailed forecasts.
https://labs.lux4rd0.com/weatherflow-collector/
GNU Affero General Public License v3.0
73 stars 9 forks source link

Grafana dashboards not working with v5.1.54 #27

Open jake404 opened 1 month ago

jake404 commented 1 month ago

I set up a new container with version 5.1.54, and it imported the Weatherflow REST data just fine. I can explore the data both from InfluxDB and Grafana. However, the Grafana dashboards do not work. I checked the variables, and for example, station_name does not return my station. I have set the data source query language to Flux. Are the dashboards not updated to work with the new version?

jacben commented 1 month ago

I am experiencing the same issue as @jake404 . The issue for me seems to be centered around the WeatherFlow Collector not being able to establish a connection to InfluxDB.

lux4rd0 commented 1 month ago

I'm still using InfluxSQL - not Flux. The dashboards are correct - the data source needs to be setup a little differently. I'll update the documentation shortly. In short:

With InfluxQL selected as the query language in your InfluxDB data source settings:

Under HTTP, enter the following:

URL: Your InfluxDB URL.

http://localhost:8086/ Change InfluxDB URL Configure InfluxDB authentication:

Token authentication Under Custom HTTP Headers, select Add Header. Provide your InfluxDB API token:

Header: Enter Authorization Value: Use the Token schema and provide your InfluxDB API token. For example:

Token y0uR5uP3rSecr3tT0k3n Under InfluxDB Details, do the following:

Database: Enter the database name mapped to your InfluxDB 2.7 bucket HTTP Method: Select GET Authenticate with username and password Under InfluxDB Details, do the following:

Database: Enter the database name mapped to your InfluxDB 2.7 bucket User: Enter the username associated with your InfluxDB 1.x compatibility authorization Password: Enter the password associated with your InfluxDB 1.x compatibility authorization HTTP Method: Select GET Click Save & Test. Grafana attempts to connect to the InfluxDB 2.7 data source and returns the results of the test.

jake404 commented 1 month ago

Ok, I got it working. However I have to remove collector_type in the graphs to see the data.

jacben commented 1 month ago

Thanks for the help. I'm sorry - where can I find my WEATHERFLOW_COLLECTOR_INFLUXDB_TOKEN token? I assume this is not the same as my WEATHERFLOW_COLLECTOR_API_TOKEN.

jake404 commented 1 month ago

In the InfluxDB UI you can find 'API Tokens' under 'Load Data'.

Screenshot_20240702_195747_Vivaldi

jacben commented 1 month ago

Thanks for the help. I got it working. Also I had to remove collector_type as well just as you said.