Skip to content
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

Add support for pricing modules for tracking pricing #210

Draft
wants to merge 2 commits into
base: v1.2.1
Choose a base branch
from

Conversation

ngardiner
Copy link
Owner

@ngardiner ngardiner commented Jan 24, 2021

Adds support for pricing modules which would provide pricing data to TWCManager for use in policy decisions.

  • Add Web API function for fetching the current pricing data
  • Add Web API visibility of current import / export
    • Add both current import and export price to the default dashboard
  • Add background polling of pricing data from one or more defined pricing modules
  • Add static pricing module, which allows configuring of pricing for environments without dynamic pricing queries
    • Significant additional tunability required
  • Modify policy to use pricing data
    • Add a maximum price value to the policy section of the configuration
    • Stop charging if price reaches defined maximum price
    • Stop charging if export price exceeds import price

Note that a small amount of cleanup is included in the PR, which isn't directly related to the power pricing support:

  • Reordered several functions in TWCMaster which weren't following convention of alphabetical order
  • Removed the status column from README.md for Status modules, which have all been supported since 1.0.1

@ngardiner ngardiner added the enhancement New feature or request label Jan 24, 2021
@ngardiner ngardiner marked this pull request as draft January 24, 2021 07:08
@ngardiner
Copy link
Owner Author

This PR is impacted by #331 - Just a heads up for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant