Listener for Messages

Discussion in 'Mac Programming' started by Strivelli, Sep 24, 2012.

  1. Strivelli macrumors newbie

    Joined:
    Apr 18, 2009
    #1
    Hello everyone,

    I'm just starting to do some basic playing around with some microcrontrollers and decided to build an electric door lock with a stepper motor driving a deadbolt.

    Here's my setup:

    I have an Arduino microcontroller connected (via USB) to a stationary iMac on my desk. I wanted my driver of this setup to be a listener for iMessages from a specific Apple ID with some type of command such as :unlock or :lock or :autolock etc.

    So, I need to run a listener for iMessages (growl comes to mind) that can take data from each incoming iMessage on the machine and process it for certain information.

    If I can get the data out, I can use a python script to process the data and send the necessary command out to the Arduino over USB.

    Any suggestions? There may be an easy AppleScript, I'm just not too familiar with the language and whatnot.

    Strivelli
     
  2. MACza macrumors member

    Joined:
    May 10, 2011
    #2
    Nice idea!

    Great idea! Would be great to automate some stuff in the home while on holiday and just to send a FREE iMessage to my MAC to interact with it.

    Looking forward to seeing some responses as I am now also keen to see how it could be done - I also don't know applescript yet... :(
     

Share This Page