v0.1.2 - Error Handling and Proxy Stats
- PyPI 0.1.2
- Added better Error handling for calls to Powerwall with debug info for timeout and connection errors.
- Added timestamp stats to pypowerwall proxy server.py (via URI /stats and /stats/clear)
pyPowerwall Debug
DEBUG:pypowerwall [0.1.2]
DEBUG:loaded auth from cache file .powerwall
DEBUG:Starting new HTTPS connection (1): 10.0.1.2:443
DEBUG:ERROR Timeout waiting for Powerwall API https://10.0.1.2/api/devices/vitals
Proxy Stats via http://{proxy}/stats
{"pypowerwall": "0.1.2", "gets": 2, "errors": 3, "uri": {"/stats": 1, "/soe": 1}, "ts": 1641148636, "start": 1641148618, "clear": 1641148618}