What's Changed
- Add Bearer Token Auth by @jasonacox in #63
- Powerwall Network Scanner - Added optional IP address argument to network scanner by @mcbirse in #63. The Scan Function can now accept an additional argument
-ip=to override the host IP address detection (python -m pypowerwall scan -ip=192.168.1.100). This may be useful where the host IP address/network cannot be detected correctly, for instance if pypowerwall is running inside a container.
pyPowerwall
- This release adds the ability to use a Bearer Token for Authentication for the local Powerwall gateway API calls. This is selectable by defining
authmode='token'in the initialization. The default mode uses the existingAuthCookieandUserRecordmethod.
import pypowerwall
pw = pypowerwall.Powerwall(HOST, PASSWORD, EMAIL, TIMEZONE, authmode="token")Proxy
- The above option is extended to the pyPowerwall Proxy via the envrionmental variable
PW_AUTH_MODEset to cookie (default) or token.
Full Changelog: v0.7.3...v0.7.4