updated flowmeterskid to have previous increment
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"root = \"/Users/nico/Documents/GitHub/HP_InHand_IG502/Pub_Sub/\"\n",
|
||||
"devicetype = \"advvfdipp\"\n",
|
||||
"devicetype = \"flowmeterskid\"\n",
|
||||
"platform = \"thingsboard\" #\"mistaway\"\n",
|
||||
"startversion = 2\n",
|
||||
"startversion = 0\n",
|
||||
"deviceconfig = devicetype + \"_tb_\" +\"v\" + str(startversion) + \".cfg\"\n"
|
||||
]
|
||||
},
|
||||
|
||||
330
Pub_Sub/flowmeterskid/thingsboard/v1/flowmeterskid_tb_v1.cfg
Normal file
330
Pub_Sub/flowmeterskid/thingsboard/v1/flowmeterskid_tb_v1.cfg
Normal file
File diff suppressed because one or more lines are too long
@@ -172,12 +172,16 @@ def sendData(message,wizard_api):
|
||||
publish(__topic__, json.dumps(payload), __qos__)
|
||||
|
||||
if dayReset:
|
||||
resetPayload["values"]["yesterday_volume"] = payload["values"]["day_volume"]
|
||||
resetPayload["values"]["day_volume"] = 0
|
||||
if weekReset:
|
||||
resetPayload["values"]["last_week_volume"] = payload["values"]["week_volume"]
|
||||
resetPayload["values"]["week_volume"] = 0
|
||||
if monthReset:
|
||||
resetPayload["values"]["last_month_volume"] = payload["values"]["month_volume"]
|
||||
resetPayload["values"]["month_volume"] = 0
|
||||
if yearReset:
|
||||
resetPayload["values"]["last_year_volume"] = payload["values"]["year_volume"]
|
||||
resetPayload["values"]["year_volume"] = 0
|
||||
|
||||
if resetPayload["values"]:
|
||||
Reference in New Issue
Block a user