Hack: Get better Growl messages w/ Campfire content
|
|
Until the next version of Pyro is released (if ever!), here’s a workaround that adds better Growl messages, with the content of the actual chat, rather than just a generic “go check the campfire” message. This Cheers, http://olddougnewtricks.blogspot.com growler = Growl.new “localhost”, “ruby-growl”, [“ruby-growl Notification”], nil, “your UDP growl password” campfire = Tinder::Campfire.new ‘yourCampfireSubdomain’ room.listen do |m|
if !m.nil? and m[:message].size > 1
growler.notify “ruby-growl Notification”, m[:person] + ” @ ” + room.name, m[:message]
end |
|
|
Here’s another way in addition to this fine solution that runs as a GreaseKit script under a campfire app created with Fluid, instead of a running a separate service. http://userscripts.org/scripts/show/22891 Install instructions on the script homepage |