Simple OpenMetrics exporter for BLE devices
Project description
blexy
Simple OpenMetrics exporter for BLE devices
Running
pip install blexy
blexy --port 8888 --config-file ~/.blexy.yaml
Endpoints
/
- returns list of connected devices in JSON format./metrics
- returns values read from connected BLE devices in OpenMetrics format.
Config
- Device & server configuration is by default expected to be placed in
./config.yaml
. - Custom config file path can be specified via
-c / --config-file
command line option. port
andlog_level
can be either specified in config file or through command line options (seeblexy -h
for exact option names).
Example config file
Below file will make blexy connect to two Xiaomi temperature / humidity sensors and listen on port 8080:
port: 8080
log_level: info
ble:
devices:
- name: living room sensor
model: LYWSD03MMC
address: xx:xx:xx:xx:xx:xx
- name: bedroom sensor
model: LYWSD03MMC
address: xx:xx:xx:xx:xx:xx
Supported devices
LYWSD03MMC
(Xiaomi)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blexy-0.1.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
blexy-0.1.0-py3-none-any.whl
(6.5 kB
view hashes)