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.1.tar.gz (4.7 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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for temperature_sensor_scanner-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ff3628c948db17a0ac686a69bf58c77e48ff14fe15ade06b623b49608e32dca6
MD5 318c82132e9f36077003d2f7d74f7e42
BLAKE2b-256 9ebad6200bdb242d51fb8d6823d2cda0361ad36073afd3eb436b064f9f0de7ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for temperature_sensor_scanner-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a450bcd7154648576d475431868eb7ff625b6253fa5f4fe149b1209348225c0f
MD5 f2e3a345fad3f8a761fac7a7381af162
BLAKE2b-256 40aa4c69e3e76acfe6b9b55d6f09138e19bf2b15f8adf7305ada60c3755cf412

See more details on using hashes here.

Provenance

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