grousso

MySQL persistence strategies Openhab

Mar 8th, 2018
300
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. // persistence strategies have a name and a definition and are referred to in the "Items" section
  2. Strategies {
  3. everyHour : "0 0 * * * ?"
  4. everyDay : "0 0 0 * * ?"
  5.  
  6. // if no strategy is specified for an item entry below, the default list will be used
  7. default = everyChange
  8. }
  9.  
  10. /*
  11. * Each line in this section defines for which item(s) which strategy(ies) should be applied.
  12. * You can list single items, use "*" for all items or "groupitem*" for all members of a group
  13. * item (excl. the group item itself).
  14. */
  15. Items {
  16. // persist all items once a day and on every change and restore them from the db at startup
  17. // careful, this might result in huge databases - that's why it is in comment here ;-)
  18. sensors* : strategy = everyChange, everyDay, restoreOnStartup
  19.  
  20. // persist all temperature and weather values at every change and every hour
  21. Home*, Ext* : strategy = everyChange, everyHour, restoreOnStartup
  22. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment