StealthBot.net: Weather - StealthBot.net

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Weather USA & Canada

#1 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted February 11, 2010 - 07:52 PM

Name: Weather
Author: AwaKening
Version: 2.1.4

Description:
Check weather/forecast for USA or Canada via Accuweather.com

Settings:
floodcontrol (Delay in seconds between requests)
Default = 12

Commands:
weather <zipcode/postalcode/ or city,state> <scale (optional)>
Current conditions and hour by hour

zipcode <city, state>
Look up a zipcode for city, state

Examples:
/weather 84075
/weather 84075 c
/weather denver, co c
/zipcode anaheim, ca

Additional Notes:
If scale is not specified, then the default for anything in the USA will be Farenheit. Canada will default Celcius. Scale can be abbreviated to F or C.
If your city, state or province can't be found, then try the zip or postal code instead.

ChangeLog:
' 2.1.4 updated 11/29/2011
'     - Updated url_usa global
'     - Now faster using only 1 request rather than 2
'     - Now using xmlhttp rather than Inet (may update to use asyncronously later)
' 2.1.3 updated 04/25/2010
'     - Reparsed updated source code from accuweather.com
' 2.1.2 updated 05/22/2010
'     - Fixed another error with weather checks at night
' 2.1.1 updated 05/17/2010
'     - Fixed a bug when checking weather after 9pm (Nights)
' 2.1.0 updated 03/22/2010
'     - Reparsed accuweather.com due to updated site
'     - Merged forecast and weather commands into the same command
'     - Changed the weather/forecast response
' 2.0.1 updated 01/26/2010
'     - Added new function and sub calls to clean up code
' 2.0.0 updated 01/18/2010
'     - Converted to new script format
'     - Call to create commands
'     - Settings moved

Attached File(s)



#2 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted March 02, 2010 - 06:16 PM

Accuweather.com just decided to update their site after about 2 years :(

This script no longer works correctly as a result. The layout kinda sucks to parse now and I'm not sure I'll be updating this. I maybe look into other sites later this week, but don't hold your breath.

#3 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted March 22, 2010 - 06:21 PM

Updated and tested :)

Weather and Forecast will both work, but they now both return the same information. Hopefully the site doesn't change again for another 2 years or more.



#4 User is offline   shrek15001 Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 21
  • Joined: October-23 09

Posted April 18, 2010 - 09:40 AM

you might want to update your weather script again a new error has come to

Scripting runtime error '429' in weather: (line 35; column 3)
ActiveX component can't create object
Offending line: >>

i tryed fixing the error my self and could not

this is the line now
Private URL_canadaC '// String - URL for canadian current condition
and i tryed it this way
Private URL_canadaC '// String - URL to search for canadian current condition
same thing happoned

here are a site that might work
http://www.theweathe...ref=homecountry

#5 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted April 18, 2010 - 04:09 PM

That error doesn't match up with line 35. Are you sure that you don't have another weather script loaded?

I tested and the script still works perfectly.

#6 User is offline   DarkSephiroth Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: October-13 09

Posted April 22, 2010 - 08:19 AM

Scripting runtime error '9' in weather: (line 132; column 2)
Subscript out of range: '[number: 5]'
Offending line: >>
Scripting runtime error '9' in weather: (line 132; column 2)
Subscript out of range: '[number: 5]'
Offending line: >>

#7 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted April 22, 2010 - 05:04 PM

Are you using the most current version? I'm not getting any errors.

If your version is up to date, please give a little more detail. I need to know zip or city state you are searching for.

#8 User is offline   DarkSephiroth Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: October-13 09

Posted April 24, 2010 - 02:39 PM

It appears to have fixed itself? =D

-chill

#9 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted May 18, 2010 - 04:55 AM

Update 2.1.1 to fix an error when checking in the late evening.

#10 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted May 21, 2010 - 06:56 AM

2.1.2

Still had bugs with night time checks. I think it's all good now.

#11 User is offline   shrek15001 Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 21
  • Joined: October-23 09

Posted June 17, 2010 - 03:32 AM

kk found out why i had errors on mine i didnt have activex downloaded from microsoft error 35 is asking for msxml

