I am very new in InfluxDB. I have InfluxDB, Kapacitor and Chronograf installed on QNAP NAS. It collects data form Domoticz (installed on Raspberry Pi) via build-in Domoticz interface to InfluxDB. Grafana is installed on my Desktop PC.
My timezone is Europe/Warsaw. The problem I have is that Grafana, Chronograf shows time according to my timezone. But if I want to query database from CLI, the time is presented according to GMT time. All data in database are stored with UTC timestamps. I checked it using on-line Unix timestamp converter available on Internet.
But if I query database directly from QNAP CLI presents a time according to GMT. The same situation is when I query DB over network using CURL.
Below syntax of my CLI query:
Blockquote
influx -precision rfc3339 -execute “SELECT mean(“value”) AS “mean_value” FROM “nanopi”.“autogen”.“Temperature” WHERE time >
now() - $time GROUP BY time(1s) FILL(none)”
It returns proper values but time is specify according to GMT
So i want to add tz() to query. Below query and result
Blockquote
influx -precision rfc3339 -execute “SELECT mean(“value”) AS “mean_value” FROM “nanopi”.“autogen”.“Temperature” WHERE time >
now() - $time GROUP BY time(1s) FILL(none) tz(‘Europe/Warsaw’)”
ERR: error parsing query: unable to find time zone Europe/Warsaw
Warning: It is possible this error is due to not setting a database.
Please set a database with the command “use <database>”.
error parsing query: unable to find time zone Europe/Warsaw
What I am doing wrong? Any syntax error? Be so kind to help as I am newbie…