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.getElPriceFromSource(withFuture=True)
"""Returns pricing for current hour using GMT+1|+2"""
now = strompris.getElPriceNow(zone=1)
"""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.2.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for pyStrompris-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b78c631ffb303f10efd83f15b2da14bc5a54166c604eac06bb6e4956cc73b10 |
|
MD5 | 93c91ab908822e532b0a5438677c2f11 |
|
BLAKE2b-256 | 06cd3adf6e9647681efa9332488952a5d99e46885d8d1884390ca352ddc06e55 |