more G-Labs products

Author Topic: History of data  (Read 617 times)

September 12, 2015, 10:38:51 PM
Read 617 times

domotica_user

  • *
  • Information
  • Newbie
  • Posts: 14
I am looking into functionality like: has there been a change in the data in the past x minutes (example: more than 10 minutes no movement?). I believe there is no data history available right? I would have to save the data myself in the program? Can i make this data non-volatile so that a restart of a program does not reset all data?
Thanks for your information!

September 13, 2015, 06:37:20 AM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Incorrect.  You can use the history data stored for the module in question to see what the last x actions were and at what time they happened.  I use this in my Advanced Smart Lights code to check for double ON and double OFF of a light switch within a certain amount of time.  You can certainly use this to see if an action has happened within the last 10 minutes!