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.1.0.tar.gz (4.4 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.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for temperature_sensor_scanner-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0d6a27896c56cc3b3c610040e2ac8dec12e826b527dbb8c4b9c3d862ed0967d3
MD5 21dab9932ec08156df3d38f32f7af21f
BLAKE2b-256 a3ee6d57474078a784f1ee3ad3f349c514640254b0044b7a1aa5e3b170076fd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for temperature_sensor_scanner-1.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for temperature_sensor_scanner-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 714b4ac45840beb8b665be96cd19c72814b890d421aac34f9763ce9f4e22d7dc
MD5 d45ecc01b9797b5d5cf620fb9931915a
BLAKE2b-256 927e17c5cc970a2a2ad3b7ddd6d02c59da2ff7bd1d9b5cddc96a4aba200d2701

See more details on using hashes here.

Provenance

The following attestation bundles were made for temperature_sensor_scanner-1.1.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