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.0.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.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: my_meter_api-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d4e2dc1d27924e8ed4dd307450eac4f74fcc325508048d4fe969433ba654b165
MD5 a8b97faa05d0e6da0b19aa450f31f340
BLAKE2b-256 b5099d2224cd2df947d85bc0fc6dba79971e933ce59a968ce0d5ab571d452de5

See more details on using hashes here.

Provenance

The following attestation bundles were made for my_meter_api-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: my_meter_api-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7aaeba8f571ef4984457bee07becc5b9f077ae84053ab7dcee0d5c7f8abfb08
MD5 e8797d9573c2712dcd4831efceda0067
BLAKE2b-256 cea7b6a6293011096c72433f7b3e08fda389200aec99cfd29c4b49192dbdcfc2

See more details on using hashes here.

Provenance

The following attestation bundles were made for my_meter_api-0.1.0-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