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.

Weather script for wetter.com [German]

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

Ich habe es jetzt nicht ausprobiert, aber ich lege dir ans Herz deine Scripts endweder im

Code: Select all

-Tag oder als Dateidownload anzubieten. So kann man nur schwer die Formation des Codes wiedererkennen.

Hoffe das hilft den Leuten weiter, beruhigt mich auch ein wenig, da man nach dem so langen Bereitstellen eines Scripts doch nur ungern nicht mehr weiter gemacht hat.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
s
shivaz
Voice
Posts: 6
Joined: Sat Jun 07, 2008 3:41 pm

Post by shivaz »

Danke @De KUS ...diese Option kannte ich bisher nicht :/

Sollte auch keine Kritik an Dich sein.... Ich hoffe ja nur auf ein Remake von Dir.
B
Burnout2
Voice
Posts: 1
Joined: Fri Jan 01, 2010 7:59 am

Post by Burnout2 »

Hallöchen,

keines der geposteten Scripten von shivaz funktionieren bei mir. Habe TCL8.5.

Mein Google Script bekomme ich folgende Fehlermeldung:
|12:57:30| »» <b00T> Tcl error [L:wetter]: can't read "webstring": no such variable

Beim zweiter Wetter.com Script bekomme ich folgende Meldung:
|12:58:27| »» <b00T> Tcl error [::wetter::pub]: time value too large/small to represent

Was mach ich falsch? Danke :)

PS: Frohes Neues Jahr 2010!
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

<speechles> !g .de wetter:berlin
<sp33chy> Wetter für Berlin: -2 °C, Aktuell: Leichter Schneefall, Wind: N mit 11 km/h; Feuchtigkeit: 100 %; Sa.: Vereinzelt schnee (0°C|-7°C); So.: Vereinzelt schnee (-2°C|-7°C); Mo.: Meist sonnig (-4°C|-11°C)
<speechles> !g .pt tempo:rio de janeiro
<sp33chy> Tempo para Rio de Janeiro - RJ, Brasil: 25°C, Actual: Limpo, Vento: N a 6 km/h; Humidade: 89%; sáb: Limpo (30°C|22°C); dom: Parcialmente nublado (31°C|22°C); seg: Possibilidade de tempestade (28°C|22°C)
http://forum.egghelp.org/viewtopic.php?t=13586

This one still works... :P Plus, you can redefine the google trigger phrase above (!g .de wetter:%search%) into an appropriate "!weather" trigger as well using the custom trigger section of the script.
s
shivaz
Voice
Posts: 6
Joined: Sat Jun 07, 2008 3:41 pm

Post by shivaz »

das zweite script streikt bei mir seit gut einer woche.

das erste von google aber funzzt.

[13:16:10] <@b|rt> !wetter stuttgart
[13:16:11] <@tH3Br4In> Wetter für Stuttgart, BW (stuttgart) - Temp: -4 °C - Wind: O mit Windgeschwindigkeiten von 6 km/h - Feuchtigkeit: 74 % - Meistens bewölkt

oder mit plz

[13:17:48] <@b|rt> !wetter 60311
[13:17:50] <@tH3Br4In> Wetter für Frankfurt, HE (60311) - Temp: -5 °C - Wind: N mit Windgeschwindigkeiten von 10 km/h - Feuchtigkeit: 80 % - Klar
V
Vision
Voice
Posts: 14
Joined: Wed Jul 12, 2006 3:47 pm

Post by Vision »

Bei mir geht seit gestern nichts mehr.

Gab es wieder ein update ??
Vision
V
Vision
Voice
Posts: 14
Joined: Wed Jul 12, 2006 3:47 pm

Post by Vision »

speechles wrote:
It don't work for me
Vision
S
SignZ
Voice
Posts: 18
Joined: Thu Jun 17, 2010 3:52 pm

Post by SignZ »

Vision wrote:Bei mir geht seit gestern nichts mehr.

Gab es wieder ein update ??
Das Script scheint wohl tot zu sein.. Interessanterweise geht bei meinem Bot nicht mal das, was speechles geschrieben hat (!g wetter <stadt>).
-
The script seems to be dead now.. Another interesting thing is that my bot doesn't seem to like speechles' suggestion either. It just doesn't answer and .set errorInfo tells me:
[15:36:01] <Chrono> Currently: can't read "state(after)": no such element in array
[15:36:01] <Chrono> Currently: while executing
[15:36:01] <Chrono> Currently: "after cancel $state(after)"
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

it's .tcl $errorInfo but you have to have .tcl enabled in dcc chat/telnet.
Once the game is over, the king and the pawn go back in the same box.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

.tcl $errorInfo would try to execute the contents of the errorInfo variable as a tcl command; not right...
".set errorInfo" is correct (or ".tcl set errorInfo")
NML_375
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I think you've mixed them. Let's generate an error:
.tcl blah
Tcl error: invalid command name "blah"
now let's see results, .tcl first:
.tcl $errorInfo
Tcl error: invalid command name "invalid command name "blah"
Tcl error: while executing
Tcl error: "blah""
and now .set:
.set $errorInfo
[22:18:37] #cezar# set $errorInfo
Error: can't read "invalid command name "invalid command name "blah"
while executing
"blah""
while executing
"$errorInfo"": no such variable
for me .tcl looks easier to read as i get more details, not to mention it mentions $errorInfo as an error too. :)
Once the game is over, the king and the pawn go back in the same box.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Try reading your own examples again...
See the double "invalid command name" when you use .tcl $errorInfo?
Which would be identical to issuing

Code: Select all

.tcl {invalid command name "blah"}
(That is, the expansion of $errorInfo).
And the same applies to your .set $errorInfo..

Code: Select all

.set {invalid command name "invalid command name "blah"
while executing
"blah""
while executing
"$errorInfo"}
In essence, $ causes variable substitutions before the command is evaluated, not after. That applies to both .tcl and .set
NML_375
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

ahh, without $.. interesting, I always thought is with. :roll:

still, i like my old .tcl $errorInfo more :P
Once the game is over, the king and the pawn go back in the same box.
Post Reply