A python3 library to read electricity price
Project description
Strømpris
Usage
Supported sources:
- Hvakosterstrommen
from strompris.strompris import Strompris
from strompris.const import SOURCE_HVAKOSTERSTROMMEN
strompris = Strompris(source=SOURCE_HVAKOSTERSTROMMEN, zone=1) # Can also be used with direct string # Zone 1-5
"""Returns pricing for today and tomorrow if available"""
priser = strompris.get_available_prices()
"""Returns pricing for current hour using GMT+1|+2"""
now = strompris.get_current_price()
"""Returns pricing for current hour along with extra info:
total (kwh + tax)
min
max
avg
tax
price_level
"""
nowAttrs = strompris.getPriceAttrs(zone=1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyStrompris-0.0.4.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for pyStrompris-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db1e1140e463138e700405f0905c3b2fe90f7a591d17e8bf1eaf9dc0129919f0 |
|
MD5 | 4a3d0ad8f936f8188af41d2d102976db |
|
BLAKE2b-256 | 50d92642dbf43ce1857d1a07f7dc50f552f4e911613f28e91758bbb3f8c2085a |