grousso icon

MySQL persistence strategies Openhab

grousso | PRO | 03/08/18 05:21:17 AM UTC | 0 ⭐ | 268 👁️ | Never ⏰ | []
text |

920 B

|

None

|

0 👍

/

0 👎

// persistence strategies have a name and a definition and are referred to in the "Items" section
Strategies {
	everyHour 	: "0 0 * * * ?"
	everyDay 	: "0 0 0 * * ?"
 	// if no strategy is specified for an item entry below, the default list will be used
	default = everyChange
}
 /* 
 * Each line in this section defines for which item(s) which strategy(ies) should be applied.
 * You can list single items, use "*" for all items or "groupitem*" for all members of a group
 * item (excl. the group item itself).
 */
Items {
	// persist all items once a day and on every change and restore them from the db at startup
	// careful, this might result in huge databases - that's why it is in comment here ;-)
	sensors* : strategy = everyChange, everyDay, restoreOnStartup
 	// persist all temperature and weather values at every change and every hour
	Home*, Ext* : strategy = everyChange, everyHour, restoreOnStartup
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