AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Weather
Goto page 1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Titan



Joined: 11 Aug 2004
Posts: 5067
Location: imaginationland

PostPosted: Sat Sep 10, 2005 5:04 pm    Post subject: Weather Reply with quote

Note: this script has been discontinued

Gets worldwide weather information from Yahoo! Weather.



Download


Last edited by Titan on Mon Apr 21, 2008 7:50 pm; edited 9 times in total
Back to top
View user's profile Send private message Visit poster's website
Atomhrt



Joined: 02 Sep 2004
Posts: 128
Location: Sunnyvale

PostPosted: Sat Sep 10, 2005 8:08 pm    Post subject: Reply with quote

Titan, this looks really cool and will be a keeper.

I added one line:
IniRead, Interval, % SettingsFile, Settings, Interval, % 10 * 60 * 1000

Just before this line:
GuiControl, , DisplayTInteveral, % Floor((Interval / 1000 / 60))

Because, when I click on the Set button, it would display the INI value that it read when the program first started up.

There's probably a better way to address this, but I just did a quick fix to it.


BTW, this is a typo -> DisplayTInteveral and should be DisplayTInterval, right? At least it's consistent throughout the code... Cool
_________________
I am he of whom he speaks!
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5067
Location: imaginationland

PostPosted: Sat Sep 10, 2005 8:30 pm    Post subject: Reply with quote

Thanks, I just fixed the two bugs and updated the download link Smile
Back to top
View user's profile Send private message Visit poster's website
Atomhrt



Joined: 02 Sep 2004
Posts: 128
Location: Sunnyvale

PostPosted: Sat Sep 10, 2005 8:43 pm    Post subject: Reply with quote

Cool. Very Happy

I like how the system tray icon changes with the weather. If I see a hurricane, I'm leaving town. Wink

I also like the "Click here for further forecast information..." thing.
_________________
I am he of whom he speaks!
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5067
Location: imaginationland

PostPosted: Sat Sep 10, 2005 8:49 pm    Post subject: Reply with quote

Quite funny, we have bad weather here right now
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2397

PostPosted: Sat Sep 10, 2005 8:51 pm    Post subject: Reply with quote

Very nice design Titan Smile . It doesn't seem to work for a few locations though. Here's one example of one that doesn't seem to work: http://weather.yahoo.com/forecast/CAXX0345._c.html

I gave it this url: http://weather.yahoo.com/forecast/CAXX0345.html
Back to top
View user's profile Send private message Visit poster's website
Atomhrt



Joined: 02 Sep 2004
Posts: 128
Location: Sunnyvale

PostPosted: Sat Sep 10, 2005 8:54 pm    Post subject: Reply with quote

Yeah, I saw that and it made me think of a hurricane. It's cool how I can easily look at the weather in other places...
_________________
I am he of whom he speaks!
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2397

PostPosted: Sat Sep 10, 2005 8:57 pm    Post subject: Reply with quote

Hmm... it seems to work ok if I I enter it as http://weather.yahoo.com/forecast/CAXX0345_c.html?force_units=1 Smile . An option to enter the list of locations would be great Smile .
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5067
Location: imaginationland

PostPosted: Sat Sep 10, 2005 9:05 pm    Post subject: Reply with quote

corrupt wrote:
It doesn't seem to work for a few locations though. Here's one example of one that doesn't seem to work: http://weather.yahoo.com/forecast/CAXX0345._c.html
I just fixed that bug, download link updated sorry.

I was going to make a list for the weather in all areas available but they're so many. If you look at settings.ini, it's easy to manually add an entry so maybe you can add a few of your favourites.
Back to top
View user's profile Send private message Visit poster's website
Kaiwen



Joined: 23 Aug 2005
Posts: 18

PostPosted: Thu Sep 15, 2005 1:42 pm    Post subject: Reply with quote

corrupt wrote:
It doesn't seem to work for a few locations


Also didn't work for my location (Chiayi, Taiwan) until I added the "?force_units=1".

BTW, Titan -- there's a typo on your About... screen: "cortusey" should be "courtesy".

Nice program. Wish I were that proficient with AH scripts.

Lee Kaiwen,
Taiwan
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5067
Location: imaginationland

PostPosted: Thu Sep 15, 2005 5:04 pm    Post subject: Reply with quote

Thanks Kaiwen, I fixed the typo and the location bug - you can redownload using the link in my first post. Anymore bugs, let me know Razz

Updated, I finally fixed the add location bug (properly) - thanks to garry for telling me.
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
TucknDar



Joined: 07 Jan 2006
Posts: 47
Location: Oslo, Norway

PostPosted: Sun Jan 08, 2006 11:45 am    Post subject: Reply with quote

Titan wrote:
Anymore bugs, let me know Razz

Well, you asked for it... Probably wouldn't have found this if it wasn't for the fact that I live in Norway:
line 161 is:
Code:
   Menu, Tray, Icon, \SnowCloud.ico

should be:
Code:
   Menu, Tray, Icon, SnowCloud.ico

(note the backlash)

Great script, btw!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5067
Location: imaginationland

PostPosted: Sun Jan 08, 2006 4:06 pm    Post subject: Reply with quote

Thanks, bug removed.
Back to top
View user's profile Send private message Visit poster's website
Grendel



Joined: 18 Nov 2005
Posts: 25
Location: Germany

PostPosted: Sun Jan 15, 2006 11:53 pm    Post subject: Reply with quote

Thanks Titan for this nice proggy, great work Very Happy

...maybe you can take the "bigger" weather status pictures (.GIF-files)
from weather.yahoo.com (directly under the "5 Day Forecast")
for the GUI... the scaled icons are so ugly Wink
_________________
greets Grendel
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5067
Location: imaginationland

PostPosted: Mon Jan 16, 2006 1:58 am    Post subject: Reply with quote

I had that in mind in the first place but it would mean that the tray image would be different (because you cannot use a gif for the tray icon). I thought that keeping the images uniformed would mean easier usability. If you have any better icons I could replace the existing ones, I'll check for some aswell.

Edit: just updated the icons. The filesize has now increased by some 140kb. There are also some extra nice icons I left in the zip which you can use (by modding the script).
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group