How do I make my UDOO Quad send me an email?

Discussion in 'General Programming Discussion' started by TopherT1, May 13, 2014.

  1. TopherT1

    TopherT1 New Member

    Joined:
    Nov 20, 2013
    Messages:
    12
    Likes Received:
    0
    I am interested in setting up a project where a motion sensor is tripped and an email is sent to my GMAIL account. I am new to Linux so I am not sure where to start. Can anyone help guide me to the commands needed to accomplish this?
     
  2. peter247

    peter247 New Member

    Joined:
    Mar 10, 2014
    Messages:
    263
    Likes Received:
    2
  3. francescomm

    francescomm Member

    Joined:
    Dec 14, 2013
    Messages:
    80
    Likes Received:
    4
    Install PHP, configure it so the standard mail() function works, or better use some classic mail library. Download and compile the Pilot.ino sketch to the Arduino due.
    https://github.com/francescom/Pilot.ino
    Then start from the pushbutton or the testpilot examples. They will make a good starting point for a looping script (never ending) that may read sensor and add the email sending part. Remember to check for changes in conditions (if sensor >threshold and before it wasn't for at least some time) not just send an email every time the condition is met or you will get 10000s of mails easily.
     

Share This Page