This is a ruby version of the Max tweetCurl5 patch (which tweets via xively.com) described here:
https://reactivemusic.net/?p=5447
In this version, the Max patch communicates via OSC to a background server running in ruby. An advantage of this method is that both the patch and the server are compact and easy to understand. The Max patch does things in a Max way. And likewise with the ruby script.
Here’s a screen shot of the Max patch:
files
Max
- ruby-max-tweet.maxpat
ruby
- ruby-max-tweet.rb
The ruby script requires installation of the following gems
- patron
- osc-ruby
For example:
# gem install patron
authorization
- The xively.com feed id and api-key are embedded in ruby script
- To get this project to work you’ll need a Twitter account. And you’ll need to set up a device (feed) at xively.com and a ‘zap’ at zapier.com as directed in this post. It explains how to send tweets using triggers. https://reactivemusic.net/?p=6903
instructions
- Open the Max patch: ruby-max-tweet
- In a terminal window run the ruby script:
-
# ./ruby-max-tweet.rb
- In the Max patch, type in a tweet. Press the green button to send.
- When you have Tweeted enough, end the ruby server program by typing <ctrl-c>
download
The files for this project can be downloaded from the intenet-sensors archive at github