Leistungsprognose für Wechselrichter

Begonnen von ch.eick, 18 Januar 2021, 08:35:46

Vorheriges Thema - Nächstes Thema

stefanru


kask

Ich hab die solcast api in Betrieb. Jetzt habe ich zwei flächen auf einem account (alter account mit 50 requests/day).
ich habe eingestellt:

ctrlSolCastAPImaxReq=20
ctrlSolCastAPIoptimizeReq=1

jetzt um 17Uhr sind meine counts aufgebraucht.
SolCast: 18.05.2023 17:00:13  SolCast API Abfrage erfolgreich automatischer Zyklus: ab 60 Minuten vor dem kommenden Sonnenaufgang  (21/0)
Ist das so gewollt das nur der halbe Tag geguckt wird? Oder muss ich sonst noch was einstellen? Oder ist es ein Fehler?




DS_Starter

Wenn du 50 freie Requests hast musst du auch setzen:

ctrlSolCastAPImaxReq=50

oder nicht setzen weil 50 der Standard ist.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

kask

Danke für die rasche Antwort meiner nicht gestellten Frage ;)
Nein, alles gut! Das wollte ich aber dennoch nicht wissen.

Ich habe 2 Anlagen angelegt auf Solcast und brauch doch auch 2 Requests dann. Also nur 25 pro Anlage, weil ein Account.
Aber selbst wenn, wofür ist das "ctrlSolCastAPImaxReq" sonst? bzw das "ctrlSolCastAPIoptimizeReq".
Ich interpretiere das "optimizerequest" so das wenn 10 abfragen wären, es dann auch so getimed ist das die zehn Abfragen im Bereich der Sonnenstunden gleichmässig verteilt werden. sonst wäre ein "usemaxreq" aussagekräftiger.
Ich werde aus dem code nicht so recht schlau (kann nicht wirklich Perl) wie der _getRoofTopData interval ist.
Deshalb hier die Frage.
weil laut hilfe:
ctrlSolCastAPImaxReq
(nur bei Verwendung Model SolCastAPI)

Die Einstellung der maximal möglichen täglichen Requests an die SolCast API.
Dieser Wert wird von SolCast vorgegeben und kann sich entsprechend des SolCast Lizenzmodells ändern.
(default: 50)

ctrlSolCastAPIoptimizeReq
(nur bei Verwendung Model SolCastAPI)

Das default Abrufintervall der SolCast API beträgt 1 Stunde. Ist dieses Attribut gesetzt erfolgt ein dynamische Anpassung des Intervalls mit dem Ziel die maximal möglichen Abrufe innerhalb von Sonnenauf- und untergang auszunutzen.
(default: 0)

Deshalb die Fragen:
Ist das so gewollt das nur der halbe Tag geguckt wird?
Oder muss ich sonst noch was einstellen?
Oder ist es ein Fehler?


DS_Starter

#2479
Vorab ... ich habe auch zwei Anlagen (Strings) mit einem Account und meine Credits sind nahe am Sonnenuntergang aufgebraucht, heute 2023-05-18 20:44:38.

Zu den Fragen ...

ZitatIst das so gewollt das nur der halbe Tag geguckt wird?
Wenn damit gemeint ist, dass nur zwischen Sonnenauf- und untergang angefragt wird, ja.
Ansonsten bitte genauer erläutern was mit "halbe Tag" gemeint ist.

ZitatOder muss ich sonst noch was einstellen?
Ja, Attr ctrlSolCastAPImaxReq=50 einstellen bzw. löschen.

Edit: Vielleicht zur Erläuterung. Der Code berücksichtigt

- die max. möglichen API Requests
- die Anzahl der angelegten Rooftops
- die Anzahl der verwendeten Accounts
- die Zuordung von Rooftops und Accounts und daraus resultierend die möglichen Calls
- die Zeit zwischen Sonnenauf- und untergang

und berechnet daraus dynamisch (Sonnengang) einen optimierten Abrufzyklus sofern das Attr ctrlSolCastAPIoptimizeReq gesetzt ist. Ansonsten wird mit einem festen Abrufzyklus von 1 Stunde gearbeitet. Dann kann es passieren, dass die Credits zeitiger aufgebraucht sind.

