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 ... 8, 9, 10 ... 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
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Thu Jan 08, 2009 4:54 pm    Post subject: Reply with quote

Yeah, NOAA used to be a lot more accomodating for searching. Used to use it on old perl bots (infobot) that I used to run prior to eggdrop.

There was a script someone posted here awhile back, basically they could not [exec] on their Windrop so they wrote a PHP script to do the [exec] for them and return the data. I never could get over the innovation of this idea, perhaps it would be possible to make another webserver fetch the wunderground HTML and then pass it back to the bot in a similar manner. I'd just need someone else to write the PHP script as I can't really be bothered (I do know some PHP and it's probably simple to pull a new http request within but I don't want to learn it right now). And then you, the user, would need to host the PHP script either locally or somewhere else, and I would have to modify :weather to support this.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Mar 12, 2009 2:12 pm    Post subject: Reply with quote

Hello,

Using incith weather v2.8p


We like it. Works great, and the display has some config options.
Very nice.

I like the improved readability when using the \n switch, to put each report item on a new line.

However, it seems to slow down the display of the information, as there is a slight pause after it displays each line in the channel.

I'm thinking this some function of eggdrop, and not so much the script - but I have to ask - is there a way to speed this up?
It is, after all, a limited amount of info - so why not just post it all quickly?

Thanks
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sat Mar 14, 2009 9:48 am    Post subject: Reply with quote

I'm not sure what version you're using, I'm guessing I just made this change recently in my local copy.

Basically, do a search for putserv and replace them with putquick and this should make the output instant.

The SVN version has this already (and !time) -- http://svn.incith.com/index/incith/trunk/#path_trunk_
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Mar 14, 2009 11:36 am    Post subject: Reply with quote

Quote:

incith wrote:
I'm not sure what version you're using,


Quote:

Hello,

Using incith weather v2.8p



Smile

Quote:

I'm guessing I just made this change recently in my local copy.
Basically, do a search for putserv and replace them with putquick and this should make the output instant.


Thanks for reply and the tip.
Just tried it.
Found "putserv" twice, and changed both.
Tested.

Yes, it did make a difference. But only for the first 5 lines of output.
They came up very quickly. Much nicer.
But the remaining lines came up same as before - Line-by-line with a little pause between each.
Any ideas as to what is causing this?

Quote:

The SVN version has this already (and !time) -- http://svn.incith.com/index/incith/trunk/#path_trunk_


What does SVN mean?



Thanks



p.s. did you get my PM re: incith google?
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 Mar 14, 2009 11:59 am    Post subject: Reply with quote

willyw wrote:
Yes, it did make a difference. But only for the first 5 lines of output.
They came up very quickly. Much nicer.
But the remaining lines came up same as before - Line-by-line with a little pause between each.
Any ideas as to what is causing this?

Sure, eggdrop queues. You see, most people get the mistaken impression that using putserv instead of puthelp or putquick instead of putserv that your actually going to see the output faster. This isn't entirely true (as usually at then 4th or 5th line it will slow down), to really get instantaneous output requires building a new procedure, perhaps the putnow function can be used (but will definitely get your eggdrop excess flooded every now and then). Eggdrop will natively queue your messages regardless of which command you use to put*.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Mar 14, 2009 2:34 pm    Post subject: Reply with quote

speechles wrote:
willyw wrote:
Yes, it did make a difference. But only for the first 5 lines of output.
They came up very quickly. Much nicer.
But the remaining lines came up same as before - Line-by-line with a little pause between each.
Any ideas as to what is causing this?

Sure, eggdrop queues. You see, most people get the mistaken impression that using putserv instead of puthelp or putquick instead of putserv that your actually going to see the output faster. This isn't entirely true (as usually at then 4th or 5th line it will slow down), to really get instantaneous output requires building a new procedure, perhaps the putnow function can be used (but will definitely get your eggdrop excess flooded every now and then). Eggdrop will natively queue your messages regardless of which command you use to put*.


Thanks for the reply.

I tried it, briefly so far - and yes, it does make a difference. Smile

But, can you elaborate on this, please:
Quote:

(but will definitely get your eggdrop excess flooded every now and then).


I don't think I understand you.

It can't be that eggdrop will censure itself for "flooding". So you must mean something to do with the IRCD?
Is that it?

Further, in this specific situation - using your putnow proc with the output of incith weather - what could happen? anything?

I'm thinking that we know in advance the length of the output.... and it is not excessive. To me, the definition of "flood" is far more than just 11 lines that are not even complete full lines.
Is it even possible that some sort of "flood" protection at the server level could be triggered by using your putnow proc with incith weather's 11 line output?

Thanks
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 Mar 14, 2009 2:42 pm    Post subject: Reply with quote

willyw wrote:
But, can you elaborate on this, please:
Quote:

(but will definitely get your eggdrop excess flooded every now and then).


I don't think I understand you.

