Hi,
is there a way to calculate the sun’s azimuth and elevation with an offset? For my automatic shading solution, I’d like to be able to look ahead e.g. one hour.
This is what I came up with so far
Thing astro:sun:homePlus1h "Astro sun data" [
interval=10,
geolocation="49.[...],6.[...]"
] {
Channels:
Type azimuth : position#azimuth "Azimut +1h" [
offset=60
]
Type elevation : position#elevation "Höhenwinkel +1h" [
offset=60
]
}
When I check the resulting channels in the REST API, it looks like it was propagated to the channels as expected:
[...]
{
"linkedItems":[
"Sun_Azimuth_Plus1h"
],
"uid":"astro:sun:homePlus1h:position#azimuth",
"id":"position#azimuth",
"channelTypeUID":"astro:azimuth",
"itemType":"Number:Angle",
"kind":"STATE",
"label":"Azimut",
"description":"Das Azimut des Himmelskörpers",
"defaultTags":[
],
"properties":{
},
"configuration":{
"offset":60
}
},
{
"linkedItems":[
"Sun_Elevation_Plus1h"
],
"uid":"astro:sun:homePlus1h:position#elevation",
"id":"position#elevation",
"channelTypeUID":"astro:elevation",
"itemType":"Number:Angle",
"kind":"STATE",
"label":"Höhenwinkel",
"description":"Der Höhenwinkel des Himmelskörpers",
"defaultTags":[
],
"properties":{
},
"configuration":{
"offset":60
}
}
[...]
However, the values I get from those channels are exactly the same as I get them without the offset.
Do position#azimuth and position#elevation even support the offset?
If they do, I’d be thankful for a hint on what I did wrong
Best Regards,
Nils