I want to have additional info right on the desktop, but I need some help from you guys.I will be searching further in the meantime, but will be more than happy if some people could help me solve some individual questions.

What I want to accomplish:

1) my name capitalized (I know it's easier to just put "Harm" there, but I want the script to be universal) Done, thanks ruger42!2) remove the first zero and the space in 09:05 pm. Done, thanks ruger42!3) I want the full date in English (so, not my native language), see lower Done, thanks ruger42!4) the weather, without capital letters, see lower Done, thanks ruger42!5) a counter for my emails, see lower Still looking for a Hotmail counter6) other system info Still looking for a Battery meter

So this is what I would like to see on my display

Good evening Harm, it's now 9:05pm.Today's Saturday the 6th of August 2011.

It's 14 degrees outside and the weather is mostly cloudy.You have 34 new emails, 34 in Hotmail and 0 in Gmail.

RAM: 20%CPU: 8%Battery: 100%

Ethernet: 192.168.0.2

External IP: 81.165.218.26

After that has been done, I will re-upload the script so everyone can use it.

Update:

Here's a zip with my scripts. Note that they will need to be modified, and you'll need toupdate bash in order to make them work properly.Scripts.zip5.31KB21 downloads

Posted 07 August 2011 - 08:34 PM

harmc0re

InsanelyMac Protégé

Members

82 posts

Gender:Male

ruger42! Thanks for the fast and great help! I sure didn't expect half of the things were going to be solved that fast!

I have some problems with the Gmail command you gave me,I can't get it to work, it gives nothing back.If I go to https://username:password@mail.google.com/mail/feed/atom/ in my browser, I see the RSS with 2 new emails, so I know I got the username and password right...

Posted 07 August 2011 - 09:06 PM

ruger42

InsanelyMac Geek

Donators

127 posts

Gender:Male

Location:South Florida, USA

ruger42! Thanks for the fast and great help! I sure didn't expect half of the things were going to be solved that fast!

I have some problems with the Gmail command you gave me,I can't get it to work, it gives nothing back.If I go to https://username:password@mail.google.com/mail/feed/atom/ in my browser, I see the RSS with 2 new emails, so I know I got the username and password right...

Don't know what to tell you, the Gmail code works perfectly for me as a single command or as part of the shell script:

Unfortunately I think you're out of luck with Hotmail - in order to get the number of unread emails you'd need to use IMAP, but Hotmail doesn't support that protocol, only POP3 which (from what I've read) doesn't provide the necessary functionality to retrieve such information. You can always forward your Hotmail messages to Gmail...

Unfortunately I think you're out of luck with Hotmail - in order to get the number of unread emails you'd need to use IMAP, but Hotmail doesn't support that protocol, only POP3 which (from what I've read) doesn't provide the necessary functionality to retrieve such information. You can always forward your Hotmail messages to Gmail...

If you do manage to figure it out let us know!

Okay, I found out that I had to change the output encoding setting in GeekTool to UTF8, allowing me to show the special symbols ↯ ⚡ and also the ° for degrees

And even better news: your battery meter works!

Sort of...

I had to switch the %10 and %5 because my battery percentage went from 100% to 101%, 102% when discharging (Which would be cool if it was true )

I also changed the "%.2f%%" to "%.0f" because I didn't want to show decimals, and I already added a % later in the script.

Yeah, about Hotmail, I was also thinking that. ):I have been looking for a script that could ask Mail.app if there are any new emails in Hotmail,but I only found scripts that tell me the total number of new emails so far.