Skip to main content

This is a utility package to interact with a ConEdison or Orange and Rockland Utility smart energy meter

The utility returns the latest meter read start time, end time, usage value and unit of measurement.

It requires the [coned.com](coned.com) or [oru.com](oru.com) credentials (email, password, MFA type, MFA secret) and the account uuid and meter number. MFA type can be either SECURITY_QUESTION or TOTP (e.g. Google Authenticator). For MFA Security Question, to set up your MFA secret (answer), log into coned.com (or oru.com), go to your profile and reset your 2FA method. When setting up 2FA again, there will be option to say you do not have texting on your phone. Select this and you should be able to use a security question instead. For MFA TOTP, choose Google Authenticator, choose a device type and when presented with the QR code, click on “Can’t scan?”. It should provide you with the MFA secret. To find the account uuid, log into coned.com (or oru.com) then use the browser developer tools to search for a GET request to opower.com with the word utilityAccounts that looks like: https://cned.opower.com/ei/edge/apis/DataBrowser-v1/cws/utilities/cned/utilityAccounts/ACCOUNT_UUID/reads?aggregateType=bill&includeEnhancedBilling=false&includeMultiRegisterData=false. (note the URL would have the word ‘oru’ for oru). The meter number can be found on your utility bill.

Example usage:

import asyncio
from coned import Meter

meter = Meter(
    email="myemail@email.com",
    password="myconedpassword",
    mfa_type=Meter.TOTP,
    mfa_secret="myconedmfasecret",
    account_uuid="cd754d65-5380-11e8-2307-2656615779bf",
    meter_number="703437804",
    site=Meter.CONED)

event_loop = asyncio.get_event_loop()
startTime, endTime, value, unit_of_measurement = event_loop.run_until_complete(meter.last_read())

Metadata

Release files for coned 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coned 0.4.0
File Size Uploaded Provenance
coned-0.4.0.tar.gz 10.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for coned 0.4.0
File Interpreter ABI Platform
coned-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.0 kB

Release files / coned-0.4.0.tar.gz

Download URL coned-0.4.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e5eb2af9201d697c683a503630e4352fc22a0ba32612ecf63b4b45ecbd6cb6f7
BLAKE2b-256 checksum
How to use checksums
5c9909c70a7629d4b01b2f4e07ba37b73b89a2bf28884405741232286275face
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.13

Release files / coned-0.4.0-py3-none-any.whl

Download URL coned-0.4.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df50c8b1a9e434bafe7e187e8a13ea66bd75ff99739d003e3ca582d3af8bc579
BLAKE2b-256 checksum
How to use checksums
0e9538b77909fe5c4a21cb6d9e7a1b987eff70c2407790c1fb7fefb2341ef995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.13

Security for coned 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page