Skip to main content

Small library for scraping electricity usage information from Helsingin Energia website

Project description

This small script fetches per-hour electricity usage from Helsingin Energia (Helen) website. This is unofficial implementation which may break at any time, if Helen changes their website or implements any additional validations.

Installation:

pip install helen_electricity_usage

Usage:

import helen_electricity_usage
helen = helen_electricity_usage.Helen(username, password, metering_point_number, customer_number)
helen.login()
print helen.get_date("20141225")

To obtain username and password, register using web interface (Flash and paper invoice is required). After registering and signing in, metering point number is available on the top-right corner.

Sample output (python dictionary):

[{'month': 10,
 'hour': 0,
 'year': 2020,
 'waterFlowPrice': 0.0,
 'temperature': 11.8,
 'milestones': [],
 'value': 0.92999,
 'day': 1,
 'teleEuro': 0.0,
 'status': 30,
 'telePrediction': 0.0},
{'month': 10,
 'hour': 1,
 'year': 2020,
 'waterFlowPrice': 0.0,
 'temperature': 11.2,
 'milestones': [],
 'value': 0.66,
 'day': 1,
 'teleEuro': 0.0,
 'status': 30,
 'telePrediction': 0.0},
 ...
]

There is no way to check whether data for specific date is available. If data is not available, all fields are provided, but values are 0.0. There is no way to distinct between missing data and hours with no electricity consumption. Usually the data is available next day, but that is not guaranteed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

helen_electricity_usage-0.5.0-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file helen_electricity_usage-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: helen_electricity_usage-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for helen_electricity_usage-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 184ef6acc3ca1e3d94ee7ee015517a70720b6fdcb4e3ab79dbc21c67bea8e379
MD5 dddc0c51cb76dd04f6bcf729943f7195
BLAKE2b-256 27bdf3cee3893f84c0b0dac1935df2e765bc4566c1397f927254d3f2b4e82458

See more details on using hashes here.

Supported by

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