Skip to main content

Get your electricity meter reading and usage data from compatible MyMeter sites.

Project description

MyMeter API

This API can be used to interact with the private API used by the MyMeter application used by some power companies to expose usage data to customers.

NOTE: This API is undocumented and could change or break at any time.

Usage

All functionality is encapsulated within the MyMeterApi class. It requires four parameters: baseUrl, rememberMeCookie, sidCookie, and cookieRequestVerificationToken.

  • baseUrl is simply the URL of your power company's MyMeter instance (i.e. "https://mymeter.example.com")
  • rememberMeCookie, sidCookie, and cookieRequestVerificationToken are the values of your MM_RememberMe, MM_SID, and __RequestVerificationToken cookies respectively

Once you have an instance of MyMeterApi, just call downloadUsage with your meter number, the date range you want, and the interval you want to be returned. The API client will automatically perform the CSRF process, and then download and parse a usage CSV, returning an array of MyMeterUsageValue objects.

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

my_meter_api-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

my_meter_api-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file my_meter_api-0.1.1.tar.gz.

File metadata

  • Download URL: my_meter_api-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for my_meter_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 139ff018e7f3a93e53def55bbdab1f73bef01a79c2575d62698137f09b8b7c0c
MD5 9c4f33e07bf5b1f0c2db3c9ad9f73ef2
BLAKE2b-256 d1f44bd424fd3bc5631d384d14897f0b12240bd00bbf6ded2dc287136c493f53

See more details on using hashes here.

Provenance

The following attestation bundles were made for my_meter_api-0.1.1.tar.gz:

Publisher: python-publish.yml on jthoward64/my-meter-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file my_meter_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: my_meter_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for my_meter_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40ba9b1e0d54d3debd37b3cd0cad84166d4130570b9c08d2fbd9e6cde46dd157
MD5 4db6135d7c36f37bfeb43e870c212981
BLAKE2b-256 627e67c9ab5e2a86d234cf1ffd3a1f052ad1c3447d83544637d7e7aac724e5c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for my_meter_api-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on jthoward64/my-meter-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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