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.4.0.tar.gz (45.5 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.4.0-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smartmetertx2mongo-1.4.0.tar.gz
Algorithm Hash digest
SHA256 a2e4a2a0c5e08173275e5237365b8bb7f042d5ad02ae3f0b688f153a5de4eb2c
MD5 dc117720841bc109f44d69dda4655c45
BLAKE2b-256 31cee969954391520310b815e5080b7663e4bea88374e780cbbad312792350f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smartmetertx2mongo-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e94c2f5088412c2ce6b0da2a5b9ae9f92d2a5f6a082aa3628161a336a685136c
MD5 e884f0007fec08e504c7bb65997f73ca
BLAKE2b-256 c7a211bfdd0b2bee0e15f3942c8a72847b6f6454b0e4e1b6b186836e0e1bc322

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