This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Save data to storage
#3
There's no point in saving it to storage as you can just do grp.getvalue to get the latest value stored in the database, so your init script should look like this:
Code:
value = grp.getvalue('2/4/51')
grp.write ('2/4/51', value)

Database, storage and everything else is saved to the SD card each 30 minutes to prolong its lifespan.
Reply


Messages In This Thread
Save data to storage - by Domoticatorino - 23.09.2016, 16:25
RE: Save data to storage - by admin - 23.09.2016, 18:05
RE: Save data to storage - by Domoticatorino - 23.09.2016, 18:11

Forum Jump: