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
77 stars 9 forks source link

Grafana dashboards not working with v5.1.54 #27

Open jake404 opened 4 months ago

jake404 commented 4 months 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 4 months 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 4 months 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 4 months ago

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

jacben commented 4 months 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 4 months ago

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

Screenshot_20240702_195747_Vivaldi

jacben commented 4 months ago

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

jmoflhrc commented 3 months ago

Using the Grafana linked dashboard things are all sorts of not happy. But grabbing the files from github and importing them into Grafana worked perfect. https://github.com/lux4rd0/weatherflow-collector/tree/main/grafana/dashboards/external

mja00 commented 1 month ago

Looks like the remote-forecast collector isn't working anymore, or at least not pushing to influx.

mja00 commented 1 month ago

Okay looks like collectors and some tags were renamed in an update and the preloaded dashboards (at least from grafana IDs) aren't updated.

Collectors: remote-forecast -> collector_forecast remote-rest -> collector_rest local-udp -> collector_udp

Tags: forecast_hourly_days_out -> number_of_days_out timezone -> station_timezone

There may be a few I forgot to remember but most tags were named to something obvious.