A high-level client library for accessing Arctic Spas API
Project description
pyarcticspas
A high-level python client library for accessing Arctic Spas API.
Usage
Example:
from pyarcticspas import Spa, LightState, Blower, BlowerState
token = "(Token received from https://myarcticspa.com/spa/SpaAPIManagement.aspx)"
spa = Spa(token)
status=spa.status()
print(status.connected) #True
print(status.lights.value) #off
print(status.blower1.value) #off
spa.set_lights(LightState["ON"])
spa.set_blowers(Blower["VALUE_0"],BlowerState["ON"])
status=spa.status()
print(status.lights.value) #on
print(status.blower1.value) #on
If you are using asynchronous calls, use the async_
version of the calls.
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
pyarcticspas-0.2.2.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file pyarcticspas-0.2.2.tar.gz
.
File metadata
- Download URL: pyarcticspas-0.2.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5702e399edcd6769fbc3ec6e9cda21afc617be7a0186b7d9e2c3f2d0241fb874 |
|
MD5 | b27337609838cee3de90de6ab60556ce |
|
BLAKE2b-256 | 1fe63a425512bf22aa0badcddf45d403c2df746f95a154d1336bdf4885f47991 |
File details
Details for the file pyarcticspas-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: pyarcticspas-0.2.2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caebe4b56bef64d367204b10be8671f89af25844b7b0509dc58b4a6180a6075a |
|
MD5 | ebe9afe434e7a0d1674d0ee7ff529dc8 |
|
BLAKE2b-256 | 98ddc6201d492e1b857e082c7520de8d9260b2536af906812149922a3e2d4397 |