Giter VIP home page Giter VIP logo

ruuvitag-collector's Introduction

ruuvitag-collector

Collects data from RuuviTag sensors to SQLite, InfluxDB and other databases.

Based on https://github.com/kuosman/RuuviTag-logger but modified heavily for my (and hopefully others') use case.

Used elements

Setup

Copy the file example-config.yaml to $HOME/.config/ruuvitag-collector/config.yaml.

Add the MAC addresses and human-readable names of your RuuviTags into the config file under the ruuvitags key:

ruuvitags:
  "CC:CA:7E:52:CC:34": Backyard
  "FB:E1:B7:04:95:EE": Upstairs
  "E8:E0:C6:0B:B8:C5": Downstairs

If you want to save data to local SQLite database, add the following options to your config file:

sqlite:
  enabled: true
  file: /home/pi/ruuvitag/ruuvitag.db

If you want to save data to InfluxDB (local or remote), add the following options to your config file:

influxdb:
  enabled: true
  host: localhost
  port: 8086
  database: ruuvitag
  measurement: ruuvitag
  username: root
  password: root

Then install poetry and the required packages:

sudo pip3 install poetry
poetry install

Now you can run the collector manually:

$ poetry run python3 -m ruuvitag_collector

Set crontab to run the collector automatically every 5 minutes:

Add this line to the /etc/crontab file

*/5 * * * *  poetry run python3 -m ruuvitag_collector > /home/pi/ruuvitag-collector/collector.log 2> /home/pi/ruuvitag-collector/collector.err

ruuvitag-collector's People

Contributors

dependabot[bot] avatar niktheblak avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ruuvitag-collector's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

pep621
pyproject.toml
  • poetry_core >=1.6.0
poetry
pyproject.toml
  • python >=3.7,<4
  • ruuvitag-sensor ^2.0.0
  • influxdb ^5.2.3
  • google-cloud-pubsub ^2.0.0
  • google-cloud-logging ^3.0.0
  • retrying ^1.3.3
  • confuse ^2.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.