ZitatOder ist es ein Fehler?
Nein.

Wenn ich etwas falsch interpretieren sollte oder die Hilfe nicht eindeutig genug sein bitte etwas mehr erläutern.

LG,
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

kask

#2480
Ok, wird erledigt!

Sonnenaufgang: 05:37
Sonnenuntergang: 21:24
Macht so ca. 16h Sonnenstunden.
Bei einem ctrlSolCastAPImaxReq=20 (und ctrlSolCastAPIoptimizeReq=1) Wert und 2 Anlagen  mit dem gleichen apikey, würde ich erwarten das es 10 Abfragen pro Anlage sind.
Das wäre ein Intervall von ca. 1,6h = 1h 36m. Also 10 requests pro Anlage.

Jetzt ist aber meine Requestkontingent um 17Uhr schon erschöpft bei der Konstellation und nicht um 20:24 (1h vor Sonnenuntergang, equivalent wie zum ersten Request des Tages vor Sonnenaufgang).
Also sind 20 Requests in pi*auge 12h (5am - 5pm) ausgeführt worden. Und nicht nur ~14-16 Requests und die restlichen 4-6 Requests für die restlichen 4-5h wie anzunehmen bei bei der oben genannten Konstellation.

Warum ist das so? Das ist doch nicht so gewollt oder doch?



DS_Starter

Setze dir mal das Attr ctrlDebug mit dem Schlüssel solcastProcess. Dann kann man die Zyklen analysieren.
Der Ausdruck aus "get ... solCastData" wäre dann auch interessant.

Es kann evtl. sein, dass z.B. für ein Rooftop manchmal keine Werte geliefert wurden und der Abruf nicht zählte.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

DS_Starter

Ich habe bemerkt, dass das Debug für diese Analyse nicht sehr hilfreich ist.
Habe es verbessert und eine neue Version in mein contrib geladen.

Hier dann bitte den Schlüssel solcasAPIcall im Attr ctrlDebug setzen.
Die Ausgabe sieht dann so aus:

2023.05.19 09:40:58.164 1: SolCast DEBUG> Request SolCast API for string "Süddach": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=<secret>
2023.05.19 09:41:00.023 1: SolCast DEBUG> SolCast API Call - done API Calls: 8.5
2023.05.19 09:41:00.024 1: SolCast DEBUG> SolCast API Call - Sunset: 1684523040, remain Sec to Sunset: 40981, new calc interval: 2341
2023.05.19 09:41:00.025 1: SolCast DEBUG> SolCast API Call - remaining API Calls: 17.5
2023.05.19 09:41:00.025 1: SolCast DEBUG> SolCast API Call - next API Call: 19.05.2023 10:20:00
2023.05.19 09:41:00.177 1: SolCast DEBUG> Request SolCast API for string "Schleppdach": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=<secret>
2023.05.19 09:41:01.299 1: SolCast DEBUG> SolCast API Call - done API Calls: 9
2023.05.19 09:41:01.299 1: SolCast DEBUG> SolCast API Call - Sunset: 1684523040, remain Sec to Sunset: 40979, new calc interval: 2410
2023.05.19 09:41:01.300 1: SolCast DEBUG> SolCast API Call - remaining API Calls: 17
2023.05.19 09:41:01.300 1: SolCast DEBUG> SolCast API Call - next API Call: 19.05.2023 10:21:11
2023.05.19 10:21:49.957 1: SolCast DEBUG> Request SolCast API for string "Süddach": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=<secret>
2023.05.19 10:21:51.865 1: SolCast DEBUG> SolCast API Call - done API Calls: 9.5
2023.05.19 10:21:51.865 1: SolCast DEBUG> SolCast API Call - Sunset: 1684523040, remain Sec to Sunset: 38529, new calc interval: 2335
2023.05.19 10:21:51.866 1: SolCast DEBUG> SolCast API Call - remaining API Calls: 16.5
2023.05.19 10:21:51.866 1: SolCast DEBUG> SolCast API Call - next API Call: 19.05.2023 11:00:46
...
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

