Seite 1 von 1

InfluxDB Field bzw. Item löschen

Verfasst: 24. Apr 2022 19:05
von ML_1982
Ich habe den Datentyp eines ITEMs geändert und daher kann Openhab die Daten nicht mehr in die InfluxDB schreiben. (Siehe Screenshot)
2022-04-24_18h20_02.png
Wie lösche ich nun alle Daten des Items, damit Openhab die neuen Daten in die Datenbank schreiben kann?

in das CLI von Influx komme ich, aber wie geht es dann weiter?

Code: Alles auswählen

openhabian@openhabian:~ $ sudo influx
Connected to http://localhost:8086 version 1.8.10
InfluxDB shell version: 1.8.10
> show databases
ERR: unable to parse authentication credentials
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".
> use openhab
ERR: unable to parse authentication credentials
DB does not exist!
> delete
ERR: unable to parse authentication credentials
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".
>

Re: InfluxDB Field bzw. Item löschen

Verfasst: 24. Apr 2022 21:19
von ML_1982
ich habs geschafft:

Code: Alles auswählen

openhabian@openhabian:~ $ influx -database openhab -username openhab -password ****mySecret***
Connected to http://localhost:8086 version 1.8.10
InfluxDB shell version: 1.8.10
> SHOW DATABASES
name: databases
name
----
openhab
> DELETE FROM "SpulmaschineStartZeitpunkt"