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.5.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for pyStrompris-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c23156e30703e2a312001fc0afb3fa8bb49e79ae05fab04adb028e1fa7df00d8 |
|
MD5 | fb270878637a64df32b196868b9075da |
|
BLAKE2b-256 | 2950ab90f1afe1c0331e348249e7068df7f0276ef8c37ddb25b2073141781340 |