Replies: 1 comment 3 replies
-
I just discovered the "automatic update of forecasts over 24 hours" feature and was wondering what the difference is? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To find the max frequency I can poll per day, I calculated as follows:
Due to limitations with using the
trigger: time_pattern
not accepting values over 59 minutes/seconds, I initially just lazily rounded up to the nearest hour which was 3 hours and just set the trigger to happen every 3 hours and that was good enough for me initially.Example history graph
I remember reading that solcast understandably gets hit by waves of requests at the start of the hour due to how the time_pattern feature works and this might be why solcast had previously reduced the number of allowed calls per day.
When I read that, I realized I was also guilty of contributing to that load at the start of the hour by using the 3 hour time_pattern trigger, so I decided to find a way that would maximise my 10 requests per day as well as spread the load away from making API calls at the top of the hour.
Here is what I came up with instead:
You can check the logic in developer tools / template as well.
Paste this into Template Editor
Results:
Obviously everyone has different use cases, but I thought I would share this really basic solution that attempts to help reduce the load on Solcast.
Beta Was this translation helpful? Give feedback.
All reactions