alaub81 / openHAB

openHAB Setup and Tools
https://www.laub-home.de/wiki/OpenHAB_3_Docker_Installation
2 stars 1 forks source link

Error with cleanup-openhab-influxdb2.sh #1

Closed TheNavy closed 2 years ago

TheNavy commented 2 years ago

The OpenHAB -> InfluxDB Cleanup script won't work for me:

awk: fatal: invalid regexp: Invalid regular expression: /"values":[/

I've changed the following line awk -F '"values":\[' '{ print $2 }' |\ to awk -F '"values":' '{ print $2 }' |\

and now it finished perfectly without error and deletes the correct Measurements :)

alaub81 commented 2 years ago

I can not reproduce your problem. On my environment everything is working, but also with your change. I will play around a bit, and if your change is working fine, I will update the script!

alaub81 commented 2 years ago

After checking the proposed fix, I changed it to:

awk -F '"values":' '{ print $2 }' |\

there is no difference of the output.