Skip to main content

An interface to control AirScape Whole House Fans

Project description

AirScape WHF interface

AirScape has a collection of connected whole house fans. They can be controlled via their app, but also have a published API. This project is an interface to control their fans locally via the REST API on the fan.

API is documented here

Invocation

Import into your code and create a airscape.Fan object

import airscape
fan = airscape.Fan('192.168.1.10', 5)

Constructor takes 2 arguments. The IP or hostname (if you DNS registered your fan) and the timeout for communicating with the fan.

The timeout is optional and has a default value of 5.

Fan Control

The fan has 2 attributes to control:

  • on
  • speed
>>> fan.on
False
>>> fan.on = True
>>> fan.on
True
>>> fan.speed
2
>>> fan.speed = 5
>>> fan.speed
5

The speed can also be controled in incrememnts instead of setting directly

>>> fan.speed
3
>>> fan.speed_up()
>>> fan.speed
4
>>> fan.slow_down()
>>> fan.speed
3

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

airscape-0.1.8.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

airscape-0.1.8-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file airscape-0.1.8.tar.gz.

File metadata

  • Download URL: airscape-0.1.8.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for airscape-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c42ddd4fdbf15e99314018cf240a81e2f695c358d96367df0916b96e619e9cf9
MD5 54ec128fde514e22a3bd72abefc4ee09
BLAKE2b-256 06362be8e101bc1ec865ef7ace44a3636b1572df0323cdeac3504a9d9862a3aa

See more details on using hashes here.

File details

Details for the file airscape-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: airscape-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for airscape-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ba6f5c260c909036b2e82491ffc27dd7450da4f68f0709f0db9a485b554fb5b2
MD5 17c8d6b854c78da3ad3f84fe07e77cba
BLAKE2b-256 16a95671fdbcebe6a02035475c0a1d624ae1071f68e24ff7c1189cdf080d1c9a

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