kask

ok, Danke.
ich logge jetzt mal mit!

kask

#2484
Also der erste Log ist vermutlich falsch weil ich das vorhin ja erst scharf geschaltet habe. Von gestern Abend bis zum einspielen war auch kein ctrlSolCastAPImaxReq gesetzt.
Mit dem einspielen des neuen moduls habe ich wieder ctrlSolCastAPImaxReq=20 & ctrlSolCastAPIoptimizeReq=1 gesetzt.

2023.05.19 14:38:21 1: Forecast DEBUG> Request SolCast API for string "Schuppen": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=key1
2023.05.19 14:38:23 1: Forecast DEBUG> SolCast API Call - done API Calls: 20.1494962625934
2023.05.19 14:38:23 1: Forecast DEBUG> SolCast API Call - Sunset: 1684524300, remain Sec to Sunset: 24397, new calc interval: 24397
2023.05.19 14:38:23 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 1
2023.05.19 14:38:23 1: Forecast DEBUG> SolCast API Call - next API Call: 19.05.2023 21:25:00
2023.05.19 14:38:23 1: Forecast DEBUG> Request SolCast API for string "Ost": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=key1
2023.05.19 14:38:25 1: Forecast DEBUG> SolCast API Call - done API Calls: 20.7994800129997
2023.05.19 14:38:25 1: Forecast DEBUG> SolCast API Call - Sunset: 1684524300, remain Sec to Sunset: 24396, new calc interval: 24396
2023.05.19 14:38:25 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 1
2023.05.19 14:38:25 1: Forecast DEBUG> SolCast API Call - next API Call: 19.05.2023 21:25:00
2023.05.19 14:38:25 1: Forecast DEBUG> Request SolCast API for string "West": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=key2
2023.05.19 14:38:26 1: Forecast DEBUG> SolCast API Call - done API Calls: 21.4494637634059
2023.05.19 14:38:26 1: Forecast DEBUG> SolCast API Call - Sunset: 1684524300, remain Sec to Sunset: 24394, new calc interval: 24394
2023.05.19 14:38:26 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 1
2023.05.19 14:38:26 1: Forecast DEBUG> SolCast API Call - next API Call: 19.05.2023 21:25:00


Und es hat 33 Requests gemacht! Sind aber 2 Apikeys bei 3 roof_tops. Liegt da der Hase im Pfeffer? Summiert "das" einfach alle Requests?
Stand: 19.05.2023 16:02:42   Klick für Update automatischer Zyklus: 16:02:57     SolCast: 19.05.2023 14:38:26  SolCast API Abfrage erfolgreich automatischer Zyklus: ab 60 Minuten vor dem kommenden Sonnenaufgang  (33/0)

Mal gucken was morgen ist. Neuer Tag, neues Glück!

DS_Starter

ZitatSummiert "das" einfach alle Requests?
Na so einfach habe ich es mir nicht gemacht.  ;)
Es gibt einen Parameter solCastAPIcallMultiplier den man mit "get...solCastData" sieht:

?All => ?All => currentAPIinterval: 2316
                lastretrieval_time: 2023-05-19 20:25:24
                lastretrieval_timestamp: 1684520724
                response_message: success
                solCastAPIcallMultiplier: 2.0000

bei mir ist es 2 weil ich 2 Strings mit einem Account habe. Gestern hattest du geschrieben du hast auch zwei Anlagen mit einem Account.
Ok ... wie ist denn der Wert für solCastAPIcallMultiplier bei dir ?

Das Debug habe ich noch etwas ergänzt und eine V ins contrib geladen. Zieh die bitte und starte FHEM neu.
Ändern must du weiter nichts.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

DS_Starter

#2486
Sag mal, triggerst du ein "get ... roofTopData" ständig extern, z.B. über ein at  ?
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

kask

#2487
Nein, ich hole die Daten nicht woanders nocheinmal. Hatte zuvor JsonMod's um die Daten zu laden. Das ist aber definitiv deaktiviert und läd nichts mehr.


