Some scripts I've written to control my blink(1) http://thingm.com/products/blink-1/
- blink1control needs to be running for the scripts to work and the API server needs to be turned on.
- these scripts only work on OSX
Checks whether there are any unread messages in your gmail inbox. Username and password are specified in ~/gmail.props
I put this in my crontab file...
The properties are:
username
password
Checks your calendar to see whether you should be somewhere. It uses icalBuddy http://hasseg.orgicalBuddy/icalBuddy/
icalBuddy can be installed using homebrew brew install ical-buddy
You have to start it from a terminal window due to calendar's privacy settings.
I just type nohup blink-calendar.sh &
and then close the terminal window.
Blinks red if my CI build on http://codeship.io is broken, green otherwise...
Flashes the colour specified 3 times. Valid colours are:
- red
- blue
- yellow
- white
- purple
so basically any pattern in blink-control that matches {colour} flashes
to run it: osascript flash.applescript {colour}
if no colour is specifed, it flashes red.
The following are the commands to install the perl dependencies used by these scripts:
sudo cpan install Mail::IMAPClient
sudo cpan install Config::Properties