There’s an example in another thread showing the offset parameter and links to the updated docs:
Wow this is great! OH2 is growing fast!
After your advice i tested a sunrise/sunset configuration, like this:
astro.items:
DateTime Sunrise_Time “Sunrise [%1$tl:%1$tM %1$tp]” {astro=“planet=sun, type=rise, property=start”}
DateTime Sunset_Time “Sunset [%1$tl:%1$tM %1$tp]” {astro=“planet=sun, type=set, property=end”}
Switch Sunrise_Event {astro=“planet=sun, type=rise, property=start, offset=0”}
Switch Sunset_Event {astro=“plan…
To use config files only, I personally have:
astro.things:
astro:sun:local [ geolocation="55.0,-1.0", interval=900 ]
The linked example then gives astro.items including the syntax to define an offset (e.g. to display the times on a sitemap). I’ve not seen (yet!) a worked example of rules with an offset trigger but as the feature has only just been added to the Astro binding, there are several people hard at work researching just this point…
All:
How are the offsets used … in the example on github there is something like:
rule "example trigger rule"
when
Channel 'astro:sun:home:rise#event' triggered START
then
...
end
Then it says:
Note: Offsets for each event group can be configured in the channel properties
OK … but where … can this be done in the textual configuration files (oh please let it be so) & if so how & what is the syntax?
Is it in the above like (Note the following DOES NOT WORK!)
Channel 'astro:sun:…
Good luck!