Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Script to check gmail account with LED notification (Laptop users...)

  1. #11
    Join Date
    May 2007
    Location
    Crete, Greece
    Beans
    582

    Re: Script to check gmail account with LED notification (Laptop users...)

    Thanks for this thread! This is an amazing idea

  2. #12
    Join Date
    Oct 2007
    Location
    wrong planet
    Beans
    746
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Script to check gmail account with LED notification (Laptop users...)

    Don't forget to install blinkd to use this script.

    sudo apt-get install blinkd

    I use it because it works with the leds on desktop keyboards, not just laptops. The mled software doesn't work for desktops.
    Linux Advanced Guides and News!
    http://linuxinnovations.blogspot.com/

    Green means go, Yellow means faster, Red means don't stop.

  3. #13
    Join Date
    Sep 2006
    Beans
    12
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Script to check gmail account with LED notification (Laptop users...)

    Sorry to dig up this old thread, but I just came across this and thought it was a great idea. I had trouble getting this script to work for a domain account though, so I figured I'd share the updated script in case anyone else was trying to do the same thing.

    The user/password had to be pulled out of the URL. Since they contained '@', they were confusing wget. Use the following instead. Note: be sure to surround your username/password in quotes.
    Code:
    un="user@domain.com"
    pw="password"
    mails="$(wget --secure-protocol=TLSv1 --http-user=${un} --http-password=${pw} \
    --timeout=3 -t 1 -q -O - \
    https://mail.google.com/mail/feed/atom \
    --no-check-certificate | grep 'fullcount' \
    | sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
    
    <insert chosen flavor of alerting of emails>
    Also, I've found that the mail/feed/atom/important tag always returns a fullcount of 0, even with unread messages. I'm not sure why this is, but it's annoying. Anyone have ideas about it?

  4. #14
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Script to check gmail account with LED notification (Laptop users...)

    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •