-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate data source for forecasts and measurements #8
Comments
As much I understood, is that we are going to use 2 endpoints such that one for current forecasts and other for history.?? |
Correct. |
I see some problems in the way of this issue:
@Flix6x any thoughts? |
We're using the One Call API, right? It features historical data, too. |
I now found that there is indeed a
|
But going live with a location should mean, imo, that we query both recent forecasts and recent measurements, with 2 separately API calls. Possibly within one CLI call, or two, I don't mind. |
The status quo is that this plugin is not collecting data that FlexMeasures interprets as measurements. The reason for that is that FM switched from distinguishing forecasts by horizon, to distinguishing forecasts by source type. |
you're right, this call is limited to only 5 days. |
Okay, so I finally caught up on what @Flix6x actually wants and I have an idea what this issue might do - I think. Next to currently available forecasts, we want to also collect one real measurement per time step (hour) and weather sensor. And we want to label that with a different data source. We definitely need a different data source (mostly work in How to collect a measurement per hour? Simple approach: Each API call gives us the current weather. We could just use that. Of course that works well if you call the OWM API around the full hour, but of course we can save (ans use) any datetime. All this would need might be a parameter Complex approach: Add a second command which accepts a timestamp from the past and looks up exactly that via the timemachine API endpoint (using Mixed approach: Do not add a second command, but do call the OWM API twice (once for forecasts, once for an exact measurement on the recent hour). |
This issue needs a tech spike imo. A possible problem with using the current weather from the OWM forecast endpoint is that it is likely still a forecast, and, more importantly, represents 1-minute averages, not the most recent 1-hour averages, leading to wrong interpretations of the data (see https://openweathermap.org/accuracy-and-quality, which is the only place I found with a hint about what the current data actually represents). Furthermore, note that: -One Call API version 2.5 restricts historical data to the last 5 says: see https://openweathermap.org/api/one-call-api
|
if version 3 has no restriction, then I believe we can call it twice for the two different data sources(forecasts, and measurements) |
I'd like forecasts and measurements to be saved under a separate
DataSource
(type), so we can treat them separately in e.g. the FlexMeasures UI.I propose to use the following. For measurements:
And for forecasts:
Two notes:
The text was updated successfully, but these errors were encountered: