egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

incith:weather (2.8p) (Dec. 18th, 2008)
Goto page Previous  1, 2, 3 ... 11, 12, 13 ... 19, 20, 21  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Feb 05, 2011 8:27 pm    Post subject: Reply with quote

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. Smile

Code:
    # weather granularity
    # Enter the amount of digits after the decimal point you want
    variable granularity 1

_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Racquet
Voice


Joined: 28 Aug 2010
Posts: 3

PostPosted: Sun Feb 06, 2011 9:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Mon Feb 07, 2011 1:24 pm    Post subject: Reply with quote

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

Thank you speechles Laughing
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
FightingNavyman
Voice


Joined: 18 Jan 2011
Posts: 35

PostPosted: Wed Feb 09, 2011 3:00 pm    Post subject: incith:weather (2.8p) (Dec. 18th, 2008) Reply with quote

when are we gona see a v3.0 Very Happy so we can do !weather -set mylocation.
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Wed Feb 09, 2011 3:31 pm    Post subject: Re: incith:weather (2.8p) (Dec. 18th, 2008) Reply with quote

FightingNavyman wrote:
when are we gona see a v3.0 Very Happy so we can do !weather -set mylocation.


What are you talking about? The script already supports setting a default location... Exclamation Question Exclamation Question
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
xREVx
Voice


Joined: 25 Jul 2007
Posts: 15

PostPosted: Sat Feb 19, 2011 1:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Feb 20, 2011 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
xREVx
Voice


Joined: 25 Jul 2007
Posts: 15

PostPosted: Sun Feb 20, 2011 3:33 pm    Post subject: Reply with quote

great! thank you, speechles! i really appreciate it Smile
Back to top
View user's profile Send private message
marx2k
Voice


Joined: 23 Jan 2011
Posts: 10

PostPosted: Fri Apr 22, 2011 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zohaib
Voice


Joined: 18 May 2011
Posts: 22

PostPosted: Wed Jun 01, 2011 2:16 pm    Post subject: Reply with quote

incith:weather-2.9a Is Wonderful Thanks Incith
_________________
<Zohaib>
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Jun 16, 2011 9:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Jun 16, 2011 10:18 pm    Post subject: Reply with quote

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.. Wink
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
yota
Voice


Joined: 27 Aug 2011
Posts: 1
Location: United States

PostPosted: Sat Aug 27, 2011 11:19 pm    Post subject: Reply with quote

Bummer looks like the site may have changed or is it just my bot? Shocked
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Aug 27, 2011 11:32 pm    Post subject: Reply with quote

yota wrote:
Bummer looks like the site may have changed or is it just my bot? Shocked


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
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Sun Aug 28, 2011 4:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 11, 12, 13 ... 19, 20, 21  Next
Page 12 of 21

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber