Skip to main content

An interface to Arctic Spa hot tubs

Project description

Arctic Spa Hot Tub library

This library talks to Arctic Spa brand hot tubs and reports sensor information.

As of this initial library version, this only supports polling the hot tub for status information, not controlling it.

Overview

To request status information from the hot tub, create an ArcticSpa object with the device's hostname and call poll():

import asyncio
from arctic_spa import ArcticSpa

spa = ArcticSpa('192.168.123.42')
packets = asyncio.run(spa.poll())

packets is a list of the latest packets received by the network client. poll() will return once all the requested types have been returned. Currently this only supports requesting Live and OnzenLive packet types, but may return other types if the hot tub sends them in addition to the requested packets.

See network.py for a complete example.

Network Discovery

You can search the local subnet for a hot tub. To do so, provide the local address of the calling code and the subnet mask you'd like it to scan:

searcher = NetworkSearch(local_addr, subnet_mask)
results = asyncio.run(searcher.search())

results is a list of all the discovered devices (empty if there are none).

See network.py for a complete example.

License

Copyright (c) 2022 Steve Pomeroy steve@staticfree.info

This is licensed under the Apache 2.0 software license.

Disclaimer

This library is neither endorsed nor sponsored by Arctic Spa. By using this library, you agree to take full responsibilty for any actions that may occur from the use of this library.

That said, we love our Arctic Spa hot tub and don't want to damage it, so we try very hard to not do anything risky with it.

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

arctic_spa-0.0.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

arctic_spa-0.0.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file arctic_spa-0.0.1.tar.gz.

File metadata

  • Download URL: arctic_spa-0.0.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for arctic_spa-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3382ca92d25b3a9d798811caff57ff2641c7fb0e72b1ab386abb6c1714f68b45
MD5 3c2227feb6f227b918e48f02c1da7276
BLAKE2b-256 f2160081492afc2e41737bd15e414c5ffccc36ae012ba26f0c55db3190931171

See more details on using hashes here.

File details

Details for the file arctic_spa-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: arctic_spa-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for arctic_spa-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd8785b9db6520b3a5b30b5d5f2bc405a98014f855a6f9737008b370c1006f24
MD5 05990dc59e5c6dd8843b430f9d9f2395
BLAKE2b-256 78755c84eb11c9de2331e221b1e62732e0f1d1202610b2ed9f64d3465e599fc2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page