^WeSt commented on a Page, Weather script for mIRC  -  Oct 08, 2013

The 5.4 version has an bug into the !weather command, i use !weather Athens, Greece with my SAME api key but the resault is location not found i had a backup of 5.3 and i restore it and i use !weather Athens, Greece and the resaults were correct, so please re-check the 5.4 version!

^WeSt  -  Oct 08, 2013

ERRORS:

I use all commands (with no parameters) => * /sockopen: insufficient parameters (line 224, script4.ini)

Also all commands are not working on me => Location not found

Also one suggestion to add BOLD on output messages, or an %wu_bold option to enable/disable it!

  • Thanks!
eqrunner  -  Oct 08, 2013

-You have me stumped on this one. Line 224 is the sockopen command. And nothing has changed with that.

 sockopen wunderground %wu_host 80
(sockopen wunderground api.wunderground.com 80)

-I have changed 5.41 to now show the error from the info. Try running this and send me back what errors you are recieving.
-If I was to add a bold option, Which part of the messages would I be bolding?

^WeSt  -  Oct 08, 2013

Well before when i c/p the new code (5.4) without changing my KEY and using !weather AXD it said me that Location not found now when i c/p the new (5.41) have done the same told me that i have wrong key setted, ( I HAVE NOTHING CHANGED )

Anyway without changing nothing when i set the new KEY it was working good into the 5.41 version.

Now about the BOLD i mean something like this:

!weather AXD
[westor]: Athens, Greece: Scattered Clodes and 69.6°F/20.9°C

and the error messages too: [westor]: Error, this key does not exist!

^WeSt  -  Oct 08, 2013

Also in v5.41 i found some problems:

(08/Oct/2013 20:10:15) <@westor> !almanac AXD
(08/Oct/2013 20:10:19) <@RafaeLLa-v2> LGAL: Normal High: 70°F/21°C. Normal Low: 54°F/12°C.
(08/Oct/2013 20:10:20) <@RafaeLLa-v2> LGAL: Record High: / in - Record Low: / in

(08/Oct/2013 21:10:47) <@westor> !current Bah, India
(08/Oct/2013 21:10:48) <@RafaeLLa-v2> Bah, India: and 81°F/27°C | Heat Index: 82°F/28°C | Winds From the West at 6 MPH | Windchill: NA°F/NA°C | Pressure: in/mb | Humidity: 69% | Dew: 70°F/21°C | Visiblity: mi/km

(08/Oct/2013 21:10:16) <@westor> !w RUP
(08/Oct/2013 21:10:17) <@RafaeLLa-v2> Rupsi, India: and 73°F/23°C

(08/Oct/2013 21:10:42) <@westor> !time RUP
(08/Oct/2013 21:10:48) <@RafaeLLa-v2> Rupsi, India: Tue, 08 Oct 2013 23:39:50 +0530

(08/Oct/2013 21:10:15) <@westor> !almanac RUP
(08/Oct/2013 21:10:18) <@RafaeLLa-v2> Location Not Found. Try location near an airport.

(08/Oct/2013 22:10:11) <@westor> !w Athens
(08/Oct/2013 22:10:13) 19 Found. Please be more specific:
(08/Oct/2013 22:10:14) Option 1: Athens, AL. Country:
(08/Oct/2013 22:10:15) Option 2: Athens, AR. Country:
(08/Oct/2013 22:10:16) Option 3: Athens, CA. Country:
(08/Oct/2013 22:10:17) Option 4: Athens, GA. Country:
(08/Oct/2013 22:10:18) Option 5: Athens, . Country:
(08/Oct/2013 22:10:19) Option 6: Athens, IL. Country:
(08/Oct/2013 22:10:20) Option 7: Athens, IN. Country:
(08/Oct/2013 22:10:21) Option 8: Athens, LA. Country:
(08/Oct/2013 22:10:22) Option 9: Athens, ME. Country:
(08/Oct/2013 22:10:24) Option 10: Athens, MI. Country:
(08/Oct/2013 22:10:24) Option 11: Athens, MO. Country:
(08/Oct/2013 22:10:25) Option 12: Athens, NY. Country:
(08/Oct/2013 22:10:26) Option 13: Athens, OH. Country:
(08/Oct/2013 22:10:27) Option 14: Athens, PA. Country:
(08/Oct/2013 22:10:28) Option 15: Athens, TN. Country:
(08/Oct/2013 22:10:29) Option 16: Athens, TX. Country:
(08/Oct/2013 22:10:31) Option 17: Athens, VT. Country:
(08/Oct/2013 22:10:32) Option 18: Athens, WV. Country:
(08/Oct/2013 22:10:32) Option 19: Athens, WI. Country:

(08/Oct/2013 22:10:08) <@westor> !w Greece
(08/Oct/2013 22:10:54) 55 Found. Please be more specific:
(08/Oct/2013 22:10:55) Option 1: Agrinion, . Country:
(08/Oct/2013 22:10:56) Option 2: Aktion, . Country:
(08/Oct/2013 22:10:57) Option 3: Alexandroupoli, . Country:
(08/Oct/2013 22:10:58) Option 4: Aliartos, . Country:

eqrunner  -  Oct 08, 2013

!almanac: There are empty slots, this is due to there is no information provided by wunderground (aka items don't exisit) I will see what I can do about "IF $null" type items. It will take a while as there is a lot of extra code to check "is there an variable| If so then send message| If not, then don't'

!current: Same thing. It is hard enough to get it to complete the entire msg %wu_chan portion. Let alone, checking in advance if it even exists. Same applies to metric vs imperial. I want to do something about it. There just adds in a long list of additional IF/Then statement I will need to add.

!almanac RUS: Simular issue I had before. There are multiple resuts for RUP when it comes to the almanac page. http://api.wunderground.com/api/553cdd0a841d3557/almanac/q/rus.xml. These things are unexpected, and hard to test every s location around. The almanac data is also very sparce an usually is only from a airport data log. In this case, RUP in almanac shows two results, even thou in !time it knows which one. This is unpredictable, but will keep this in mind.

!weather Athens, and !weather Greece. A City and State or City and Country is needed. Since you didn't specify, you got a response page with all the options. I will look at redoing this so you don't end up with 55+ messages. Testing from my side, it does say "Option 1: Agrinion, . Country: Greece" Not sure why yours does not. But it is listing all the parts of Greece that you can use.

^WeSt  -  Oct 09, 2013

Ok with the others i have just reported because i saw them.

Now about the !weather Athens command if you can see in the output display of 19 items does not say the Country: ?? this output message must be fixed, also the same with the !w Greece .

  • Thanks!
Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.