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
Exedore
Halfop
Posts: 43
Joined: Sun Jan 27, 2008 10:04 pm

Post by Exedore »

Can be displayed in spanish?
4
4everlearning
Voice
Posts: 8
Joined: Wed Jan 26, 2011 4:32 am

Post by 4everlearning »

Hey guys I am missing something. I have this script running on one net in many channels and it works great. it's been there since the release of v2.9a.
My issue is that I am trying to set this up on a second net running in two channels, I of course have no problem getting the bot to connect and join the channels. However i can't get the bot to respond to the weather command. I have done ".chanset #revolusongs +weather" but still no responce from the bot and the bot doesn't show the command being seen in telnet.
here is the chaninfo
<Boing> »» Settings for dynamic channel #revolusongs:
<Boing> »» Protect modes (chanmode): +tn
<Boing> »» Idle Kick after (idle-kick): DON'T!
<Boing> »» stopnethack: DON'T!
<Boing> »» aop-delay: 5:30
<Boing> »» revenge-mode: 0
<Boing> »» ban-type: 3
<Boing> »» ban-time: 120
<Boing> »» exempt-time: 60
<Boing> »» invite-time: 60
<Boing> »» Other modes:
<Boing> »» -inactive -statuslog -secret +shared
<Boing> »» +greet -seen +cycle +dontkickops
<Boing> »» +protectops -protectfriends -revenge -revengebot
<Boing> »» -bitch -autoop -autovoice -nodesynch
<Boing> »» -enforcebans +dynamicbans +userbans -autohalfop
<Boing> »» -protecthalfops -static
<Boing> »» +dynamicexempts +userexempts +dynamicinvites +userinvites
<Boing> »» User defined channel flags:
<Boing> »» +weather
<Boing> »» flood settings: chan ctcp join kick deop nick
<Boing> »» number: 15 3 5 3 3 5
<Boing> »» time : 60 60 60 10 10 60
Thanks for all the help, I know I am just missing something very simple
User avatar
spithash
Master
Posts: 248
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

Did you check if the channel has +c mode on? on dalnet for example, c mode blocks bold and colors from everyone.
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
4
4everlearning
Voice
Posts: 8
Joined: Wed Jan 26, 2011 4:32 am

Post by 4everlearning »

Thanks for the reply, yes the channel allows both bold and colors. both nets run Unrealircd with Anope and neostats.

One more thing. I have installed Fordlawnmower's horoscope script to make sure that the bot is working correctly. I did ".chanset #revolusongs +horo" for that script and all works fine with that script. Just for some reason this weather script isn't responding.
User avatar
spithash
Master
Posts: 248
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

Is it loaded after http.tcl?
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
s
shadrach
Halfop
Posts: 74
Joined: Fri Dec 14, 2007 6:29 pm

Post by shadrach »

Replace every instance of http://wunderground.com in the script with http://classic.wunderground.com.
User avatar
spithash
Master
Posts: 248
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

Well, this is my working version: 2.9a http://bsdunix.info/eggdrop/scripts/incith-weather.tcl

I hope this helps.
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

4everlearning wrote:Thanks for the reply, yes the channel allows both bold and colors. both nets run Unrealircd with Anope and neostats.

One more thing. I have installed Fordlawnmower's horoscope script to make sure that the bot is working correctly. I did ".chanset #revolusongs +horo" for that script and all works fine with that script. Just for some reason this weather script isn't responding.
FordLawnmower's script isn't really that great. Sure he has that "hawkee" forum where he has a few things eggdrop related offered. But his eggdrop/tcl scripts look more like bad ports of mIRC scripts. Basically, there are better ways to do all this and Incith was quite efficient and simplistic in his approaches. I keep this same style in my modifications to his scripts. So these are written to be eggdrop scripts taking advantage of everything eggdrop can do. In that, they afford you some extra features: flood system, trigger system, configuration options, split options, user defaults, etc. Most of Incith's script have a constant set of configuration settings that are always present in every single one. I've also kept this in any scripts of mine based off Incith's scripts. This allows you to become familiar with the "Incith family" of scripts easily.

