Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formatted the demo / example files (#593)
Closes #590 Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
- Loading branch information
1 parent
6eeea37
commit a450b6a
Showing
4 changed files
with
117 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
features/distro-resources/src/main/resources/persistence/rrd4j.persist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// persistence strategies have a name and a definition and are referred to in the "Items" section | ||
Strategies { | ||
// for rrd charts, we need a cron strategy | ||
everyMinute : "0 * * * * ?" | ||
// for rrd charts, we need a cron strategy | ||
everyMinute : "0 * * * * ?" | ||
} | ||
|
||
Items { | ||
DemoSwitch,NoOfLights,Window_GF_Toilet,Heating* : strategy = everyChange, everyMinute, restoreOnStartup | ||
// let's only store temperature values in rrd | ||
Temperature*,Weather_Chart* : strategy = everyMinute, restoreOnStartup | ||
DemoSwitch, NoOfLights, Window_GF_Toilet, Heating* : strategy = everyChange, everyMinute, restoreOnStartup | ||
// let's only store temperature values in rrd | ||
Temperature*, Weather_Chart* : strategy = everyMinute, restoreOnStartup | ||
} | ||
|
||
// vim: syntax=Xtend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
features/distro-resources/src/main/resources/things/demo.things
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
yahooweather:weather:berlin [ location=638242 ] | ||
astro:sun:home [ geolocation="52.5200066,13.4049540", interval=60 ] | ||
astro:moon:home [ geolocation="52.5200066,13.4049540", interval=60 ] | ||
ntp:ntp:demo [ hostname="nl.pool.ntp.org", refreshInterval=60, refreshNtp=30 ] | ||
|
||
astro:sun:home [ geolocation="52.5200066,13.4049540", interval=60 ] | ||
astro:moon:home [ geolocation="52.5200066,13.4049540", interval=60 ] | ||
|
||
ntp:ntp:demo [ hostname="nl.pool.ntp.org", refreshInterval=60, refreshNtp=30 ] | ||
|
||
// vim: syntax=Xtend |