Closed TheNavy closed 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!
After checking the proposed fix, I changed it to:
awk -F '"values":' '{ print $2 }' |\
there is no difference of the output.
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 }' |\
toawk -F '"values":' '{ print $2 }' |\
and now it finished perfectly without error and deletes the correct Measurements :)