openhab-docs/_persistence/exec
John Cocula fb194bca9c [Add-ons] Fix #358 (#359)
Resolves #358 

Signed-off-by: John Cocula <john@cocula.com>
2017-03-15 16:19:31 +01:00
..
readme.md [Add-ons] Fix #358 (#359) 2017-03-15 16:19:31 +01:00

readme.md

id label title type description source since install
exec Exec Exec - Persistence persistence This service allows you to execute commands in the underlying OS to persist item states. It could be used to, for example, call the original `rrdtool` CLI tool. https://github.com/openhab/openhab1-addons/blob/master/bundles/persistence/org.openhab.persistence.exec/README.md 1x manual

{% include base.html %}

Exec Persistence

This service allows you to execute commands in the underlying OS to persist item states. It could be used to, for example, call the original rrdtool CLI tool.

This persistence service supports only writing information, and so features such as restoreOnStartup and sitemap Chart widgets cannot be used with this service.

Configuration

This service does not have a configuration.

All item- and event-related configuration is done in the file persistence/exec.persist.

Aliases have special meaning because they contain the command line to execute e.g. like

"echo \"%2$tY-%2$tm-%2$td %2$tT : %1$s\""

To enhance the given command line with the current state or the current date, the service incorporates the String.format() method. The first parameter is always the state of the particular item, the second parameter is the current date.