when/how reset persistant data

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
renerene
Posts: 356
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

when/how reset persistant data

Post by renerene »

Tell me more about persistant data. In the data section you can give an initial value. When does it get this value?
Do you make extra code in case you need to reset?
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: when/how reset persistant data

Post by dannybloe »

It will get that value when there is no prior data. Resetting can be done by throwing away (or editing) the data file for your script. See How does the storage stuff work?.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: when/how reset persistant data

Post by dannybloe »

Or just give it a new value in your script.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest