Xenomes wrote: ↑Friday 21 August 2020 11:48
Code: Select all
/home/pi/domoticz/scripts/dzVents/../lua/JSON.lua:808: expected string argument to JSON:decode(), got table
Switching method to parse data between script executions
Now use dzVents persistent data . Should be handled correctly by all dzVents versions >= 3.0
history:
20200816 Start coding
20200817 Initial release on forum
20200818 Fixed jq output redirection from stdout to file for version < 1.6
20200818 Only select last date from records
20200818 Add total for the Netherlands (based on all Municipalities)
20200819 Add description how to populate history table
20200819 Fixed unwanted end of comment block
20200820 Update text device in separate execution to collect latest counters
20200820 Add lodash debug lines
20200820 Fixed unexpected behavior with city names containing special chars
20200820 Add latest report time to text sensor
20200820 Make filterdelay configurable and fixed typo
20200821 Use base64 string as data for dzVents < 3.0.9 (curl POST cannot be used to trigger customEvents in these versions)
20200821 Use persistent data to parse filtered data between script executions
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>>
dzVents wiki