http://ereader.kiczek.com/scripts
This is my official repository for my scripts. Most of these scripts cannot be found on egghelp's tcl archive. They can only be found within forum threads.

Finally, the reason the script isn't working for you is because it relies on http package. Specifically, http package 2.3 .... Is this other bot an windrop (windows + eggdrop)?. If so, you may be able to simply source http package like a tcl script, as basically that is all the http package really is. There is no actual "object" compiled and created. It's entirely written in tcl. So sourcing it can suffice the same as having it natively in your environment paths. Just make sure that you do not have it provided via your environment _AND_ provide it via sourcing. You cannot have conflicting packages present this will crash eggdrop.

Incith has quit the scene for a bit, but his spirit shall live on forever within his scripts. ;)

Incith, if you are reading this. To Jordan, I apologize. If were anything I said or did caused your departure.. My bad... Sorry ;/
H
Hellster
Voice
Posts: 22
Joined: Thu Aug 10, 2006 7:35 pm

Post by Hellster »

Hey guys, i'm not sure when exactly happened, but it seems the weather site may or may not have changed something, which in turn is making the script give the following error

Tcl error [incith::weather::weather_handler]: invalid command name "clock"

I only noticed it today so i can only assume it's something recent.
If anyone knows a way to fix it that would be most appreciated, thanks.

PS: running 2.9a
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Hellster wrote:Tcl error [incith::weather::weather_handler]: invalid command name "clock"

I only noticed it today so i can only assume it's something recent.
If anyone knows a way to fix it that would be most appreciated, thanks.

PS: running 2.9a
http://forum.egghelp.org/viewtopic.php?t=18587
Your mixing tcl8.4 and a pre-compiled tcl8.5 bot. This causes the issue. Read what thommey has to say at the thread above.
4
4everlearning
Voice
Posts: 8
Joined: Wed Jan 26, 2011 4:32 am

Post by 4everlearning »

Thank you guys, I figured it out. Not sure how it got changed but in the script the trigger was set to both . and ! which cause a parsing problem.

Speechles, I wasn't trying to say there was anything wrong with the script. I honestly thought i was having issues with my bot. this script and all other incith's scripts I have used, have worked flawlessly.
F
FightingNavyman
Voice
Posts: 35
Joined: Tue Jan 18, 2011 12:39 pm

Post by FightingNavyman »

how can i modify it to make it look like this.. im new at this :P

<+Amy> Baytown, Texas (29.8°N 95.0°W) - Updated: 02:56 CDT
<+Amy> Conditions: Mostly Cloudy - Temperature: 22.2°C (72°F) -
<+Amy> Dew Point: 21°C (70°F) - Humidity: 92%
<+Amy> Wind: SSE at 7.0 MPH (11.3 KPH) - High/Low: 27/21°C (81/70°F)
t
trickle
Voice
Posts: 3
Joined: Sat Jun 02, 2012 1:51 am

Script stopped working today (6/2/2012)

Post by trickle »

Hi,

I have been running this tcl for about 3 months problem free after applying the fixes recommended in this forum. Specifically, I changed all instances of http://wunderground.com to http://classic.wunderground.com and I think one other which I am not remembering right now. Unfortunately, today (June 2nd 2012) the tcl has stopped working and I believe it is because the format of the wunderground site may have changed. The tcl still is able to recognize when I search for invalid city names with !time or !weather, so I am confident that I am still able to reach the site. However, no results are returned when I search for legitimate city names. Any help would be appreciated.

Thanks for this great tcl, and any help you can provide.
t
trickle
Voice
Posts: 3
Joined: Sat Jun 02, 2012 1:51 am

Sorry, disregard previous

Post by trickle »

Sorry, the TCL is now working again. I never made any changes to fix it; it just started replying again.

Thank you again for the TCL, it has worked great for me.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Problem trying to get weather for Bristol UK

This is the error I get in Telnet:

[22:43] incith:weather-2.8r: <nck/#chan> .weather Bristol UK
[22:43] Tcl error [incith::weather::weather_handler]: unable to convert date-time string "January</option><option value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option selected="selected" value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option><option value="11">Novem

Can anyone help? Thank you.
Post Reply