Help with ambient light sensor?

    Jun 23 2006 | 1:50 am
    Amit Singh just published code to access the ambient light sensor readings on Powerbooks/Macbooks that have them:
    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.)

    • Jun 23 2006 | 4:39 am
      No help here, but good to see you lurking on the list.
      Peter McCulloch
    • Jun 23 2006 | 7:57 am
      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.