Skip to main content

A tool to collect data from temperature sensors and emit it into InfluxDB

Project description

temperature-sensor-scanner

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

Setup

  • Create an influxdb user with a command like influx user create --org [my-org] --name [my-username] --password [my-password]
  • Create an influxdb token with a command like influx auth create --org [my-org] --user [my-username] --write-bucket [my-bucket-id]
  • 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.

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

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

temperature_sensor_scanner-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

temperature_sensor_scanner-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file temperature_sensor_scanner-1.0.0.tar.gz.

File metadata

File hashes

Hashes for temperature_sensor_scanner-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e93af7c5e40e246e95f9680cbf05e47f887287deb39a293a113be04e9efc10ef
MD5 7d520254b0d1758bb9f0285bdc943479
BLAKE2b-256 996d20155e10c4c1406f1f944ca5dc7040c2b7b354715f8becf5906b2aa00b14

See more details on using hashes here.

Provenance

The following attestation bundles were made for temperature_sensor_scanner-1.0.0.tar.gz:

Publisher: publish-to-pypi.yml on gene1wood/temperature-sensor-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file temperature_sensor_scanner-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for temperature_sensor_scanner-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db50c927b67aaf10b25e880fb208866ec98b509f651447917062fdb3355ee203
MD5 9e11de32833f0818970f3e7cb8b6cac9
BLAKE2b-256 a7dbaf3c10db26c959940818361e2f31edcf0bdd0cac7a8beed6f2b6127a12b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for temperature_sensor_scanner-1.0.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on gene1wood/temperature-sensor-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page