Skip to main content

Original Class Object

https://github.com/cmulk/python_smartmetertx

python-smartmetertx

SmartMeterTX/SmartMeter Texas Python class provides a JSON interface to the electricity usage data available at https://www.smartmetertexas.com. You must have an account established at the site.

Additions done by @Markizano to support updates since JAN 2024. API seems to be the same.

More details can be found: https://github.com/mrand/smart_meter_texas

Depends on a MongoDB server to be running in the environment of sorts.

Will have to later build support for sqlite3 for local DB setup installs that require no further software than this package.

More documentation in doc.

I created this as a means to collect and store data longer than the two years SMTX stores data. In this way, you can have this in your local database and render charts and graphs no matter who your electric provider is. If you live in Texas, you know how challenging it can be searching for a new provider every couple of months to annually and not having clear access to your electric usage history.

This is a project used to help piece together some of that together so I have a single interface when dealing with my electric usage.

I, Markizano, will support this project as long as I live in Texas.

Prerequisites

Notable files below:

bin/fetchMeterReads.cron.py

Full documentation: fetchMeterReads.cron.py.md

bin/meterReadsReport.py

Full documentation: meterReadsReport.py.md

bin/smtx-server.py

Full documentation: smtx-server.py.md

Extend as you please from here :)

Update FEB 2024 SmartMeterTX has changed their API endpoints and now requires you to have your address whitelisted with them and to setup an SSL certificate with them.

You can email support-at-smartmetertexas-dot-com (I redacted the @ and . to derail the bots) to get your address whitelisted and coordinate with them on a public-facing SSL certificate for the HTTP/2.0 connection.

Screenshots

smtx-sample-page

References

Metadata

Release files for smartmetertx2mongo 1.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 smartmetertx2mongo 1.4.0
File Size Uploaded
smartmetertx2mongo-1.4.0.tar.gz 45.5 kB Details

Built distribution (wheel)

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

Total release size: 92.5 kB

Release files / smartmetertx2mongo-1.4.0.tar.gz

Download URL smartmetertx2mongo-1.4.0.tar.gz
Size 45.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a2e4a2a0c5e08173275e5237365b8bb7f042d5ad02ae3f0b688f153a5de4eb2c
BLAKE2b-256 checksum
How to use checksums
31cee969954391520310b815e5080b7663e4bea88374e780cbbad312792350f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / smartmetertx2mongo-1.4.0-py3-none-any.whl

Download URL smartmetertx2mongo-1.4.0-py3-none-any.whl
Size 47.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e94c2f5088412c2ce6b0da2a5b9ae9f92d2a5f6a082aa3628161a336a685136c
BLAKE2b-256 checksum
How to use checksums
c7a211bfdd0b2bee0e15f3942c8a72847b6f6454b0e4e1b6b186836e0e1bc322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.4

1 release file

1.2.3

1 release file

1.2.0

1 release file

1.1.4

1 release file

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