This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- encoding : utf-8 -*- | |
# A simple script to search for tweets that contain certain hashtags and print them on a POS58 printer. | |
# Make sure the printer is connected and you can print by writing to /dev/usb/lp0 (or similar) | |
# | |
# Run `ruby ruby_pos58_tweetprinter.rb` for using the streaming API: instant printing. | |
# Run `ruby ruby_pos58_tweetprinter.rb get` for using the good old REST API. You can put this in a cronjob. | |
# | |
# Copyright (c) 2015 http://github.com/kriskbx |