Giter Site home page Giter Site logo

ruuvi2db's Introduction

ruuvi2db

ruuvi2db is a service for collecting measurements from RuuviTags, storing them in a database of choice, and displaying the data via HTTP.

Tested on Raspberry Pi Zero W.

Features

Supported data formats:

Output data:

  • Temperature (°C)
  • Relative humidity (%)
  • Air pressure (hPa)
  • Battery voltage (mV)

Supported databases:

  • BoltDB (custom format)

Requirements

  • Linux 2.6.23+
  • Bluetooth adapter with BLE support
  • Raw capture capabilities for the binary

Installation

wget https://github.com/s5i/ruuvi2db/releases/latest/download/ruuvi2db
chmod +x ./ruuvi2db

sudo mkdir -p /usr/local/ruuvi2db
sudo mv ./ruuvi2db /usr/local/ruuvi2db
sudo chown root:root /usr/local/ruuvi2db/ruuvi2db

sudo tee /etc/systemd/system/ruuvi2db.service << EOF > /dev/null
[Unit]
Description=ruuvi2db Service
Requires=network.target
Requires=bluetooth.target

[Service]
Type=simple
ExecStartPre=sleep 10
ExecStart=/usr/local/ruuvi2db/ruuvi2db
Restart=always

[Install]
WantedBy=multi-user.target
EOF

sudo /usr/local/ruuvi2db/ruuvi2db --create_config

# Change as desired.
sudo vim /usr/local/ruuvi2db/config.yaml

sudo systemctl enable ruuvi2db
sudo systemctl start ruuvi2db

ruuvi2db can also be ran without root privileges.

  • Default BoltDB path requires root; change as desired.
  • Default HTTP port is 8080. Can be overridden in config.
  • Raw capture capabilities need to be granted.
sudo setcap "cap_net_raw,cap_net_admin=ep" "$(which ruuvi2db)"

Not there yet

Support for the following data formats:

ruuvi2db's People

Contributors

s5i avatar

Watchers

 avatar

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.