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.6.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for pyStrompris-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a4bbf9227fc636089961d7ea41711e94f923f3e4cfe9e683eec092371493741 |
|
MD5 | f9492ca0c5a07526234a30a133cf3807 |
|
BLAKE2b-256 | 87cd760845487ce56e720b4fe3b00de48e2e751ba083f2125d15ea9a5e2ce762 |