-
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
Get forecasts for an asset-id instead of passing location #16
Get forecasts for an asset-id instead of passing location #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a better suggestion for the exception message.
I believe we should also add the Then both CLI commands let you specify the exact weather station (by ID) that should be used. |
…ame-to-cli-commands-instead-of-full-location' into 2-allow-to-pass-asset-id-andor-name-to-cli-commands-instead-of-full-location # Conflicts: # flexmeasures_openweathermap/cli/commands.py # flexmeasures_openweathermap/utils/locating.py
…-id-andor-name-to-cli-commands-instead-of-full-location
Is this By both commands, you mean |
To identify the weather station bi ID, not by location.
I mean the two CLI commands we have in this plugin, sensor registration and forecast retrieval. We worked already on the latter. |
Okay, understood. Now if I pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few small suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@Ahmad-Wahid we still have a failing test (probably because we now are not raising where we used to before:
Please adjust the test, then this PR can be merged. |
Changes:
--asset-id
to get forecasts for all the registered sensor(s) of the given asset. This is an alternative of--location
.GenericAsset(Type)
instead ofAsset(Type)
.