It can't be that eggdrop will censure itself for "flooding". So you must mean something to do with the IRCD?
Is that it?


Quote:
*** Quits: YourBot (~ident@your.bots.mask.com) (Quits: Excess Flood)

Somewhere along the lines of this. This depends on the amount of lines displayed and the number of users triggering it at once. Combined this might cause the ircd to terminate your connection rather than handle it by throttling your messages as some servers do. This may/or may not happen to you. I've just mentioned it so your fully aware of it.

Also, in combining it with incith:weather this depends on the amount of lines you've displayed combined with the amount of users doing !weather at once. If say, 3 people do !weather <this> at the same instant, and each request outputs, let's say 6 lines.. Well, in this case your bot will now run the risk of spewing 18 lines (3 users x 6 lines) in a row non-stop, under normal cirumstances eggdrops own queueing system would keep this from happening. But without it, your going to need to adjust your ignore times and flood settings to be able to keep your bot from getting killed all the time.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Mar 14, 2009 3:52 pm    Post subject: Reply with quote

speechles wrote:

...
But without it, your going to need to adjust your ignore times and flood settings to be able to keep your bot from getting killed all the time.


Reading between the lines... let me see if I've got this right, when I say:
The simplest, safest, easiest thing to do, would be to be happy with the improved, faster display of the first five lines, by using "putquick", and let the last 6 lines be handled by eggdrop - thus avoiding flooding problems with the IRC server.

Does that sum it up accurately?
Smile
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sat Mar 14, 2009 4:10 pm    Post subject: Reply with quote

you can test this on your own client for example.. try spamming 10 - 12 lines in a row really fast (uparrow + enter), and perhaps watch the output on another IRC client. You may get disconnected from the server, or, your output will start getting queued. I don't think it's really something that can be avoided.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Mar 14, 2009 6:35 pm    Post subject: Reply with quote

incith wrote:
you can test this on your own client for example.. try spamming 10 - 12 lines in a row really fast (uparrow + enter), and perhaps watch the output on another IRC client. You may get disconnected from the server, or, your output will start getting queued. I don't think it's really something that can be avoided.


This is interesting, because we tried something almost like this already today - after reading the comments above, about flooding etc.

Loaded eggdrop - a test bot.

Two of us joined the channel with that bot.
We co-ordinated and using up arrow quickly sent !weather requests to the bot. The incith weather script for this test DID include the putnow procedure.

Come to think of it, according to what you've said here, either one of us might have gotten ourselves knocked off, for sending all those !weather lines? I remember that for one test, I sent 18 as fast as I could.
I think my friend sent a dozen or so himself.
Neither of us got knocked off the server though.

We wanted to see what the bot would do, and if it would get itself knocked off.
It did not. It took a while to send back all the replies though! Smile
I've no idea why they didn't come back faster....


Further, we tested next by using /msg to the bot.
This time, the bot eventually ignored us.
That's when I remembered this setting in the script:
variable flood 4:10
and now I wonder why that didn't kick in when we hit it with all those requests via post in the channel?

Anyway... we did not get either ourselves, or the bot, kicked off.
From what you've described, it sounds like we should have.
What do you make of it?
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Mon Mar 16, 2009 2:05 pm    Post subject: Reply with quote

You are probably +f on the bot; but I agree somewhere in there is a bug, not sure why it happened on /msg.

Basically for the test I mean, have your friend send the 12 or whatnot !weathers, and just watch him, he should start lagging to you in the same way the bot does, after his first 5 or so !weathers sent to the channel, they should start getting queued a bit by his client, theoretically.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Wed Mar 18, 2009 11:45 am    Post subject: Reply with quote

incith wrote:
... not sure why it happened on /msg.


I'm a little confused then...
Isn't it supposed to?
Start ignoring requests, as per the configured numbers?

Quote:

Basically for the test I mean, have your friend send the 12 or whatnot !weathers, and just watch him, he should start lagging to you in the same way the bot does, after his first 5 or so !weathers sent to the channel, they should start getting queued a bit by his client, theoretically.


I wasn't really watching him that time.. but we'll do it again and see.
Thanks.
Back to top
View user's profile Send private message
digs
Voice


Joined: 13 Mar 2008
Posts: 12

PostPosted: Sat Mar 28, 2009 1:49 pm    Post subject: The operation timed out after 15 seconds Reply with quote

I was wondering if this is an error with their site, or maybe they changed things again?

I have been getting
"The operation timed out after 15 seconds."

The messages are irradic.
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sat Mar 28, 2009 11:55 pm    Post subject: Reply with quote

I'm getting the same thing.

Sad
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sun Mar 29, 2009 12:22 am    Post subject: Reply with quote

They (wunderground) is lagging. Nothing I can do about it. Just need to wait for them to figure/sort it out.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
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 ... 8, 9, 10 ... 19, 20, 21  Next
Page 9 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