touchOsc plus Arduino

Notes

http://hackaday.com/2011/03/31/using-touchosc-with-your-projects/

Processing + Arduino + touchOSC

uses the p5 library in processing

http://dangerousprototypes.com/2012/01/28/processing-arduino-touchosc/

http://www.urimicrofluidics.com/index.php/arduino/56

This post was the key to making Arduino+EthernetShield work with touchOSC. Without using Processing as an intermediary.  Got it working  tonight and will update this post with details.

http://arduino.cc/forum/index.php?topic=137549.0

 

Cosm with Max

update 6/2014: Cosm is now Xively. Have not re-tested examples below. There is a working Twitter example at internet sensors projects: https://reactivemusic.net/?p=5859

original post

notes

Today I was finally able to get this working. Reading a Cosm (Pachube) feed from curl and from Max. Here is an example that works in curl: (replace API-KEY with actual key)

curl http://api.cosm.com/v2/feeds/76490/datastreams/Power.xml?key=API-KEY

You can get JSON responses by leaving off the .xml extension or replacing it with .json

Its critical to use “key=…” not “X-ApiKey=…” like in the cosm documentation, or you will get permission errors from curl and Max.

I was also able to get the Max project called “pachube report” from Nicholas Marechal to work (requires jasch and cnmat externals)

http://cycling74.com/toolbox/pachube-tools/

This patch uses the typical jit.uldl and jit.textfile objects and some regexp parsing tricks.

Next trick will be creating a feed and sending it to Cosm.