Skip to content

Display an animated SVG to visualize the flow of power in your PV system

Notifications You must be signed in to change notification settings

otti/EnergyFlowAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Energy flow animation

text

This is an animated SVG which illustarates the energy flow of your PV system.

  • The direction of the current flow is animated by some moving bubbles
  • The bubbles move faster at higher power

Requirements

  • The SVG and the HTML file have to be on the same server. This example will not run on your local PC!

Functions

  • SetBatteryStateOfCharge(value, nominal_energy)

    • value: In percent. Will set the state of charge text and will animate the battery symbol
    • nominal_energy: Nominal storage capacity of the battery in kWh
  • Animation(Power, bubble, invert, MaxPower)

    • Power: Power in Watt will be displayed in the circle
      • Positive values --> Bubble is moving positive
      • Negative values --> Bubble is moving negative
      • 0 --> Bubble is invisible
    • bubble: bubble you want to change (Possible values: "Home", "Solar", "Battery", "Grid")
    • invert: true --> invert the moving direction of the bubble
    • MaxPower --> The bubble will move faster with rising power values. The bubble will move with maximum speed if this value will be exceeded

About

Display an animated SVG to visualize the flow of power in your PV system

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages