Skip to main content

temperature-sensor-scanner

A tool to scan nearby Bluetooth Low Energy thermometers on the Telink chipset, collect the data ane emit it into InfluxDB 3.

Setup

  • Create an InfluxDB 3 token with a command like influxdb3 create token --admin
  • Create a database with a command like influxdb3 create database [my-database] --token [my-token]
  • Ensure the host supports at least Bluetooth 4.0 which is when BLE was first introduced
  • Ensure bluetooth is working
    • rfkill list should show that Soft blocked and Hard blocked are both no, if not rfkill unblock bluetooth && rfkill list && systemctl restart bluetooth
  • Create a config.yaml in ~/.config/temperature-sensor-scanner/ based on the config.example.yaml file
  • Install this tool with a command like pip install temperature-sensor-scanner

Usage

Run temperature-sensor-scanner which will scan for nearby sensors which are emitting temperature data in their Bluetooth advertising string, collect that data, and emit it into InfluxDB 3.

Setting up a service

Run this as the user you want to run the service

mkdir -p ~/.config/systemd/user/
cp temperature-sensor-scanner.service ~/.config/systemd/user/
cp temperature-sensor-scanner.timer ~/.config/systemd/user/

systemctl --user daemon-reload
systemctl --user enable --now temperature-sensor-scanner.timer

sudo loginctl enable-linger $USER

systemctl --user list-timers
systemctl --user status temperature-sensor-scanner.service
journalctl --user -u temperature-sensor-scanner.service

Notes

Steps to provision a new sensor

  • Flash the firmware
    • Click Connect
    • Select the LYWSD03MMC Bluetooth device in the menu
    • Click Do Activation
    • Choose Custom Firmware ATC_v56.bin
    • Click Start Flashing
    • Wait 42 seconds for it to show update done
  • Identify ID from Bluetooth announced name and print a label to put on the sensor
  • Quit Chrome and start again
  • Configure sensor

Metadata

Release files for temperature-sensor-scanner 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for temperature-sensor-scanner 2.0.0
File Size Uploaded
temperature_sensor_scanner-2.0.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for temperature-sensor-scanner 2.0.0
File Interpreter ABI Platform
temperature_sensor_scanner-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / temperature_sensor_scanner-2.0.0.tar.gz

Download URL temperature_sensor_scanner-2.0.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cd1b23f47ab48541142c4ce6f463b6b7ba73f97e3512ea6a94cf6e6b66000739
BLAKE2b-256 checksum
How to use checksums
2a8ecdeda82810039b4d715119d168e867349dc80629933bfc93b28d3580ae05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / temperature_sensor_scanner-2.0.0-py3-none-any.whl

Download URL temperature_sensor_scanner-2.0.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e18189d50d98aae20fe783e282939aef37423723b940141be3ea8a1b67ccae21
BLAKE2b-256 checksum
How to use checksums
f2ba5f6080fd220d0ea4ccd2d69faa1df1070797dccc2b8f2f597b14e77d5b33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

2.0.1

2 release files

This release

2.0.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page