| View previous topic :: View next topic |
| Author |
Message |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Wed Sep 07, 2005 4:54 pm Post subject: incith:weather (2.8p) (Dec. 18th, 2008) |
|
|
Newest versions of my scripts are always available @ incith.com if they are not yet available on the Tcl archive.
| Code: | | # 2.8p: fix for public_to_private not working. # |
| Code: | | # 2.8o: they made units cookie based, fix to compensate. # |
| Code: | | # 2.8n: windchill fix # |
| Code: | | # 2.8m: more small fixes and updates # |
| Code: | # 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: | | # 2.8j: fixes: temp, dew point, wind speed, better mobile backup. # |
_________________ ; Answer a few unanswered posts!
Last edited by incith on Fri Dec 19, 2008 12:32 am; edited 54 times in total |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sun Nov 27, 2005 4:59 pm Post subject: |
|
|
-link expired- _________________ ; Answer a few unanswered posts!
Last edited by incith on Mon May 15, 2006 8:39 pm; edited 2 times in total |
|
| Back to top |
|
 |
Luniz2k1 Voice
Joined: 17 Sep 2003 Posts: 19
|
Posted: Fri Mar 03, 2006 7:30 am Post subject: incith:weather v1.9_r3 not working |
|
|
| Could not fetch the current temperature. Seems that the format of the website has changed again. |
|
| Back to top |
|
 |
Fubar Voice
Joined: 27 Feb 2006 Posts: 7
|
Posted: Fri Mar 03, 2006 9:46 am Post subject: |
|
|
| i get the same , although forecast still works |
|
| Back to top |
|
 |
Luniz2k1 Voice
Joined: 17 Sep 2003 Posts: 19
|
Posted: Fri Mar 03, 2006 9:53 am Post subject: |
|
|
| Yes, the forcast does still work. Should have mentioned that. |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sat Mar 04, 2006 1:01 am Post subject: |
|
|
Hello all. Here is an updated release for now, since egghelp has not updated yet.
-link expired- _________________ ; Answer a few unanswered posts!
Last edited by incith on Sun Mar 05, 2006 4:50 am; edited 1 time in total |
|
| Back to top |
|
 |
Luniz2k1 Voice
Joined: 17 Sep 2003 Posts: 19
|
Posted: Sat Mar 04, 2006 1:13 am Post subject: |
|
|
| Thank you. |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sun Mar 05, 2006 4:51 am Post subject: |
|
|
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- _________________ ; Answer a few unanswered posts!
Last edited by incith on Sun Mar 05, 2006 2:18 pm; edited 1 time in total |
|
| Back to top |
|
 |
Fubar Voice
Joined: 27 Feb 2006 Posts: 7
|
Posted: Sun Mar 05, 2006 8:19 am Post subject: |
|
|
| works great , dont suppose there is anyway where i could get the out put on differant lines is there ? |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sun Mar 05, 2006 1:49 pm Post subject: |
|
|
| 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
|
_________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sun Mar 05, 2006 2:18 pm Post subject: |
|
|
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~ _________________ ; Answer a few unanswered posts!
Last edited by incith on Fri Apr 28, 2006 7:51 pm; edited 1 time in total |
|
| Back to top |
|
 |
Fubar Voice
Joined: 27 Feb 2006 Posts: 7
|
Posted: Mon Mar 06, 2006 7:44 am Post subject: |
|
|
cool cheers mate not too fussed myself on how many lines it spouts out works like a charm , thank you once again  |
|
| Back to top |
|
 |
SVD Voice
Joined: 13 Mar 2006 Posts: 9
|
Posted: Mon Mar 13, 2006 7:05 pm Post subject: |
|
|
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! |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Mon Apr 03, 2006 9:43 am Post subject: |
|
|
Hello, which location is giving you this error?
| Code: | (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) |
_________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
SVD Voice
Joined: 13 Mar 2006 Posts: 9
|
Posted: Mon Apr 03, 2006 10:51 am Post subject: |
|
|
| YOW gives me the error. |
|
| Back to top |
|
 |
|