Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
caleywoods committed Aug 19, 2011
1 parent 73f08d1 commit 65719ba
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gmail.rb
Expand Up @@ -6,9 +6,6 @@
# make these your own
USERNAME = "your_username@gmail.com"
PASSWORD = "your_password"
PROTO = "https://"
SERVER = "mail.google.com"
PATH = "/gmail/feed/atom"

# You can find this in the arduino
# or antipasto IDE under Tools > Serial Port
Expand All @@ -35,9 +32,9 @@ def get_mail

res = http.request req

feed = Nokogiri::XML(res.body)
feed = Nokogiri::XML res.body

count = mail_count(feed) #any new mails?
count = mail_count feed #any new mails?

if count > 0
ser.write 'Y' # yes there is new mail
Expand Down

0 comments on commit 65719ba

Please sign in to comment.