Skip to main content

python API wrapper for foobot.io

Project description

http://foobot.io/ is awesome home air monitor solution, that helps you monitor and control your indoor air quality. Welltory integrated with foobot.io and we share our Python API wrapper with you.

Install

$ pip install foobot

Usage

from foobot.api import FoobotAPI

api = FoobotAPI(
    api_key=<YOUR_API_KEY>,
    access_token=<YOUR_ACCESS_TOKEN>,
    homehost=<YOUR_HOME_HOST>,
    username=<YOUR_USER_EMAIL,
    client_key=<YOUR_CLIENT_KEY>,
    client_secret=<YOUR_CLIENT_SECRET>,
)
devices = api.get_devices()
data_by_devices = api.get_last_day_data()

API reference

FoobotAPI

  • get_devices() return list of dict described devices connected to this accunt

  • get_last_day_data() return list of data from devices
    • raw (Default: False) - return data as a dict or as a FoobotDataItem instance

  • get_data() return list of data from devices
    • start (Default: 3600*24) - return data as a dict or as a FoobotDataItem instance

    • end (Default: “last”) - return data as a dict or as a FoobotDataItem instance

    • average_by (Default: 3600) - return data as a dict or as a FoobotDataItem instance

FoobotDataItem

  • timstamp - timestamp for measure

  • particulate_matter (ppm) - particulate matter

  • temp (C) - temperature

  • humidity (pc) - humidity

  • co2 (ppm) - CO2

  • voc (ppb) - volatile organic compounds

  • foobot_index - Internal index for Foobot

License

The MIT License (MIT)

Tests

$ python setup.py test

Contributors

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

foobot-1.0.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

foobot-1.0.4-py2-none-any.whl (5.5 kB view details)

Uploaded Python 2

File details

Details for the file foobot-1.0.4.tar.gz.

File metadata

  • Download URL: foobot-1.0.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for foobot-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3d977de62a24b214d68d3f40af1e274ba276b94a158943e081b69c60a55dbb98
MD5 0722dd7a30c42e4d2094c81d5505fff2
BLAKE2b-256 52ce380454a4ba23f32db49444e5e822bee8c68f8ac3e5dc1aa8d603d7a28eda

See more details on using hashes here.

File details

Details for the file foobot-1.0.4-py2-none-any.whl.

File metadata

File hashes

Hashes for foobot-1.0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 640d7788042fc08bc4f6373e19a498adea19d482faf4a932d863fed211bad17d
MD5 afa105a5d25ba43b1e8c3b4e4f68ce37
BLAKE2b-256 0e167e483c58ccc41bd6407b2580d78704e11539e6134c7b2a2a5de713282a2f

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