Skip to main content

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)

hvakosterstrommen.no

Project details


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.11.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

pyStrompris-0.0.11-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page