Hallo SBorg,
ich habe noch eine Entdeckung gemacht und zwar kann man dem Befehle auch noch eine Timezone mitgeben:
influx -username 'admin' -password '123456789' -host 'localhost' -database 'DBEnergie' -precision 'rfc3339' -format 'csv' -execute "SELECT * FROM \"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-Gas\",\"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-H2O\",\"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-Strom\",\"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-Leistung\",\"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-Stroeme\" WHERE time >= '2020-01-01T00:00:00Z' AND time <= '2020-01-31T23:59:59.999Z' tz('Europe/Berlin')" > /media/usb_stick_128/datenbanken_csv/DBEnergie_WGS.csv
so sah ja das original aus:
sudo influx -username 'admin' -password '123456789' -host 'localhost' -database 'DBEnergie' -precision 'rfc3339' -format 'csv' -execute "SELECT * FROM \"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-Gas\",\"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-H2O\",\"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-Strom\",\"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-Leistung\",\"mqtt.0.SmartHome.Energie.100-WGS-Zaehler.tele.Sensor-Stroeme\" WHERE time >= '2020-01-01T00:00:00Z' AND time <= '2020-01-31T23:59:59.999Z'" > /media/usb_stick_128/datenbanken_csv/DBEnergie_WGS.csv
Somit ist im Moment mal die richtige Zeit im Export der csv. => originalzeit eben 2020-01-23 16:30 Uhr
beim erstellen der .csv Datei
8c85d37e-f233-49a6-a189-d224c32cbe95-image.png
Ja geht auch ohne "sudo"