Open jake404 opened 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.
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.
Ok, I got it working. However I have to remove collector_type in the graphs to see the data.
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.
In the InfluxDB UI you can find 'API Tokens' under 'Load Data'.
Thanks for the help. I got it working. Also I had to remove collector_type as well just as you said.
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
Looks like the remote-forecast
collector isn't working anymore, or at least not pushing to influx.
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.
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?