RubyGems Navigation menu

twitterpunch 0.0.3

Twitterpunch =============== Twitterpunch is designed to work with PhotoBooth and OS X Folder Actions. When this script is called with the name of an image file, it will post the image to Twitter, along with a message randomly chosen from a list and a specified hashtag. If you call the script with the --stream argument instead, it will listen for tweets to that hashtag and download them to a specified directory. If the tweet came from another user, Twitterpunch will speak it aloud. Configuration =========== Configure the program via the `~/.twitterpunch.yaml` YAML file. This file should look similar to the example below. --- :twitter: :consumer_key: <consumer key> :consumer_secret: <consumer secret> :access_token: <access token> :access_token_secret: <access secret> :messages: - Hello there - I'm a posting fool - minimally viable product :hashtag: BestHalloweenPartyEver :handle: FassFord :photodir: ~/Pictures/twitterpunch/ :logfile: /Users/ben/.twitterpunch.log :sendsound: /System/Library/PrivateFrameworks/ToneLibrary.framework/Versions/A/Resources/AlertTones/tweet_sent.caf A skeleton configuration file, with access tokens from Twitter, can be generated by running the program with the `--genconfig` flag. Usage ========== ### Using OS X PhotoBooth 1. Start PhotoBooth at least once to generate its library. 1. Install the Twitterpunch Folder Action * `twitterpunch --install` * It may claim that it could not be attached, fear not. 1. Profit! * _and by that, I mean take some shots with PhotoBooth!_ #### Troubleshooting. 1. Make sure the folder action is installed properly 1. Use the Finder to navigate to `~/Pictures/` 1. Right click on the `Photo Booth Library` icon and choose _Show Package Contents_. 1. Right click on the `Pictures` folder and choose `Services > Folder Actions Setup` 1. Make sure that the `Twitterpunch` action is attached. 1. Install the folder action 1. Open the `resources` folder of this gem. * Likely to be found in `/Library/Ruby/Gems/2.0.0/gems/twitterpunch-#{version}/resources/`. 1. Double click on the `Twitterpunch` folder action and install it. * It may claim that it could not be attached, fear not. ### Using something else Configure the program you are using for your photo shoot to call Twitterpunch each time it snaps a photo. Pass the name of the new photo as a command line argument. Alternatively, you could batch them, as Twitterpunch can accept multiple files at once. [ben@ganymede] ~ $ twitterpunch photo.jpg ### Viewing the Twitter stream Currently Twitterpunch doesn't display photos directly. It simply downloads them and stuffs them into the configured `:photodir`. Twitterpunch will run on OS X or Windows equally well. Simply configure it on the computer that will act as the Twitter display and then run in streaming mode. Tweets that come from any other user will be spoken aloud. [ben@ganymede] ~ $ twitterpunch --stream There are currently two decent viewing options I am aware of. * Windows background image: * Configure the Windows background to randomly cycle through photos in a directory. * Hide desktop icons. * Hide the taskbar. * Disable screensaver and power savings. * Drawbacks: You're using Windows and you have to install Ruby & RubyGems manually. * OS X screensaver: * Choose one of the sexy screensavers and configure it to show photos from the `:photodir` * Set screensaver to a super short timeout. * Disable power savings. * Drawbacks: The screensaver doesn't reload dynamically, so I have to kick it and you'll see it reloading each time a new tweet comes in. Limitations =========== * It currently requires manual setup for Folder Actions. * It currently requires an external viewer, such as a screensaver. Contact ======= * Author: Ben Ford * Email: binford2k@gmail.com * Twitter: @binford2k * IRC (Freenode): binford2k

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.0.9 - October 19, 2017 (510 KB)
  2. 0.0.8 - December 12, 2016 (508 KB)
  3. 0.0.7 - December 11, 2016 (507 KB)
  4. 0.0.6 - December 11, 2016 (506 KB)
  5. 0.0.5 - November 06, 2014 (483 KB)
  6. 0.0.3 - October 31, 2014 (482 KB)
Show all versions (9 total)

Runtime Dependencies (4):

colorize >= 0
oauth >= 0
rubygame >= 0
twitter >= 0

Owners:

Authors:

  • Ben Ford

SHA 256 checksum:

6a252ed2c1067b2330d263caebca6e3ab529f8cb3f08e7f18d3b93ca1c74bfaf

Total downloads 19,238

For this version 2,246

Licenses:

N/A

Required Ruby Version: >= 0

Links: