How markizano/smartmetertx works
SmartMeterTX preserves electricity-usage history and provides tools to collect meter data, compare provider plans, report usage, and visualize reads. The main workflow fetches SmartMeter Texas reads, converts and stores them in MongoDB, then exposes them through a local server and supports reports. A separate plan workflow stores Power to Choose listings for reconciliation against usage history. Edges reflect excerpted calls or README-described capabilities; some command internals and server routes were not sampled, so undocumented links are omitted.
Main entry points: smtx2mongo.py Meter Fetch · power2choose.py Plan Fetch · reconcile.py Plan Reconciliation · server.py Local Server
Components 19
Data Collection
- Meter Fetch
lib/smartmetertx/smtx2mongo.py - SMTX API Client
lib/smartmetertx/api.py - Document Schema
lib/smartmetertx/schema.py - Mongo Connection
lib/smartmetertx/utils.py
Plan Comparison
- Plan Fetch
lib/smartmetertx/power2choose.py - Plan Reconciliation
lib/smartmetertx/reconcile.py - Ranked Markdown Report
Reports and Alerts
- Usage Report
lib/smartmetertx/meterReport.py - SNS Notifications
lib/smartmetertx/notify.py
Web Interface
- Local Server
lib/smartmetertx/server.py - Request Validation
lib/smartmetertx/controller.py - Browser UI
lib/ui/index.js
Other components
- Operator
- SmartMeter Texas
- MongoDB
- Power to Choose
- Plan EFLs
- AWS SNS
- Browser User
Connections 22
- Operator → Meter Fetch: runs fetch
README.md - Meter Fetch → SMTX API Client: requests reads
lib/smartmetertx/smtx2mongo.py - SMTX API Client → SmartMeter Texas: fetches reads
lib/smartmetertx/api.py - Meter Fetch → Document Schema: casts records
lib/smartmetertx/smtx2mongo.py - Meter Fetch → Mongo Connection: opens connection
lib/smartmetertx/smtx2mongo.py - Meter Fetch → MongoDB: writes reads
README.md - Operator → Plan Fetch: runs fetch
README.md - Plan Fetch → Power to Choose: fetches plans
lib/smartmetertx/power2choose.py - Plan Fetch → Document Schema: casts plans
lib/smartmetertx/power2choose.py - Plan Fetch → MongoDB: stores plans
lib/smartmetertx/power2choose.py - Operator → Plan Reconciliation: runs comparison
README.md - Plan Reconciliation → MongoDB: reads usage and plans
README.md - Plan Reconciliation → Plan EFLs: downloads EFLs
lib/smartmetertx/reconcile.py - Plan Reconciliation → Ranked Markdown Report: produces report
lib/smartmetertx/reconcile.py - Operator → Usage Report: runs report
README.md - Usage Report → MongoDB: reads usage
lib/smartmetertx/meterReport.py - Usage Report → SNS Notifications: sends summary
lib/smartmetertx/meterReport.py - SNS Notifications → AWS SNS: publishes alert
lib/smartmetertx/notify.py - Browser User → Local Server: requests interface
README.md - Local Server → MongoDB: reads meter data
lib/smartmetertx/server.py - Local Server → Request Validation: uses validation
lib/smartmetertx/server.py - Local Server → Browser UI: serves UI files
lib/smartmetertx/server.py