/Pomodoro-Campfire

campfire notifications for Pomodoro app

Primary LanguageRuby

Description

Simple Campfire notifier for the Pomodoro app, based off xiplias's gist.

The script reads a JSON file to match a leading pomodoro tag with a Campfire account. In the example file there is a campfire account with tag called "wco". Any pomodoros starting with "wco-", "wco_", "wco," will use the "wco" campfire account. If no campfire account exists with the leading tag, nothing will be broadcast.

E.g.

{
  "wco": {
    "token": "token_api_key_here",
    "domain": "widgetco",
    "room": "Dev room"
  }
}

Installation

First, clone down the repo and install the gem dependencies (tinder and json):

git@github.com:glennr/Pomodoro-Campfire.git
sudo gem install json tinder --no-ri --no-rdoc

On the Mac, the system installed Ruby will be used (hence the sudo).

Now modify campfire.json with your campfire account (or accounts).

Finally, open Preferences in Pomodoro, go to the Scripts tab, and paste the contents of start.scpt in the Start textarea (and stop.scpt End).