Receive & decode signals of FT017TH thermo/hygrometers
Project description
wireless-sensor 🌡
Command-line tool & python library to receive & decode signals of FT017TH wireless thermo/hygrometers
Requirements
- FT017TH sensor
- CC1101 transceiver
- Linux machine with CC1101 connected to SPI port &
GDO0
connected to some GPIO pin (wiring instructions for raspberry pi)
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)
Built Distribution
Close
Hashes for wireless_sensor-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4c0b80d5ae7f4059299da31c0931a2a45e62e446c452ca3eb8009c0aa287ab |
|
MD5 | ef922a75f2ebb66f506f64bc0fda76a9 |
|
BLAKE2b-256 | a708049ed93b999a10010116a00944c342a6fd2a93f32640ee52cce07b491d3a |