| View previous topic :: View next topic |
| Author |
Message |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Feb 05, 2011 8:27 pm Post subject: |
|
|
This one should be more complete. This also gives you a !time command for getting local times.
Incith:Weather v2.9
No real version # change, but this does correct issues and add features. Every location should now work as expected. You do not need to change anything, simply download the script above. All corrections mentioned in this thread are already applied, as well as some not discussed here that were corrected. It also adds granularity to temperatures when converting. This means it doesn't strictly use integers anymore. It will use as many decimal points as you require when appropriate (yes, you can put 0 and still get integers). This makes it more accurate as well.
| Code: | # weather granularity
# Enter the amount of digits after the decimal point you want
variable granularity 1 |
_________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
Racquet Voice
Joined: 28 Aug 2010 Posts: 3
|
Posted: Sun Feb 06, 2011 9:25 pm Post subject: |
|
|
| I like it; great as always. You might want to include document for usage for the !time command up at top near the rest of the triggers, just so people know it's included without reading changelog. |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Mon Feb 07, 2011 1:24 pm Post subject: |
|
|
The !time script update/add was just AWESOME!
so much of loading an individual script for world time
Thank you speechles  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
FightingNavyman Voice
Joined: 18 Jan 2011 Posts: 35
|
Posted: Wed Feb 09, 2011 3:00 pm Post subject: incith:weather (2.8p) (Dec. 18th, 2008) |
|
|
when are we gona see a v3.0 so we can do !weather -set mylocation. |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Wed Feb 09, 2011 3:31 pm Post subject: Re: incith:weather (2.8p) (Dec. 18th, 2008) |
|
|
| FightingNavyman wrote: | when are we gona see a v3.0 so we can do !weather -set mylocation. |
What are you talking about? The script already supports setting a default location...  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
xREVx Voice
Joined: 25 Jul 2007 Posts: 15
|
Posted: Sat Feb 19, 2011 1:52 pm Post subject: |
|
|
just found a bug. looks like when there's no decimal digit the script strips the last digit of the Celsius temperature.
example: when it's 86F it shows 3C, instead of 30C.
Florianopolis, Brazil (27.7°S/48.5°W) - Temperature: 86°F (3°C) - Conditions: Partly Cloudy - Wind: North at 12 MPH (18 KPH) - Humidity: 70% - Updated: 3:00 PM BRST (February 19, 2011)
when it does have a decimal digit it works fine:
Stockholm, Sweden (59.3°N/18.0°E) - Temperature: 3.6°F (-15.8°C) - Windchill: 4°F (-16°C) - Conditions: Mist - Wind: Calm - Humidity: 78% - Updated: 8:33 PM CET (February 19, 2011) |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Feb 20, 2011 1:35 am Post subject: |
|
|
| xREVx wrote: | just found a bug. looks like when there's no decimal digit the script strips the last digit of the Celsius temperature.
example: when it's 86F it shows 3C, instead of 30C.
Florianopolis, Brazil (27.7°S/48.5°W) - Temperature: 86°F (3°C) - Conditions: Partly Cloudy - Wind: North at 12 MPH (18 KPH) - Humidity: 70% - Updated: 3:00 PM BRST (February 19, 2011)
when it does have a decimal digit it works fine:
Stockholm, Sweden (59.3°N/18.0°E) - Temperature: 3.6°F (-15.8°C) - Windchill: 4°F (-16°C) - Conditions: Mist - Wind: Calm - Humidity: 78% - Updated: 8:33 PM CET (February 19, 2011) |
You are indeed correct. That was due to how I was stripping ending 0's and deciding whether or not to use the decimal point. It seems [string trim] is not what one should use to achieve this.. So I've rewritten entirely the logic that decides. It now splits the value into its integer value and its decimal remnants. It then scrubs only the decimal remnants of its ending 0's. If there were only 0's, then it will also remove the decimal point correctly now.
Get the updated script here: Incith:Weather v2.9a _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
xREVx Voice
Joined: 25 Jul 2007 Posts: 15
|
Posted: Sun Feb 20, 2011 3:33 pm Post subject: |
|
|
great! thank you, speechles! i really appreciate it  |
|
| Back to top |
|
 |
marx2k Voice
Joined: 23 Jan 2011 Posts: 10
|
Posted: Fri Apr 22, 2011 3:40 pm Post subject: |
|
|
Is anyone else having issues with this in the last few days where nothing comes out of the bots on any commands? I'm having the same issue with incith-google script. Other scripts are working fine.
The only thing I can think of as a common denominator is the tcl http package requirement. I have both tcl 8.4 and 8.5 installed. I'm not sure where to go from here.
EDIT: Disregard this question. I had an issue where my userfile got corrupted and I borrowed one from another bot. This blew away my channel settings so my channels +google, +weather, etc settings got blown away and I didn't realize this. |
|
| Back to top |
|
 |
Zohaib Voice
Joined: 18 May 2011 Posts: 22
|
Posted: Wed Jun 01, 2011 2:16 pm Post subject: |
|
|
incith:weather-2.9a Is Wonderful Thanks Incith _________________ <Zohaib> |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Jun 16, 2011 9:59 pm Post subject: |
|
|
| Code: | missing close-brace: possible unbalanced brace in comment
while executing
"namespace eval incith {
namespace eval weather {
# [custom_format] : converts a string to the desired output
#
proc custom_format {htmla..."
(file "scripts/incith-weather.tcl" line 253)
invoked from within
"source scripts/incith-weather.tcl" |
Last available source tested ceased functioning some time ago. Probably past its use by date now. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Jun 16, 2011 10:18 pm Post subject: |
|
|
| Alchera wrote: | | Last available source tested ceased functioning some time ago. Probably past its use by date now. |
Try this copy, 2.9a -> http://ereader.kiczek.com/incith-weather.tcl
It should function perfectly, and includes !time and granularity. Let me know if that doesn't cure that issue..  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
yota Voice
Joined: 27 Aug 2011 Posts: 1 Location: United States
|
Posted: Sat Aug 27, 2011 11:19 pm Post subject: |
|
|
Bummer looks like the site may have changed or is it just my bot?  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Aug 27, 2011 11:32 pm Post subject: |
|
|
| yota wrote: | Bummer looks like the site may have changed or is it just my bot?  |
| Quote: | <speechles> !wz
<sp33chy> speechles's weather request; Ukiah Municipal, California (39.1°N/123.2°W); Updated: 7:56 PM PDT (August 27, 2011); Conditions: Clear; Temperature: 83°F (28.3°C); High/Low: 97/58°F (36.1/14.4°C); UV: 0/16; Humidity: 29%; Dew Point: 48°F (8.9°C); Pressure: 29.86 in/1011 hPa; Wind: Calm
<speechles> !fc
<sp33chy> speechles's forecast request; Ukiah Municipal, California Forecast (High/Low); Updated: 7:56 PM PDT (August 27, 2011); Saturday: Clear, 97/58°F (36.1/14.4°C); Sunday: Clear, 97/58°F (36.1/14.4°C); Monday: Clear, 94/56°F (34.4/13.3°C); Tuesday: Clear, 92/56°F (33.3/13.3°C); Wednesday: Clear, 92/56°F (33.3/13.3°C)
<speechles> !sky
<sp33chy> speechles's sky request; Ukiah Municipal, California Astronomy; Sunrise: 6:36 AM PDT; Sunset: 7:51 PM PDT; Moon: Waning Crescent (1%); Moonrise: 4:58 AM PDT (8/27); Moonset: 6:47 PM PDT (8/27); Visible Light: 14h 09m; Daylight Length: 13h 14m; Tomorrow: 2m 24s shorter
<speechles> !time
<sp33chy> speechles's time request; Ukiah Municipal, California (39.1°N/123.2°W); Local Time: 8:31 PM PDT (August 27, 2011) |
Just your bot it appears.... (to be continued)...
Using: Incith:Weather 2.9a _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Sun Aug 28, 2011 4:19 am Post subject: |
|
|
The same with me. Everything works great. I am also using the same version as speechles. _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
|