Skip to content

Retrieve and expose microgrid metadata #265

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

Closed
5 tasks done
leandro-lucarella-frequenz opened this issue Mar 16, 2023 · 1 comment · Fixed by #708
Closed
5 tasks done

Retrieve and expose microgrid metadata #265

leandro-lucarella-frequenz opened this issue Mar 16, 2023 · 1 comment · Fixed by #708
Assignees
Labels
part:microgrid Affects the interactions with the microgrid type:enhancement New feature or enhancement visitble to users
Milestone

Comments

@leandro-lucarella-frequenz
Copy link
Contributor

leandro-lucarella-frequenz commented Mar 16, 2023

What's needed?

The microgrid API added a call to retrieve microgrid metadata. The metadata so far includes the microgrid ID and location (expressed in longitude and latitude). We need to expose that metadata in the SDK.

Proposed solution

  • Expose the new GetMetadata gRPC call and its new associated types.
  • Retrieve the metadata when connecting to the microgrid in the ConnectionManager
  • Expose the ID and location, probably directly as a new attributes of the ConnectionManager: sdk.microgrid.get().id and sdk.microgrid.get().location
  • Calculate the timezone of a microgrid based on the location and expose it too. This can be easily done in python using the timezonefinder package.
  • Expose grid connection limits #360

Use cases

No response

Alternatives and workarounds

  • Instead of exposing the attributes directly in the ConnectionManager, we could add a sdk.microgrid.get().metadata object and put the metadata there.
  • We could not expose the timezone in the SDK and let users do the conversion themselves.

Additional context

@leandro-lucarella-frequenz leandro-lucarella-frequenz added type:enhancement New feature or enhancement visitble to users part:microgrid Affects the interactions with the microgrid labels Mar 16, 2023
@leandro-lucarella-frequenz leandro-lucarella-frequenz added this to the v0.22.0 milestone Mar 16, 2023
@llucax llucax modified the milestones: v0.22.0, v0.23.0 Jun 27, 2023
@llucax llucax added the status:blocked Other issues must be resolved before this can be worked on label Jul 7, 2023
@llucax
Copy link
Contributor

llucax commented Jul 7, 2023

Blocked on #412

@llucax llucax modified the milestones: v0.23.0, v0.24.0, v0.25.0 Aug 1, 2023
@llucax llucax removed the status:blocked Other issues must be resolved before this can be worked on label Aug 10, 2023
@llucax llucax modified the milestones: v0.25.0, v1.0.0 Aug 10, 2023
@llucax llucax modified the milestones: v1.0.0, v1.0.0-rc2 Sep 12, 2023
@daniel-zullo-frequenz daniel-zullo-frequenz moved this from To do to In progress in Python SDK Roadmap Oct 5, 2023
@llucax llucax modified the milestones: v1.0.0-rc2, v1.0.0-rc3 Oct 13, 2023
@github-project-automation github-project-automation bot moved this from In progress to Done in Python SDK Roadmap Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:microgrid Affects the interactions with the microgrid type:enhancement New feature or enhancement visitble to users
Projects
Development

Successfully merging a pull request may close this issue.

3 participants