Help with ambient light sensor?
Amit Singh just published code to access the ambient light sensor readings on Powerbooks/Macbooks that have them:
http://osxbook.com/book/bonus/chapter10/light/
(Figures 2 and 3)
I got it working in Terminal, and I get a seemingly successful "done" bang from the right outlet of Bill Orcutt's shell object in Max, but I don't get anything from the left (stdout) outlet.
Can anyone help me get this data into Max? Thanks!
(By the way, my machine is an older but still all-silver 15" Powerbook (FW800). The sensors are apparently right near the power button on the right side and directly across from it on the left side.)
JM
No help here, but good to see you lurking on the list.
Peter McCulloch
Try running the shell command with JAVA's stdin/stdout capability.
It's much more flexible than the shell object as you'll be able to do
what you want with the results and potentially pipe them into another
process. To do this, you just need to make a simple mxj.
wes