Skip to main content

Implementation of SmartMeter Texas to store reads in MongoDB and serve a simple UI/API.

Project description

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

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

smartmetertx2mongo-1.3.0.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

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

smartmetertx2mongo-1.3.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file smartmetertx2mongo-1.3.0.tar.gz.

File metadata

  • Download URL: smartmetertx2mongo-1.3.0.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for smartmetertx2mongo-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f889c3ff028876f90f91258d27c1920cdf8d1ae2eedb33144cf449568327fd2c
MD5 ffee029ff1cbd013bb2d675610f4dcb2
BLAKE2b-256 8d0d22b4c1f5f698c41077c307d2baf6352d93ca300077cd81cd965e1468a5fe

See more details on using hashes here.

File details

Details for the file smartmetertx2mongo-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smartmetertx2mongo-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ee5c74e1f064c79cb385066cbde763d84c46afa7894bfaf7dfb32218d1d92f7
MD5 fa29b51c646db26b5aff493dc5e10769
BLAKE2b-256 e0c70214486fa74d7f8b8697501528d349159b64d9be1aa01b340cc3d8af4167

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