Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vonglasow/polar-bpm-h10
Script to push polar H10 metrics to push gateway for prometheus.
https://github.com/vonglasow/polar-bpm-h10
golang grafana h10 polar prometheus pushgateway raspberry raspberry-pi raspberry-pi-3
Last synced: 3 months ago
JSON representation
Script to push polar H10 metrics to push gateway for prometheus.
- Host: GitHub
- URL: https://github.com/vonglasow/polar-bpm-h10
- Owner: vonglasow
- Created: 2021-06-01T21:42:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T13:09:44.000Z (over 3 years ago)
- Last Synced: 2024-09-29T00:45:14.204Z (4 months ago)
- Topics: golang, grafana, h10, polar, prometheus, pushgateway, raspberry, raspberry-pi, raspberry-pi-3
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
This is a small script to parse Polar H10 data and upload it on prometheus to
create a graph with grafana, used with RaspberryPi 3b+You need also:
- [pushgateway](https://github.com/prometheus/pushgateway)
- [prometheus](https://github.com/prometheus/prometheus)
- [grafana](https://github.com/grafana/grafana)# Compilation
```sh
go build bpm.go
```# Usage
```sh
./bpm -b 01:AB:CD:EF:02:AB -j cardiac_frequency -m bpm -u http://192.168.1.2:9091 -v
``````
Usage of ./bpm:
-b string
Bluetooth mac address used with gatttool to connect and parse data
-j string
Specify prometheus job. (default "cardiac_frequency")
-m string
Specify prometheus metric. (default "bpm")
-u string
pushgateway url to push bpm to prometheus
-v verbose
```# Help
- https://blog.alikhalil.tech/2014/11/polar-h7-bluetooth-le-heart-rate-sensor-on-ubuntu-14-04/
- https://nob.ro/post/polar_h10_ubuntu/
- https://reprage.com/post/how-to-connect-the-raspberry-pi-to-a-bluetooth-heart-rate-monitor
- https://stackoverflow.com/questions/32947807/cannot-connect-to-ble-device-on-raspberry-pi
- https://www.linuxfordevices.com/tutorials/connect-bluetooth-command-line