This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

incith:weather (2.8p) (Dec. 18th, 2008)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

incith:weather (2.8p) (Dec. 18th, 2008)

Post by incith »

Newest versions of my scripts are always available @ incith.com if they are not yet available on the Tcl archive.

Code: Select all

#  2.8p: fix for public_to_private not working.                       #

Code: Select all

#  2.8o: they made units cookie based, fix to compensate.             #

Code: Select all

#  2.8n: windchill fix                                                #

Code: Select all

#  2.8m: more small fixes and updates                                 #

Code: Select all

#  2.8L: forecast modified for unknown change, capital L for LOLS!    #
#  2.8k: added longitude & latitude back (optional, show_lat_lon var) #
#        major improvements to multiple results.                      #
#        forecast will show the % chance of precipitation.            #
#        script was fetching mobile more often than it needed, fixed. #

Code: Select all

#  2.8j: fixes: temp, dew point, wind speed, better mobile backup.    #
Last edited by incith on Fri Dec 19, 2008 12:32 am, edited 54 times in total.
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

-link expired-
Last edited by incith on Mon May 15, 2006 8:39 pm, edited 2 times in total.
L
Luniz2k1
Voice
Posts: 19
Joined: Wed Sep 17, 2003 12:32 am

incith:weather v1.9_r3 not working

Post by Luniz2k1 »

Could not fetch the current temperature. Seems that the format of the website has changed again.
F
Fubar
Voice
Posts: 7
Joined: Mon Feb 27, 2006 9:40 am

Post by Fubar »

i get the same , although forecast still works
L
Luniz2k1
Voice
Posts: 19
Joined: Wed Sep 17, 2003 12:32 am

Post by Luniz2k1 »

Yes, the forcast does still work. Should have mentioned that.
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Hello all. Here is an updated release for now, since egghelp has not updated yet.

-link expired-
Last edited by incith on Sun Mar 05, 2006 4:50 am, edited 1 time in total.
L
Luniz2k1
Voice
Posts: 19
Joined: Wed Sep 17, 2003 12:32 am

Post by Luniz2k1 »

Thank you.
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

I've created 1.9_r5, which will fetch the top result it finds from a multiple results list.

So if you search for: !weather rome, italy

Instead of "More than one result found.." it will now display the weather, etc.

-link expired-
Last edited by incith on Sun Mar 05, 2006 2:18 pm, edited 1 time in total.
F
Fubar
Voice
Posts: 7
Joined: Mon Feb 27, 2006 9:40 am

Post by Fubar »

works great , dont suppose there is anyway where i could get the out put on differant lines is there ?
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Fubar wrote:works great , dont suppose there is anyway where i could get the out put on differant lines is there ?
Wow that's so weird. I'll add the code to do this today, I've always thought I had it like this. The next version, the "seperator" variable will actually work! Silly me. Also setting it to "\n" like in my other scripts will put the results onto seperate lines (in the next version).

Edit: I think this will be a bad idea since it will have so much data on all the lines.. Location, Humidity, Dew Point, Temperature, Wind, Windchill, etc.. that's a lot of lines. I'll have to do it differently to have a few things on one line (Temperature, High/Low, etc.. then next line will do Humidity, Dew Point, etc..)

Example..
IRC wrote:(10:59:45) <@visitant> Edmonton International, Alberta (53.3°N/113.6°W, 723M)
(10:59:45) <@visitant> Last Updated: 10:00 AM MST
(10:59:45) <@visitant> Dew Point: -6°F (-21°C)
(10:59:45) <@visitant> Humidity: 92%
(10:59:45) <@visitant> Temperature: -4°F (-20°C)
(10:59:47) <@visitant> High/Low: 15/10°F (-9/-11°C)
(10:59:49) <@visitant> Conditions: Clear
(10:59:51) <@visitant> UV Index: 2/16
(10:59:53) <@visitant> Wind: Calm
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

1.9_r7 released for Fubar above.
-link expired-

The new variable "seperate_lines" will allow you to put the output onto three seperate lines. It will look like this:
IRC wrote:(11:13:11) <@visitant> Edmonton International, Alberta (53.3°N/113.6°W, 723M); Last Updated: 11:00 AM MST
(11:13:11) <@visitant> Dew Point: 1°F (-17°C); Humidity: 92%; Temperature: 3°F (-16°C); High/Low: 15/10°F (-9/-11°C)
(11:13:11) <@visitant> Conditions: Partly Cloudy; UV Index: 2/16; Wind: Calm
The "seperator" variable will now work properly so you can change the "; " to whatever you want. If you set it to "\n" then every result will be put onto a seperate line as in the example above this post.

Regards~
Last edited by incith on Fri Apr 28, 2006 7:51 pm, edited 1 time in total.
F
Fubar
Voice
Posts: 7
Joined: Mon Feb 27, 2006 9:40 am

Post by Fubar »

cool cheers mate :) not too fussed myself on how many lines it spouts out works like a charm , thank you once again :)
S
SVD
Voice
Posts: 9
Joined: Mon Mar 13, 2006 6:52 pm

Post by SVD »

I have v1.9_r7 of this script running Windrop. Forecasts do not work, with a message in the eggdrop console saying Tcl error [incith::weather::forecast_message]: can't read "day1": no such variable

I have been using this script for many months and everything has always worked. Any ideas on how to fix this would be appreciated. Thanks for a great script!
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Hello, which location is giving you this error?

Code: Select all

(07:42:44) (@incith) !fc yeg
(07:42:47) <@visitant> Edmonton International, Alberta Forecast (High/Low); Monday:
                       Partly Cloudy, 39/24°F (4/-4°C); Tuesday: Overcast, 46/24°F
                       (8/-4°C); Wednesday: Partly Cloudy, 41/30°F (5/0°C); Thursday:
                       Partly Cloudy, 41/30°F (5/0°C); Friday: Overcast, 44/35°F (6/1°C)
S
SVD
Voice
Posts: 9
Joined: Mon Mar 13, 2006 6:52 pm

Post by SVD »

YOW gives me the error.
Post Reply