Posts Tagged ‘broadcaster’

how to make a public text box

November 7, 2011

publictextbox, put yourself in front of it and type something

a public text box is a basic information sharing utility for a shared space. in this case, it’s a twitter account associated with a specific machine in a shared space rather than a person(who could be anywhere).

we tried this on macosx and linux. windows not tested but should work fine afaik.

1) download software and libraries

Processing:, Control P5 Library:, Fullscreen library:, Twitter Java library, twitter4j-core-v#.jar,

2) the code

3) where to put things, this will vary slightly with your OS, but should look about the same. if you open processing and save the same sketch and then search for that it will probably be something like /Documents/Processing/sketch_023d

So you want to create a folder processing/publictextbox and publictextbox.pde will go in there. Then create /processing/publictextbox/code and controlP5.jar, fullscreen.jar, and twitter4j-core-version#.jar files will go in there.

file locations for processing scketch and libraries, will be a .txt file with keys in it too

4) register and get twitter keys, put keys into .pde code

5) test it out yo! do yer best debugginn.

6) make some keyboard modifications. maybe if you’re going to put this in a public place you should make a keyboard that has no ESC or CTL key so people can’t get out of the app once it’s running?

7) build a box. make it look nice. think ATM, public telephone, arcade game. get crafty and creative. i believe in you!

8) maybe you will have an auto shutdown and restart that will allow the installation to run long term without crashing as much?? see video for mac version of this. on linux it will be crontab. on windows the answer is ??

subscribe to the feed and watch the strange messages role in….!/publictextbox

could you make the same for something like a reddit/facebook/?? account?

some random notes about using old mac 10.4 machine…

Brooklyn Public Library Broadcaster

June 7, 2010

dell d630 running ubuntu 10.04 and cheese 2.30.1 [more info on specs]

Actual booth is not installed yet. Should be installed later this week.

Come down to the library and leave a video message of support as they are facing a $20 million budget cut. This broadcaster is focused around the idea of allowing visitors of the library a chance to voice their support and easily send messages to elected officials about the importance of the library. Lowering the barrier to entry for letter writing.

Howto: Youtube auto-upload script

March 3, 2010

So you’re making lots of movies and you want things to upload to youtube automatically without you having to do any heavy lifting? If you are comfortable with a little bit of terminal and command line stuff, no problem.

A few things you will need:
Gmail account and Youtube account. These will be linked. You can use one gmail account as the developer for multiple youtube accounts but each youtube account needs it’s own independent email address, and for multiple gmail accounts you might need to get some dummy address at or as an alternative email. Then get yourself a developer key while logged into your developer gmail account.

Python 2.6 is probably already installed. But if not, install that too.

We’ve gotten this working for MacOSX and Linux (ubuntu 9.10 and fedora 11 anyway).
It’s probably not too hard to get it working with Windows but we’ve never tried.

Files you need: at
edit login information for youtube and gmail accounts.
edit developer key. edit the keywords and description to fit your project. at
check the path.
Thanks to Sean Levin for writing these.

Gdata and Atom directories. They are zipped and downloadable here: Unzip and place into same directory as

Copy these files into whatever directory you will be uploading videos from.
You will now need to edit both of these files as noted above. Do you have a favorite text editor for simple code? We like smultron on mac and gedit or emacs on linux but any will do. Whatever music you like.

make sure both files are executable.

chmod 755
chmod 755

then try it out manually. from the video directory prompt try running the videochecker.
yourvideodirectory$ ./
Got Upload directory
You have a save directory
Not running
just before loop start
inside for loop
Uploading OMPD-20100301-20100302.mp4
uploader-log: running doit with the_time=2010-03-02T00:00:53 and the_filename=OMPD-20100301-20100302.mp4
uploader-log: created media_group
uploader-log: created youtube entry
uploader-log: created YouTubeService
uploader-log: attempting to find previous login token in token file
uploader-log: token file found
uploader-log: set login token to DQAAAHUAAA ...
uploader-log: trying login with captcha_token=None and captcha_response=None
uploader-log: login succeeded continuing on to upload
uploader-log: saving token (DQAAAHYAAABXiMigRrgi5 ... ) to token file (youtube_login_token.txt)
uploader-log: starting to upload video entry
uploader-log: completed upload of video entry
uploader-log: OMPD-20100301-20100302.mp4 uploaded to service successfully. Returning success to calling script (0)

if you’re getting an error with videochecker, try changing the first line to
#! /bin/bash -ex and it will output lots of extra info as it runs.

Ok. So you made it that far and now you want to set it up so it runs automatically each day or week or hour. Time for crontab. What is a crontab you ask? It’s sort of like asking your alarm clock to run a program instead of make a loud sound. It’s just a simple text file that you add some instructions to. The only problem is that you usually edit it in vi (a text editor). vi is nice and all but it’s rather confusing if you haven’t used it before. With vi, there are 2 modes, insert-text mode and command mode. 3 most useful key sequences are:
i – enter insert mode,
esc – exit insert mode
ZZ – save file and exit program.
Want to learn more:

In the terminal window (here your current path matters not), enter
crontab -e
type i to put the editor in INSERT mode. (see text in bottom left of editor)

– then make your crontab look like:
# m h dom mon dow command
*/10 * * * * /home/yourlinuxboxname/Videos/Webcam/

(which runs that script every 10 minutes.)

# m h dom mon dow command
* 3 * * * /home/yourmac/Movies/AUTOUPLOAD/

(which runs that script at 3am each evening. But only when the computer is awake.)

– hit the ‘esc’ key to get out of insert mode.

– then type ZZ to save and exit.

Let us know how this works for you and we will try to keep an updated version of these instructions.

Linux based broadcaster at the MAC in San Juan, Puerto Rico

January 23, 2010

Got a basic a broadcaster set up at the Museo de Arte Contemporaneo in San Juan Puerto Rico.

It’s our first linux based broadcaster. The webcam is a little slow but we are up and running with the computer and youtube page. They have to figure out exactly where the broadcaster will live in the museum but hopefully all will go well. If there are any linux hackers in San Juan who would like to help keep this installation alive, that would be great. The staff (Evita, Marlene and the rest) were very nice and helpful but not used to Linux or computer based installations in general. But we hopefully will be able to debug remotely if needed.

See links on the side of the blog for notes on the Linux install. I will try to keep these up to date as we experiment more with Linux. It was pretty straight forward except for some webcam issues and slight alterations to some of the scripts because the Apple scripting syntax is slightly different than the Linux sysntax.

Here is a short video of the system startup and video taking process.