2023.05.19 14:38:21 1: Forecast DEBUG> Request SolCast API for string "Schuppen": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.19 14:38:23 1: Forecast DEBUG> SolCast API Call - done API Calls: 20.1494962625934
2023.05.19 14:38:23 1: Forecast DEBUG> SolCast API Call - Sunset: 1684524300, remain Sec to Sunset: 24397, new calc interval: 24397
2023.05.19 14:38:23 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 1
2023.05.19 14:38:23 1: Forecast DEBUG> SolCast API Call - next API Call: 19.05.2023 21:25:00
2023.05.19 14:38:23 1: Forecast DEBUG> Request SolCast API for string "Ost": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.19 14:38:25 1: Forecast DEBUG> SolCast API Call - done API Calls: 20.7994800129997
2023.05.19 14:38:25 1: Forecast DEBUG> SolCast API Call - Sunset: 1684524300, remain Sec to Sunset: 24396, new calc interval: 24396
2023.05.19 14:38:25 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 1
2023.05.19 14:38:25 1: Forecast DEBUG> SolCast API Call - next API Call: 19.05.2023 21:25:00
2023.05.19 14:38:25 1: Forecast DEBUG> Request SolCast API for string "West": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY2
2023.05.19 14:38:26 1: Forecast DEBUG> SolCast API Call - done API Calls: 21.4494637634059
2023.05.19 14:38:26 1: Forecast DEBUG> SolCast API Call - Sunset: 1684524300, remain Sec to Sunset: 24394, new calc interval: 24394
2023.05.19 14:38:26 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 1
2023.05.19 14:38:26 1: Forecast DEBUG> SolCast API Call - next API Call: 19.05.2023 21:25:00
2023.05.20 04:35:00 1: Forecast DEBUG> Request SolCast API for string "Schuppen": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 04:35:02 1: Forecast DEBUG> SolCast API Call - done API Calls: 0.64998375040624
2023.05.20 04:35:02 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 60718, new calc interval: 4548
2023.05.20 04:35:02 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 13.3500162495938
2023.05.20 04:35:02 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 05:50:50
2023.05.20 04:35:02 1: Forecast DEBUG> Request SolCast API for string "Ost": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 04:35:04 1: Forecast DEBUG> SolCast API Call - done API Calls: 1.29996750081248
2023.05.20 04:35:04 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 60717, new calc interval: 4780
2023.05.20 04:35:04 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 12.7000324991875
2023.05.20 04:35:04 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 05:54:43
2023.05.20 04:35:04 1: Forecast DEBUG> Request SolCast API for string "West": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY2
2023.05.20 04:35:06 1: Forecast DEBUG> SolCast API Call - done API Calls: 1.94995125121872
2023.05.20 04:35:06 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 60715, new calc interval: 5038
2023.05.20 04:35:06 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 12.0500487487813
2023.05.20 04:35:06 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 05:59:03
2023.05.20 05:59:10 1: Forecast DEBUG> Request SolCast API for string "Schuppen": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 05:59:12 1: Forecast DEBUG> SolCast API Call - done API Calls: 2.59993500162496
2023.05.20 05:59:12 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 55669, new calc interval: 4883
2023.05.20 05:59:12 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 11.400064998375
2023.05.20 05:59:12 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 07:20:34
2023.05.20 05:59:12 1: Forecast DEBUG> Request SolCast API for string "Ost": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 05:59:13 1: Forecast DEBUG> SolCast API Call - done API Calls: 3.2499187520312
2023.05.20 05:59:13 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 55667, new calc interval: 5178
2023.05.20 05:59:13 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 10.7500812479688
2023.05.20 05:59:13 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 07:25:31
2023.05.20 05:59:14 1: Forecast DEBUG> Request SolCast API for string "West": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY2
2023.05.20 05:59:15 1: Forecast DEBUG> SolCast API Call - done API Calls: 3.89990250243744
2023.05.20 05:59:15 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 55665, new calc interval: 5511
2023.05.20 05:59:15 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 10.1000974975626
2023.05.20 05:59:15 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 07:31:06
2023.05.20 07:31:18 1: Forecast DEBUG> Request SolCast API for string "Schuppen": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 07:31:20 1: Forecast DEBUG> SolCast API Call - done API Calls: 4.54988625284368
2023.05.20 07:31:20 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 50141, new calc interval: 5305
2023.05.20 07:31:20 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 9.45011374715632
2023.05.20 07:31:20 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 08:59:44
2023.05.20 07:31:20 1: Forecast DEBUG> Request SolCast API for string "Ost": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 07:31:22 1: Forecast DEBUG> SolCast API Call - done API Calls: 5.19987000324992
2023.05.20 07:31:22 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 50139, new calc interval: 5697
2023.05.20 07:31:22 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 8.80012999675008
2023.05.20 07:31:22 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 09:06:18
2023.05.20 07:31:22 1: Forecast DEBUG> Request SolCast API for string "West": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY2
2023.05.20 07:31:24 1: Forecast DEBUG> SolCast API Call - done API Calls: 5.84985375365616
2023.05.20 07:31:24 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 50137, new calc interval: 6151
2023.05.20 07:31:24 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 8.15014624634384
2023.05.20 07:31:24 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 09:13:54
2023.05.20 09:13:57 1: Forecast DEBUG> Request SolCast API for string "Schuppen": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 09:14:00 1: Forecast DEBUG> SolCast API Call - done API Calls: 6.4998375040624
2023.05.20 09:14:00 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 43981, new calc interval: 5864
2023.05.20 09:14:00 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 7.5001624959376
2023.05.20 09:14:00 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 10:51:43
2023.05.20 09:14:00 1: Forecast DEBUG> Request SolCast API for string "Ost": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 09:14:02 1: Forecast DEBUG> SolCast API Call - done API Calls: 7.14982125446864
2023.05.20 09:14:02 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 43979, new calc interval: 6420
2023.05.20 09:14:02 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 6.85017874553136
2023.05.20 09:14:02 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 11:01:01
2023.05.20 09:14:02 1: Forecast DEBUG> Request SolCast API for string "West": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY2
2023.05.20 09:14:05 1: Forecast DEBUG> SolCast API Call - done API Calls: 7.79980500487488
2023.05.20 09:14:05 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 43976, new calc interval: 7092
2023.05.20 09:14:05 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 6.20019499512512
2023.05.20 09:14:05 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 11:12:16
2023.05.20 11:12:25 1: Forecast DEBUG> Request SolCast API for string "Schuppen": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 11:12:27 1: Forecast DEBUG> SolCast API Call - done API Calls: 8.44978875528112
2023.05.20 11:12:27 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 36873, new calc interval: 6643
2023.05.20 11:12:27 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 5.55021124471888
2023.05.20 11:12:27 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 13:03:10
2023.05.20 11:12:27 1: Forecast DEBUG> Request SolCast API for string "Ost": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 11:12:29 1: Forecast DEBUG> SolCast API Call - done API Calls: 9.09977250568736
2023.05.20 11:12:29 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 36872, new calc interval: 7524
2023.05.20 11:12:29 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 4.90022749431264
2023.05.20 11:12:29 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 13:17:52
2023.05.20 11:12:29 1: Forecast DEBUG> Request SolCast API for string "West": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY2
2023.05.20 11:12:30 1: Forecast DEBUG> SolCast API Call - done API Calls: 9.7497562560936
2023.05.20 11:12:30 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 36870, new calc interval: 8674
2023.05.20 11:12:30 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 4.2502437439064
2023.05.20 11:12:30 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 13:37:04
2023.05.20 13:37:08 1: Forecast DEBUG> Request SolCast API for string "Schuppen": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 13:37:10 1: Forecast DEBUG> SolCast API Call - done API Calls: 10.3997400064998
2023.05.20 13:37:10 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 28191, new calc interval: 7830
2023.05.20 13:37:10 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 3.60025999350016
2023.05.20 13:37:10 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 15:47:39
2023.05.20 13:37:10 1: Forecast DEBUG> Request SolCast API for string "Ost": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY1
2023.05.20 13:37:12 1: Forecast DEBUG> SolCast API Call - done API Calls: 11.0497237569061
2023.05.20 13:37:12 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 28189, new calc interval: 9554
2023.05.20 13:37:12 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 2.95027624309392
2023.05.20 13:37:12 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 16:16:25
2023.05.20 13:37:12 1: Forecast DEBUG> Request SolCast API for string "West": https://api.solcast.com.au/rooftop_sites/.../forecasts?format=json&hours=48&api_key=KEY2
2023.05.20 13:37:13 1: Forecast DEBUG> SolCast API Call - done API Calls: 11.6997075073123
2023.05.20 13:37:13 1: Forecast DEBUG> SolCast API Call - Sunset: 1684610820, remain Sec to Sunset: 28187, new calc interval: 12253
2023.05.20 13:37:13 1: Forecast DEBUG> SolCast API Call - remaining API Calls: 2.30029249268768
2023.05.20 13:37:13 1: Forecast DEBUG> SolCast API Call - next API Call: 20.05.2023 17:01:26


