fix: azimuth setting of pvforecastakkudoktor provider (#567)

EOS now enforces the general azimuth definition as e.g. defined in ISO 19111:
north=0, east=90, south=180, west=270. This is the convention that is and was
in the EOS documentation.

As the PV forecast of akkudoktor.net follows a different convention
(north=+-180, east=-90, south=0, west=90) the values from EOS are now converted
before the request is sent to akkudoktor.net.

BREAKING CHANGE: Azimuth configurations that followed the PVForecastAkkudoktor convention
(north=+-180, east=-90, south=0, west=90) must be converted to the general azimuth definition:
north=0, east=90, south=180, west=270.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte
2025-05-28 20:42:43 +02:00
committed by GitHub
parent 46e078fce1
commit 3ec36e0932
8 changed files with 50 additions and 37 deletions

View File

@@ -574,7 +574,7 @@ Validators:
"planes": [
{
"surface_tilt": 10.0,
"surface_azimuth": 10.0,
"surface_azimuth": 180.0,
"userhorizon": [
10.0,
20.0,
@@ -596,7 +596,7 @@ Validators:
},
{
"surface_tilt": 20.0,
"surface_azimuth": 20.0,
"surface_azimuth": 90.0,
"userhorizon": [
5.0,
15.0,
@@ -634,7 +634,7 @@ Validators:
"planes": [
{
"surface_tilt": 10.0,
"surface_azimuth": 10.0,
"surface_azimuth": 180.0,
"userhorizon": [
10.0,
20.0,
@@ -656,7 +656,7 @@ Validators:
},
{
"surface_tilt": 20.0,
"surface_azimuth": 20.0,
"surface_azimuth": 90.0,
"userhorizon": [
5.0,
15.0,
@@ -683,8 +683,8 @@ Validators:
3.5
],
"planes_azimuth": [
10.0,
20.0
180.0,
90.0
],
"planes_tilt": [
10.0,
@@ -746,7 +746,7 @@ Validators:
"planes": [
{
"surface_tilt": 10.0,
"surface_azimuth": 10.0,
"surface_azimuth": 180.0,
"userhorizon": [
10.0,
20.0,
@@ -768,7 +768,7 @@ Validators:
},
{
"surface_tilt": 20.0,
"surface_azimuth": 20.0,
"surface_azimuth": 90.0,
"userhorizon": [
5.0,
15.0,
@@ -1004,7 +1004,7 @@ Validators:
"planes": [
{
"surface_tilt": 10.0,
"surface_azimuth": 10.0,
"surface_azimuth": 180.0,
"userhorizon": [
10.0,
20.0,
@@ -1026,7 +1026,7 @@ Validators:
},
{
"surface_tilt": 20.0,
"surface_azimuth": 20.0,
"surface_azimuth": 90.0,
"userhorizon": [
5.0,
15.0,