Project

usblamp

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
WebMail Notifier with ruby (Dream Cheeky).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0
~> 3.0
~> 0.25
~> 0.9

Runtime

~> 0.4
~> 3.6
 Project Readme

WebMail Notifier with Ruby (Dream Cheeky)

Build Status

Ruby script to power the Dreamcheeky USB webmail notifier gadget. http://www.dreamcheeky.com/webmail-notifier

Requirements

  • Ruby 1.9.2 or newer

Installation

Assuming RubyGems isn't down you can install the Gem as following:

$ gem install usblamp

Usage

Usage: usblamp [COMMAND] [OPTIONS]

Options:

    -v, --version      Shows the current version
    -r, --red          Red
    -g, --green        Green
    -b, --blue         Blue
    -c, --color        Color
    -h, --help         Display this help message.

Available commands:

  fadein   Fade in effect
  blink    Blink effect

Troubleshooting

Should be run as root unless the necessary udev rules are set. Create the file /etc/udev/rules.d/42-usblamp.rules And add this content by replacing got by your username:

SUBSYSTEM !="usb_device", ACTION !="add", GOTO="datalogger_rules_end"
SYSFS{idVendor} =="1d34", SYSFS{idProduct} =="0004", SYMLINK+="datalogger"
MODE="0666", OWNER="got", GROUP="root"
LABEL="datalogger_rules_end"

Running tests

Install dependencies:

$ bundle install

To run tests: $ bundle exec rake