Und jetzt sind die requests auch schon aufgebraucht, das sind alle von Gestern bis jetzt gerade.

Edit: hier der multiplier
?All => ?All => currentAPIinterval: 12253
                lastretrieval_time: 2023-05-20 13:37:13
                lastretrieval_timestamp: 1684582633
                response_message: success
                solCastAPIcallMultiplier: 1.5385
                todayDoneAPIcalls: 11.6997075073123
                todayDoneAPIrequests: 18
                todayMaxAPIcalls: 13
                todayRemainingAPIcalls: 1.30029249268768
                todayRemainingAPIrequests: 2

Ich mach mal das update.

DS_Starter

#2488
Nachdem ich die Calls von heute 2023.05.20 04:35:00 bis 2023.05.20 13:37:13 mal durchgezählt habe, bin ich der Meinung du hast lediglich 10 Requests pro Account frei hast so wie es SolCast neuerdings lizensiert.
Es sind 5 volle Aufrufe mit 2 Requests im Fall von "Schuppen" und "Ost". Beim sechsten Call 2023.05.20 13:37:10 kommt der Überlauf.

Ich schlage dir vor du stellst tatsächlich mal ctrlSolCastAPImaxReq=10 ein und dann schauen wir weiter.

Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

kask

Also ich habe ein JsonMod wieder aktiviert und der sagt mir jetzt das es:
Mit meinen tests jetzt der 6te Request war bei schuppen und ost.
Und der West hatte heute 16.

