Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Weather


  • This topic is locked This topic is locked
76 replies to this topic
polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Note: this script has been discontinued

Gets worldwide weather information from Yahoo! Weather.

Posted Image

Download

Atomhrt
  • Members
  • 124 posts
  • Last active: Nov 13 2006 09:18 PM
  • Joined: 02 Sep 2004
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... 8)
I am he of whom he speaks!

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Thanks, I just fixed the two bugs and updated the download link :)

Atomhrt
  • Members
  • 124 posts
  • Last active: Nov 13 2006 09:18 PM
  • Joined: 02 Sep 2004
Cool. :D

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

I also like the "Click here for further forecast information..." thing.
I am he of whom he speaks!

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Quite funny, we have bad weather here right now Posted Image

corrupt
  • Members
  • 2558 posts
  • Last active: Nov 01 2014 03:23 PM
  • Joined: 29 Dec 2004
Very nice design Titan :) . 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...AXX0345._c.html

I gave it this url: http://weather.yahoo...t/CAXX0345.html

Atomhrt
  • Members
  • 124 posts
  • Last active: Nov 13 2006 09:18 PM
  • Joined: 02 Sep 2004
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!

corrupt
  • Members
  • 2558 posts
  • Last active: Nov 01 2014 03:23 PM
  • Joined: 29 Dec 2004
Hmm... it seems to work ok if I I enter it as http://weather.yahoo... ... ce_units=1 :) . An option to enter the list of locations would be great :) .

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012

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...AXX0345._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.

Kaiwen
  • Members
  • 18 posts
  • Last active: Oct 18 2007 01:05 PM
  • Joined: 23 Aug 2005

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

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
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 :p

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

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


TucknDar
  • Members
  • 47 posts
  • Last active: Jun 08 2011 04:48 PM
  • Joined: 07 Jan 2006

Anymore bugs, let me know :p

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:
Menu, Tray, Icon, \SnowCloud.ico
should be:
Menu, Tray, Icon, SnowCloud.ico
(note the backlash)

Great script, btw!

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Thanks, bug removed.

Grendel
  • Members
  • 25 posts
  • Last active: Mar 17 2007 07:11 PM
  • Joined: 18 Nov 2005
Thanks Titan for this nice proggy, great work :D

...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

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
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).