#12 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted April 25, 2011 - 05:28 PM

Updated for a slight source change that was causing an error.

#13 User is offline   consequence Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: September-17 11

Posted October 28, 2011 - 10:44 AM

thanks

#14 User is offline   shrek15001 Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 21
  • Joined: October-23 09

Posted November 27, 2011 - 06:47 AM

im getting an error when i go to use the weather command this is th error i get
[01:43:28 AM] Scripting runtime error '9' in weather: (line 122; column 1)
[01:43:28 AM] Subscript out of range: '[number: 1]'
[01:43:28 AM] Offending line: >>
[01:43:28 AM] Scripting runtime error '9' in weather: (line 122; column 1)
[01:43:28 AM] Subscript out of range: '[number: 1]'
[01:43:28 AM] Offending line: >>
and this is the line number that i traced down for line 122
humidity = Split(Split(Content, "Humidity: <strong>")(1), "</strong>")(0)

a little help on what this means could be useful i even have activex installed

#15 User is offline   PhiX Icon

  • Notice the ownage.
  • Icon
  • Group: Administrators
  • Posts: 8,388,607
  • Joined: July-31 09

Posted November 27, 2011 - 06:16 PM

Considering the error the weather site most likely changed. The script would have to be updated to the new structure.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#16 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted November 28, 2011 - 03:01 AM

I'll see if I get time to fix it tomorrow.

#17 User is offline   consequence Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: September-17 11

Posted November 29, 2011 - 07:04 PM

View PostAwaKening, on November 27, 2011 - 07:01 PM, said:

I'll see if I get time to fix it tomorrow.

awakening PLEASE DO! our clan loves your scripts especially this one! :(

#18 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted November 30, 2011 - 01:15 AM

Updated 2.1.4

#19 User is offline   Irrelevant Icon

  • Resident Wonder
  • PipPipPip
  • Group: Senior Members
  • Posts: 156
  • Joined: October-07 09

Posted November 30, 2011 - 03:25 AM

thank you :)

after 1st attempt this is message i recieved

Quote

10:19:04 PM] Scripting runtime error '-2146697211' in weather: (line 303; column 2)
[10:19:04 PM] The system cannot locate the resource specified.

[10:19:04 PM] Offending line: >>
[10:19:05 PM] Scripting runtime error '-2146697211' in weather: (line 303; column 2)
[10:19:05 PM] The system cannot locate the resource specified.

[10:19:05 PM] Offending line: >>
[10:19:05 PM] Scripting runtime error '-2146697211' in weather: (line 303; column 2)
[10:19:05 PM] The system cannot locate the resource specified.

[10:19:05 PM] Offending line: >>

STEALTH Bot 2.7 Build whatever ----> there is no substitute !

#20 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted November 30, 2011 - 05:35 AM

View PostIrrelevant, on November 29, 2011 - 08:25 PM, said:

thank you :)

after 1st attempt this is message i recieved


Working fine for me. I'm thinking that error is something related to your .dll
You could try changing "msxml2.xmlhttp.6.0" to "microsoft.xmlhttp", which is an older version

Search for it in the script

#21 User is offline   Irrelevant Icon

  • Resident Wonder
  • PipPipPip
  • Group: Senior Members
  • Posts: 156
  • Joined: October-07 09

Posted November 30, 2011 - 05:12 PM

thank you, all is well now. I installed the script on a bot i have on a diff cpu and all works great. tyvm
STEALTH Bot 2.7 Build whatever ----> there is no substitute !

#22 User is offline   shrek15001 Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 21
  • Joined: October-23 09

Posted December 01, 2011 - 12:46 PM

thx for the update its working great now

#23 User is offline   StyxX Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: December-09 11

Posted December 09, 2011 - 10:14 AM

Hi i searched long time for a european version of this one? Is there one out there? I´m a noob with this bot i downloaded it 1 day ago. ^.^ thx for help.

#24 User is offline   OutOfMana Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: December-09 11

Posted December 09, 2011 - 02:58 PM

thanks so much :D

#25 User is offline   OutOfMana Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: December-09 11

Posted January 17, 2012 - 03:29 AM

is this outdated again :(

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users