E-Mail / RSS checking LED

Hy,

I just finished a LED Cube and thought LED's are good signes. How can I make my Arduino uno recieve E-Mails and RSS feeds, so he can lite a LED? Is USB ok or should I bui the ethernet shield?

Thanks
Robohac

I found a Video, but there isn't written how he made this:

Can't anyone help me?

I suppose that he said into video that PC sends info into arduino.
So you could write python script that checks your email and then send results with serial into your arduino sketch.

-Jussi-

but how can I make the Scetch and the .py script comunicate?

Over the serial port?!!

A sample python sketch that reads from the arduino may help to get you started

import sys, os, serial

def monitor():

    ser = serial.Serial(COMPORT, BAUDRATE, timeout=0)

    while (1):
        line = ser.readline()
        if (line != ""):
            #print line[:-1]                 # strip \n
            fields = line[:-1].split('; ')
            ID = fields[0]
            # print fields
            print "device ID: ", ID
            # write to file
            text_file = open("Pdata.log", "w")
            text_file.write(line)
            text_file.close()

        # do some other things here

    print "Stop Monitoring"


""" -------------------------------------------
MAIN APPLICATION
"""  

print "Start Serial Monitor"
print

COMPORT = 4;
BAUDRATE = 115200

monitor()

but the arduino uno haves only a usb port should I replace serial with usb?

but the arduino uno haves only a usb port should I replace serial with usb?

It has a USB to serial converter on board so it appears as a serial port to your computer.

woops sorry I didn't know that

Came across this one today : - Checking email with Python - Stack Overflow
should get you started.

is that pithon 2 or 3 ?

it compiles under my python 2.7
In the comments there is a ref to - http://snippets.dzone.com/posts/show/4024 - which is a more elaborate checker, includes sending mail too.

Robohac:
Hy,

I just finished a LED Cube and thought LED's are good signes. How can I make my Arduino uno recieve E-Mails and RSS feeds, so he can lite a LED? Is USB ok or should I bui the ethernet shield?

Thanks
Robohac

wihtout ethernet shield, your PC must be always on to retrieve emails and send them to Arduino.
With ethernet shield you don't need any PC at all.

But with ethernet shield I need a server. Or not? How should I programm that?

How should I program that?

With difficulty - You would need some kind of server (but if you have an email address then you probably have one you can access). You can probably monitor an imap server for new messages.

Robohac:
But with ethernet shield I need a server. Or not? How should I programm that?

If you do not need active pages (ASP, PHP,...), Arduino is the server: it reads request over the network, and it sends HTML pages as replies.
You can program Arduino in such a way that upon connecting to its IP from remote, it will reply with a web page containing a form which shows text and buttons; you click a button, and something is turned on/off at home. :slight_smile:
If the page is very simple, it can fit in the little onboard memory. If you want to "serve" images and video, yuo'll need a microSD slot to hold the data.

you click a button, and something is turned on/off at home.

I was thinking more of without having a computer on all the time.

mowcius:

you click a button, and something is turned on/off at home.

I was thinking more of without having a computer on all the time.

Then you definitely need an eth shield.
Just decide if you want to make availabale large files (microsd slot required) or just some data.

Well I don't - the OP does.

Just decide if you want to make availabale large files (microsd slot required) or just some data.

You really haven't read the thread properly have you?

They want to have Email notification...

What is Python (Beside a language) and how do I get started? I kind of want to do the same thing.