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.8.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for pyStrompris-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f598c40eda733f98e66678b360a0a184be058dc10b4b6fe0b0ab6517e3fe94ac |
|
MD5 | 9db53afce9bfdfc0134a32ffdd9efe50 |
|
BLAKE2b-256 | 0a9abb88995e58f45d4e2a1f3f4830cff461dfde9d13420c569a48499983f0bd |