New York, NY
Offline
Newbie
Karma: 0
Posts: 30
|
 |
« on: September 27, 2010, 09:58:24 am » |
This is a video I made about the Internet Meter, a basic Ethernet Shield project which displays different kinds of data from the internet on a panel meter. On YouTube: or on vimeo: I hope you enjoy! Matt Richardson
|
|
|
|
|
Logged
|
|
|
|
|
Milano, Italy
Offline
Faraday Member
Karma: 10
Posts: 3080
Sideralis Arduino!
|
 |
« Reply #1 on: September 27, 2010, 04:51:27 pm » |
Very detailed and well done video. Interesting for newbies! Congratulations, F
|
|
|
|
|
Logged
|
|
|
|
|
Vejen, Denmark
Offline
Edison Member
Karma: 7
Posts: 1177
RAWR! ^,..,^
|
 |
« Reply #2 on: September 27, 2010, 05:03:20 pm » |
Nicely explained! I tested your php code, and it seems to be working, just EXTREMELY slow on my nas. A response take about 30 seconds, like it is waiting for a timeout or something? Or have I done something wrong here? <?php $authhost="{imap.gmail.com:993/imap/ssl/novalidate-cert}"; if ($mbox=imap_open($authhost, "user@gmail.com", "password")) { $check = imap_mailboxmsginfo($mbox); if ($check->Unread < 10) { echo (25 * $check->Unread); } else { echo "255"; } } else { echo "0"; } ?>
|
|
|
|
|
Logged
|
|
|
|
|
New York, NY
Offline
Newbie
Karma: 0
Posts: 30
|
 |
« Reply #3 on: September 28, 2010, 05:20:29 am » |
Federico, thank you. I hope to have more video tutorials coming soon.
Bld, I'm not sure what could cause that other than a slow IMAP server. I see that you're from Denmark, is there a more local Gmail server to connect to, perhaps? I am by no means a PHP expert, so I would have a hard time troubleshooting that.
Matt
|
|
|
|
|
Logged
|
|
|
|
|
Stockholm
Offline
Newbie
Karma: 0
Posts: 34
Arduino rocks
|
 |
« Reply #4 on: September 28, 2010, 07:30:29 am » |
That was an extremelly good video!
But what cought my main interest was the ammeter. Where do get those?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Stockholm
Offline
Newbie
Karma: 0
Posts: 34
Arduino rocks
|
 |
« Reply #6 on: September 29, 2010, 10:48:49 am » |
Thanks!
It is so beautiful, and much more hardcore that any boring digital displays!
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 82
Posts: 8233
:(){:|:&};:
|
 |
« Reply #7 on: September 29, 2010, 12:23:24 pm » |
@ bld: better than PHP server is not easier just use SMTP protocol? there are hundred guide, and you will not need a server
|
|
|
|
|
Logged
|
|
|
|
|
Vejen, Denmark
Offline
Edison Member
Karma: 7
Posts: 1177
RAWR! ^,..,^
|
 |
« Reply #8 on: September 29, 2010, 05:43:35 pm » |
I am not sure I understand what you are saying lesto.
SMTP is for sending emails, I am trying to check how many unread I got in a mailbox. And how would I not need a web server to handle it? I found no articles at all, that didn't use a web server to handle the out world stuff.
|
|
|
|
« Last Edit: September 29, 2010, 05:44:15 pm by bld »
|
Logged
|
|
|
|
|
Melbourne, Australia
Offline
Full Member
Karma: 0
Posts: 226
Cyborg-in-progress
|
 |
« Reply #9 on: September 29, 2010, 05:58:55 pm » |
I think @lesto actually meant to use IMAP or POP, not SMTP. That's not a bad idea. You could implement a minimal POP client in Arduino that logs into your mailbox directly and gets the number of messages. In fact it would be so simple you wouldn't even need to execute any commands: just log in (APOP) as your user, and parse the response to get the number of messages. Have a look at the example here: http://en.wikipedia.org/wiki/Post_Office_Protocol#Dialog_exampleIf your mail server doesn't support APOP, your Arduino would need to log in and then issue a STAT command, but even that wouldn't be much harder. -- Jon Super-cheap Arduino prototyping shields: www.freetronics.com/protoshield-basic
|
|
|
|
|
Logged
|
|
|
|
|
New York, NY
Offline
Newbie
Karma: 0
Posts: 30
|
 |
« Reply #10 on: October 02, 2010, 05:17:07 pm » |
For e-mail unread counts, the Arduino can certainly do it without the proxy server. The first version of this meter was to get unread item counts from Google Reader, which I don't think would have been easy without a PHP go between.
|
|
|
|
|
Logged
|
|
|
|
|
|