Die JsonMod's, 3 in der Zahl, wurden bis vor aktivierung des Forecastmodul alle 30min abgefragt und da bin ich nie bei 10 limitiert gewesen.
Also das mit den 10 Anfragen jetzt kann ich so nicht nachvollziehen.
Und wieso habe ich nicht die Anzahl auch auf den anderen roof_tops heute?#
Alles sehr komisch.

Ich stelle testweise mal auf 10 runter.

Ich denke eher das da auch ein Rechen bzw. Denkfehler vorliegt.
Ich versuche das mal anders zu erklären.
Man hat 2 20liter volle Wassereimer(2 accounts mit jeweils 20 requests, als Beispiel). Jetzt sollen diese Eimer in 20h leer sein (Sonnenstunden) mit immer einem Einlitermessbecher pro Leerungsvorgang.
Also der erste Eimer müsste mit immer 2xMessbechern (2requests) geleert werden und in 20h macht das alle 2h einen Leerungsvorgang.
Jetzt müsste der 2te eimer jede Stunde einen Leerungsvorgang haben.
Jetzt sagen wir, ok das macht 3h zusammen bei 2 accounts (und das scheint mir der Denkfehler zusein) ich leere immer alle 1,5h (solCastAPIcallMultiplier: 1.5385).
Dann ist der erste Eimer aber schon nach 13,3h leer und der zweite eimer ist nach 20h noch mit 6,6l gefüllt.
Der multiplier kann nicht kleiner werden wie 2 bei dir. Sonst laufen meine request früher aus.
Kann das sein?