Skip to content

Collect weather data from Ruuvi tags for consumption by Prometheus

License

Notifications You must be signed in to change notification settings

gitperr/ruuvi-prometheus-scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruuvi Prometheus scraper

Collects weather data from Ruuvi tags running the official firmware for consumption by Prometheus.

The python file main.py is hardcoded for my tags but can easily be modified for your own needs.

You can also take a look at the files under deploy/ that I use to run this scraper on a Raspberry PI 3. They assume that the scraper is run with an user called ruuvi. You also need to configure Prometheus to scrape data from the app from the address http://localhost:8000/metrics.

Install

git clone git@github.com:Hilzu/ruuvi-prometheus-scraper.git
cd ruuvi-prometheus-scraper
virtualenv venv -p python3
source venv/bin/activate
pip install -r requirements.txt
python main.py

About

Collect weather data from Ruuvi tags for consumption by Prometheus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.5%
  • Dockerfile 12.5%