Skip to content

Add PSC power plot and multi-file dotenv support for asset optimization#335

Open
cwasicki wants to merge 3 commits into
frequenz-floss:v0.x.xfrom
cwasicki:psc
Open

Add PSC power plot and multi-file dotenv support for asset optimization#335
cwasicki wants to merge 3 commits into
frequenz-floss:v0.x.xfrom
cwasicki:psc

Conversation

@cwasicki

Copy link
Copy Markdown
Contributor

This adds a new power plot function with power contributions stacked in passive sign convention.

Also adds support for multiple dotenv files, dotenv_path takes a sequence to allow multiple env files which can override each other. Also multiple credential env names are supported and paths expanded.

@cwasicki cwasicki requested a review from a team as a code owner July 10, 2026 15:41
@cwasicki cwasicki requested review from micaebe and removed request for a team July 10, 2026 15:41
@github-actions github-actions Bot added the part:docs Affects the documentation label Jul 10, 2026
cwasicki added 3 commits July 10, 2026 17:42
Stacks each component on the consumption line in the passive sign
convention, so the top of the stack lands on the grid line unless the
components fail to account for the metered exchange. Unlike
plot_power_flow, production is not clipped, so a PV system drawing power
stays visible instead of being flattened to zero. Charge and discharge
bands are drawn as explicit step polygons because a tonexty fill over
masked series bridges the gaps and ignores the step shape.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Shared API URLs can now live in a separate file from the per-microgrid
credentials. Files are loaded in order and override earlier ones as well
as the environment, because otherwise a credential loaded for one
microgrid survives in a notebook kernel and shadows the next one. Paths
are expanded, so a "~/..." path no longer silently loads nothing.

Credentials are read from API_AUTH_KEY/API_SIGN_SECRET, falling back to
API_KEY/API_SECRET, taking both halves from the same pair so a key is
never signed with another file's secret.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant