API for the Sense Energy Monitor
Project description
# sense_api Sense Energy Monitor API Interface [WIP]
Systematic access to the Sense monitor data. Exploratory work on pulling data from Sense to be used in other tools - Smartthings, ActiveTiles, etc.
Python version based on the work done here in Powershell: https://gist.github.com/mbrownnycnyc/db3209a1045746f5e287ea6b6631e19c
### Contributors
Feel free to fork and PR!
### Todo
Add POST/PUT where/if applicable
CLI
Improved error handling
### Install
` pip install sense_energy `
### Example Usage: ` (pyvienv) ~/code/sense/sense_energy stable ● python sense_api.py Please enter you Sense username (email address): Please enter your Sense password: ('Active:', 2917.29736328125, 'W') ('Active Solar:', 0, 'W') ('Active Devices:', u'Other, Always On') `
There are plenty of methods for you to call so modify however you see fit
If using the API to log data, you should only create one instance of Senseable and then reuse that to get the updated stats. Creating the instance authenticates with the Sense API which should only be once every 15-20 minutes at most. Calling the update_trend_data() function will update all the trend stats and get_realtime() will retrieve the latest real time stats.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sense_energy-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1286c890aed9c0a6cec587c0cd98446e073f6048147b274908821890222b78bf |
|
MD5 | c8a1bc2cf0dd8e1322e2d87c8346ac21 |
|
BLAKE2b-256 | 2f1717a8b47dd66baec6c0c018c1c3d82adb13324f8240790f8a8cd6d300dc1c |