egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DragnLord's weather script
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 22, 23, 24  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Thu May 04, 2006 7:19 pm    Post subject: * Bug Fix * Reply with quote

3.6-a released to fix country code bug
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri May 05, 2006 3:19 am    Post subject: teeny tiny fixes/suggestions Reply with quote

Just a note to point out a typo or 2, and a suggestion.

In the top comments, you're still missing the [-s] option in the list, should be:

## Usage: .wz [-d] [-o] [-u imc] [-s][-t] [-p] [-short] [help] <city,state|zip> [country]

and further down, where -s is explained, sunset is spelled wrong =)

Also, some responses are sent by NOTICE, perhaps these should use the wz_msg_reply type that is defined? I usually change all the NOTICE to PRIVMSG to make it consistent (although it looks the same in my client, I don't use mirc Smile

Once again and as always, thank you very much for keeping this script alive and doing a fine job Smile
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri May 05, 2006 3:27 am    Post subject: oops, where's canada? =) Reply with quote

Ohh, I just noticed, canada is missing from the country list? Do we hate them for hockey, or for Anne Murray? <grin>
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri May 05, 2006 3:58 am    Post subject: Reply with quote

Might be helpful if you go on Dragons server and show them.

First post states 'The script contains the channel and IRC network to report bugs and requests to.'
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri May 05, 2006 4:06 am    Post subject: Reply with quote

Mea culpa
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri May 05, 2006 8:58 am    Post subject: Canada Reply with quote

Script updated, wrong list was included.
No version change.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri May 05, 2006 9:59 pm    Post subject: multiple matches prob? Reply with quote

Well, I don't know if the bots on #weather @ shell-net does logging for submitting bug reports, and a written record here prolly won't hurt, so I'm posting this here as well =)


With the new additions to the ctlist/countries for australia, if I try to do like, !wz sydney au, it says there's multiple matches. Being that I'm american and we're stupid about geography, I don't know australia's regions and provinces, so perhaps the script should accept the 1st match of 'au' unless a more specific string is given, (eg, AU-SA)?

The change confused a few other people on the channel too, since we're used to using <cityname, au>
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri May 05, 2006 10:16 pm    Post subject: Reply with quote

just need to add an -exact to the match
for an easy fix, remove the listings with extended code for now
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri May 05, 2006 10:31 pm    Post subject: Reply with quote

rosc2112 wrote:
The change confused a few other people on the channel too, since we're used to using <cityname, au>


rosc2112 wrote:
Being that I'm american and we're stupid about geography, I don't know australia's regions and provinces.

NSW, VIC, ACT, SA, NT, QLD, WA & TAS (all States as we're a Federation). Smile

Anyway, I am endeavouring to downgrade this script to a version that actually once worked! Last version to function correctly was weather3.5.9-a.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM


Last edited by Alchera on Fri May 05, 2006 11:01 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri May 05, 2006 10:47 pm    Post subject: Reply with quote

Alchera wrote:
Quote:
<Almy> Sorry no matches for usa
<Almy> Sorry, us is not supported. Try !country <country> or /msg Almy !country <country> to find your 2 letter country code.


"RTFM" Rolling Eyes
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri May 05, 2006 10:54 pm    Post subject: for those having trouble reading how to use the script Reply with quote

Code:
Usage: .wz [-d] [-o] [-u imc] [-t] [-p] [-short] [help] <city,state|zip> [country]
      or /msg bot .wz [-d] [-o] [-u imc] [-t] [-p] [-short] <city,state|zip> [country]

     state should be the two letter state code
     country defaults to US and is not needed for US weather


Don't complain that the use of "us" as a country code does not work, it's in the instructions not to use it.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri May 05, 2006 11:02 pm    Post subject: Reply with quote

Read my *edited* post! Wink

I am aware the script does not use "usa/us" even though wunderground.com apparently does.

I was part way through editing/posting when I got sidetracked re-testing last two script releases before settling on using 5.9-a (again); at least we can once more do:
Code:
!wz sydney au

.. etc Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM


Last edited by Alchera on Fri May 05, 2006 11:10 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri May 05, 2006 11:05 pm    Post subject: Reply with quote

downgrade if you want to, new script has been posted for a while (before your post about "us" user errors)
3.6-b has no problems with Aussie requests.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri May 05, 2006 11:33 pm    Post subject: Reply with quote

DragnLord wrote:
just need to add an -exact to the match
for an easy fix, remove the listings with extended code for now


I'm not sure where the -exact option would go, I only see one lsearch in the script and that already uses the -exact option. But in the meantime I did remove the extended codes.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri May 05, 2006 11:37 pm    Post subject: Reply with quote

Alchera wrote:

NSW, VIC, ACT, SA, NT, QLD, WA & TAS (all States as we're a Federation). Smile


Well, that doesn't tell me what cities are in which State.

Alchera wrote:

Anyway, I am endeavouring to downgrade this script to a version that actually once worked! Last version to function correctly was weather3.5.9-a.


This version works, just have to remove the extra States/Regions for the moment. Or learn Oz geography I guess Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 22, 23, 24  Next
Page 7 of 24

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber