I am trying to setup one Operato Windorose using influxDB query but although the query it self gives back values for wind_speed and wind_direction it is not shown in the windrose, se my query:
In the description of the plugin it mentioned SQL query:
SELECT
wind_weather_data.speed AS wind_speed,
wind_weather_data.direction AS wind_direction
FROM wind_weather_data
WHERE wind_weather_data.time BETWEEN '2023-05-02T00:00:00Z' AND '2023-05-02T023:59:59Z'
According to the description wind_speed and wind_direction are " âŚare fixed and cannot be changed". And I do have the same variables names as we can see in the influxDB query.
So, after I saw also the Apache ECharts I took the the other way and now I have a dedicated mysql db only for wind data. My Windrose is ready only some fine tuning is needed for example how to have a different time range only for the windrose. I mean I would like to show only the wind data of the last 5m and not for the other panels the last 6h?
SELECT
$__timeGroup(time_dt, '1m') AS "time",
wind_speed,
wind_direction
FROM windDB.wind_data
WHERE location = 'xxxx' AND time_dt BETWEEN (DATE_SUB(UTC_TIMESTAMP(),INTERVAL 10 MINUTE)) AND UTC_TIMESTAMP()
Hi, Iâd really appreciate a working example for influxDB and Operato Windrose too. Every time I try influxDB I get an error, even if itâs a single line of code. Thanks in advance.
Hi @sailgrafana what do you mean by a working example for influxDB? Do you mean a working query and panel? or a working plugin?
Also it is best if in a future time you post the error you are getting since a screenshot can only show you thereâs in a error but not what kind and there could be many many types of errors
I tried using your working example and simply substituting âmeasurementâ for âfieldâ and renaming the bucket etc. but this didnât work. Iâm guessing that my syntax is to blame? Or perhaps the fact that there are two tables (0 and 1)? but the specific error was:
You can also try to store only angleApparent resp. speedApparent into the Influx from your data source. In general the values angleApparent resp. angleApparent should be stored in the â_fieldâ column. and _measurement should be more generic, e. g. âclimateâ or even âwindâ. But if you can achieve this within your data load task into Influx DB, you could then solve the renaming of the values to *wind_speed" and wind_direction itself. You then only need the pivoting and renaming: