Balboa ControlMySpa™ cloud API for hot tub spa systems
Project description
Balboa ControlMySpa™ cloud API for hot tub spa systems
Python API for ControlMySpa.com cloud-controlled of Balboa spa control systems for hot tubs.
2023-12-13: iot.controlmyspa.com missing intermediate certificate
Since approximately June 2023 iot.controlmyspa.com has a new TLS certificate. This certificate is signed by digicert, but the intermediate certificate chain is not served by iot.controlmyspa.com and is also missing in the python certifi trust store. Instead of disabling the TLS certificate validation, we download the intermediate certificate from digicert over a successfully verified TLS connection and add it to the local trust store on first run. This does, however, not work for read-only runtimes like Docker containers. See https://github.com/arska/controlmyspa-porssari/blob/main/Dockerfile and https://github.com/arska/controlmyspa-porssari/blob/main/get_certificate.py for an example how to download the certificate at Docker image build time instead.
Usage
see example.py for a runnable example
from controlmyspa import ControlMySpa
API = ControlMySpa("user@example.com", "myverysecretpassword")
pprint.pprint(API._info)
References
Based on the JavaScript library https://gitlab.com/VVlasy/controlmyspajs
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
Built Distribution
Hashes for controlmyspa-1.0.13-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4621c6ce79c13671230d17afa02e9c2702d643f125b15243cd49cf0e2018f390 |
|
MD5 | 0eb9d410f2976a1eb06c831d90791a9a |
|
BLAKE2b-256 | 9554a17139e70bbfc9dc6dd5f92ddf7c2ca49978109104d920b517bb20a182f2 |