wireless-sensor 0.4.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

wirelesssensor 0.4.0

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,
)

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.