Skip to main content

Energy inference and EV charging ETA utilities (SoC-based).

Project description

stroomer

Utilities for appliance inference and EV charging ETA (SoC-based).

Usage

Appliance inference

from stroomer import StroomerPredictor

p = StroomerPredictor()
# daya per unit (W)
p.set_appliances({
    "Lampu": 10,
    "Kipas": 50,
    "TV": 100,
    "Kulkas": 150,
    "AC": 1000
})

# Opsional: batasi jumlah masuk akal (mis. lampu maksimal 20 unit)
p.set_max_counts({
    "Lampu": 20,
    "Kipas": 2,
    "TV": 2,
    "Kulkas": 2,
    "AC": 1
})

out = p.predict(power=180)  # misal terbaca 180 W total
print(out)
# Kemungkinan output:
# {
#   "on": {"Lampu": 3, "Kipas": 1},  # 3*10 + 1*50 = 80 W (contoh) -> akan dicari kombinasi terdekat ke 180
#   "target_power": 180.0,
#   "predicted_total": 180.0,
#   "relative_error": 0.0
# }

Charging ETA (SoC-based)

from stroomer import ChargingTimePredictor
eta = ChargingTimePredictor(capacity_kwh=50, target_soc=90, efficiency=0.92)
print(eta.predict(power=8000, SoC=30))
# -> {"FinishDuration":"03:14","FinishTime":"2025-08-18T13:25:00+00:00"}

Dev

pip install -U build twine pytest
pip install -e .
pytest -q
python -m build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stroomer-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stroomer-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file stroomer-0.1.1.tar.gz.

File metadata

  • Download URL: stroomer-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for stroomer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4f7cb0a6c8c34702d92dddf490bf82a2d499a9f44d16abfaf42df4e5768ae335
MD5 31e45fca08e5e0201272831649ab63f3
BLAKE2b-256 ee2e0ceb3cd443ed48329dec8e6cb8a6d862eaabf4c83dba339cb0fa18bf8a15

See more details on using hashes here.

File details

Details for the file stroomer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: stroomer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for stroomer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2417fc21a7caec46504e95c6100b4c980f76fe4fad916c3fe005ce02e6e347
MD5 6145b9c6e78115c603c358c9167c8d7f
BLAKE2b-256 44bcb1450080c52df9ab8fb44329760ba3cdbd68267ffe3d1ae60997a52ae7ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page