A Client for the pumpberry-server which logs sensors values in a mongodb database.
Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
migrations
models
.gitignore
.overcommit.yml
Gemfile
Gemfile.lock
LICENSE
README.md
client.rb
client_handler.rb

README.md

Client used to connect to pumpberry-server. It stores values on a mongodb database. It uses a mongodb database to take advantage of mongo capped collections. so we don't need to handle rotations of value read.

Install

Use config/database.yml.example to configure your own database.yml for database configuration. Configure config/server.yml with pumpberry-server host and port

Create mongodb collection:

$ mongo YOUR_DATABASE_NAME migrations/mongodb_migrations.js

Run

$ ruby client_handler.rb start

TODO

  • networking errors handling