Skip to content

Repository files navigation

As a shop owner, you want to install EV chargers in your parking lot. To avoid costly upgrades, you need to simulate the actual power requirements and energy consumption of the chargers, rather than relying on the theoretical maximum demand. This will help you make informed decisions and optimize your setup.

Loading State

Simulation Results

Background job workflow

  graph TD
  A[Start Simulation] -->|Simulation Status Check| B{Simulation Running or Completed?}
  B -->|Yes| C[Return Done Message]
  B -->|No| D[Create ReadableStream]
  D --> E[Send Starting Message]
  E --> EA[Update Simulation Status to Running]
  EA --> F[Spawn Command Process]
  F --> G[Process Output Lines]
  G -->|Progress Status| H[Send Progress Message]
  G -->|Charging Event| I[Collect Charging Event]
  G -->|Summary| J[Collect Summary]
  J --> K[Insert Simulation Result]
  K --> L[Update Simulation Status to Success]
  L --> M[Send Results Message]
  M --> N[Send Done Message]
  N --> O[Close Stream]
Loading

About

Real-time gcc-python simulation via Server-Sent Events (SSE) powered by Remix

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages