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
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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: Select all

    # weather granularity
    # Enter the amount of digits after the decimal point you want
    variable granularity 1
R
Racquet
Voice
Posts: 3
Joined: Sat Aug 28, 2010 2:41 am

Post by Racquet »

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.
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

The !time script update/add was just AWESOME!
so much of loading an individual script for world time :)

Thank you speechles :lol:
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
F
FightingNavyman
Voice
Posts: 35
Joined: Tue Jan 18, 2011 12:39 pm

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

Post by FightingNavyman »

when are we gona see a v3.0 :D so we can do !weather -set mylocation.
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

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

Post by spithash »

FightingNavyman wrote:when are we gona see a v3.0 :D 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
x
xREVx
Voice
Posts: 15
Joined: Wed Jul 25, 2007 7:48 pm

Post by xREVx »

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)
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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
x
xREVx
Voice
Posts: 15
Joined: Wed Jul 25, 2007 7:48 pm

Post by xREVx »

great! thank you, speechles! i really appreciate it :)
m
marx2k
Voice
Posts: 10
Joined: Sun Jan 23, 2011 10:34 am

Post by marx2k »

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.
Z
Zohaib
Voice
Posts: 22
Joined: Wed May 18, 2011 3:30 am

Post by Zohaib »

incith:weather-2.9a Is Wonderful Thanks Incith
<Zohaib>
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

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
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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.. ;)
y
yota
Voice
Posts: 1
Joined: Sat Aug 27, 2011 11:15 pm
Location: United States

Post by yota »

Bummer looks like the site may have changed or is it just my bot? :shock:
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

yota wrote:Bummer looks like the site may have changed or is it just my bot? :shock:
<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
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

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
Post Reply