Yea! thanks for doing this. It appears the daily usage is working (I will monitor it as I ran it 3 times and after the first run it shows 0). The monthly usage scheduled run is getting this error:
Schedule Propaine Monthly
TankUtility TankUtility 000900393xxxxxxxxxxxxxxx: Performing monthly calculations...
TankUtility Debug doMonthly: previous monthly reading 70.88 %
TankUtility Debug doMonthly: current reading 60.42 %
TankUtility Debug doMonthly: Monthly usage 2.60 gallons
TankUtility Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 269, in doMonthlyAction
NameError: global name 'keyValueList' is not defined
My tank capacity is 500 gallons tank (shown in the daily usage run), previous monthly readying shows 70.88% or 354.4 gallons, current ready shows 60.42% or 302.1 gallons. Monthly usage in this case is 52.3 gallons used.
Thanks again for doing this! The daily usage shows this (hope this helps):
TankUtility Debug getDevices: Tank 0009003xxxxxxxxxxxxxxxxxxxx data =
{u'device': {u'status': u'deployed', u'capacity': 500, u'orientation': u'horizontal', u'lastReading': {u'time_iso': u'2019-10-26T18:54:04.308Z', u'tank': 60.41768, u'temperature': 75.663, u'time': 1572116044308}, u'address': u'my street, city, TX 78155, USA', u'accountId': u'', u'fuelType': u'propane', u'name': u'Ranch House Propane'}}
TankUtility TankUtility 000900xxxxxxxxxxxxxxxx: Performing daily calculations...
TankUtility Debug doDaily: previous reading 60.42 %
TankUtility Debug doDaily: current reading 60.42 %
TankUtility Debug doDaily: Daily usage 0.00 gallons
TankUtility Debug doDaily: Current month usage 2.60 gallons