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_HVAKOSTERSTROMMEN) # Can also be used with direct string
"""Returns pricing for today and tomorrow if available on NO1 price zone"""
priser = strompris.getElPriceFromSource(zone=1, withFuture=True) # Zone 1-5
"""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.1.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for pyStrompris-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b99c557dbf83639ab4e3e18563a6d5e14f96cf078f685411850420d3aa6411a9 |
|
MD5 | 91f49594a6336167b5476387b959f0a7 |
|
BLAKE2b-256 | 7fba7d0973259230e37bbb9dc2b2ad28b50c43571cb6bcaccba6fea0eb88aff2 |