Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

PierreRambaud/usblamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

WebMail Notifier with ruby (Dream Cheeky)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages