Skip to main content

Receive & decode signals of FT017TH thermo/hygrometers

Project description

wireless-sensor 🌡

Code style: black CI Pipeline Status Coverage Status Last Release Compatible Python Versions DOI

Command-line tool & python library to receive & decode signals of FT017TH wireless thermo/hygrometers

Requirements

Setup

$ pip3 install --user --upgrade wireless-sensor

Usage

Command-line

$ wireless-sensor-receive
2020-12-07T10:40:16+0100 23.9°C 46.9%
2020-12-07T10:41:04+0100 23.9°C 46.9%
2020-12-07T10:42:01+0100 23.8°C 47.0%

Python Library

import wireless_sensor

sensor = wireless_sensor.FT017TH(gdo0_gpio_line_name=b'GPIO24')
for measurement in sensor.receive(timeout_seconds=600):
    if not measurement:
        print("invalid packet or timeout")
        continue
    print(
        measurement.decoding_timestamp,
        measurement.temperature_degrees_celsius,
        measurement.relative_humidity,
    )

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

wireless-sensor-0.4.0.tar.gz (38.2 kB view hashes)

Uploaded Source

Built Distribution

wireless_sensor-0.4.0-py3-none-any.whl (19.4 kB view hashes)

Uploaded Python 3

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