<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/9062" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2012-08-05T09:45:23-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/9062</id>

		<entry>
		<author><name><![CDATA[gig]]></name></author>
		<updated>2012-08-05T09:45:23-04:00</updated>

		<published>2012-08-05T09:45:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99821#p99821</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99821#p99821"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99821#p99821"><![CDATA[
Tcl error [pub_wz]: can't read "localdate": no such variable<br><br><br>Not sure what this means if someone can help that'd be great.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12044">gig</a> — Sun Aug 05, 2012 9:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[goalie204]]></name></author>
		<updated>2012-05-17T06:09:45-04:00</updated>

		<published>2012-05-17T06:09:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99426#p99426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99426#p99426"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99426#p99426"><![CDATA[
script still works fine for me, but super slow to reply from bot, not sure why all of a sudden?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11653">goalie204</a> — Thu May 17, 2012 6:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[shadrach]]></name></author>
		<updated>2012-05-12T18:50:21-04:00</updated>

		<published>2012-05-12T18:50:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99397#p99397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99397#p99397"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99397#p99397"><![CDATA[
<blockquote class="uncited"><div>..</div></blockquote>Insert a comma between location and country eg .wz oslo, no. Sudden requirement. Don't know why.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9548">shadrach</a> — Sat May 12, 2012 6:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Vasago]]></name></author>
		<updated>2012-05-12T15:26:33-04:00</updated>

		<published>2012-05-12T15:26:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99395#p99395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99395#p99395"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99395#p99395"><![CDATA[
<blockquote class="uncited"><div>..</div></blockquote>Where would one go to keep updated on this incith-weather script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11519">Vasago</a> — Sat May 12, 2012 3:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2012-05-12T13:41:54-04:00</updated>

		<published>2012-05-12T13:41:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99389#p99389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99389#p99389"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99389#p99389"><![CDATA[
<blockquote class="uncited"><div>Yeah, and btw, I tried incith-weather too, but it has errors as well...</div></blockquote><blockquote class="uncited"><div>&lt;speechles&gt; !wz oslo<br>&lt;sp33chy&gt; Multiple Results Found: Oslo, Minnesota; Oslo, Norway<br><br>&lt;speechles&gt; !wz oslo norway<br>&lt;sp33chy&gt; speechles's weather request; Oslo, Norway (60.1°N/10.8°E); Updated: 7:34 PM CEST (May 12, 2012); Conditions: Clear; Temperature: 50.4°F (10.2°C); High/Low: 55/42°F (12.8/5.6°C); Humidity: 43%; Dew Point: 29°F (-1.7°C); Pressure: 30.15 in/1021 hPa; Wind: North at 4.0 MPH (6.4 KPH)<br><br>&lt;speechles&gt; !fc oslo norway<br>&lt;sp33chy&gt; speechles's forecast request; Oslo, Norway Forecast (High/Low); Updated: 7:34 PM CEST (May 12, 2012); Saturday: 30% Chance of Rain, 55/42°F (12.8/5.6°C); Sunday: Scattered Clouds, 53/39°F (11.7/3.9°C); Monday: Scattered Clouds, 55/39°F (12.8/3.9°C); Tuesday: 30% Chance of Rain, 53/37°F (11.7/2.8°C); Wednesday: Scattered Clouds, 51/41°F (10.6/5°C)<br><br>&lt;speechles&gt; !sky oslo norway<br>&lt;sp33chy&gt; speechles's sky request; Oslo, Norway Astronomy; Sunrise: 4:44 AM CEST; Sunset: 9:43 PM CEST; Moon: Waning Gibbous (52%); Moonrise: 2:18 AM CEST; Moonset: 11:39 AM CEST; Visible Light: 19h 02m; Daylight Length: 16h 58m; Tomorrow: 4m 49s longer<br><br>&lt;speechles&gt; !time oslo norway<br>&lt;sp33chy&gt; speechles's time request; Oslo, Norway (60.1°N/10.8°E); Local Time: 7:39 PM CEST (May 12, 2012)</div></blockquote>I'm unsure where to find the "errors" you talk about, because...the current version of Incith-weather is not found in the TCL Archive. It is found <a href="http://ereader.kiczek.com/scripts/incith-weather.tcl" class="postlink"><strong class="text-strong">by clicking here</strong></a>. This is the version shown in use above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat May 12, 2012 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Suntop]]></name></author>
		<updated>2012-05-12T08:41:10-04:00</updated>

		<published>2012-05-12T08:41:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99387#p99387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99387#p99387"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99387#p99387"><![CDATA[
Yeah, and btw, I tried incith-weather too, but it has errors as well...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10379">Suntop</a> — Sat May 12, 2012 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Suntop]]></name></author>
		<updated>2012-05-12T08:38:45-04:00</updated>

		<published>2012-05-12T08:38:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99386#p99386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99386#p99386"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99386#p99386"><![CDATA[
I get this error when I try to use it:<div class="codebox"><p>Code: </p><pre><code>&lt;^Hawk^&gt; [14:21] Tcl error [pub_wz]: can't read "citychk": no such variable</code></pre></div>Anyone know how to fix this?<br><br>I tried to add a:<div class="codebox"><p>Code: </p><pre><code>set citychk "0"</code></pre></div>at the beginning, but then i get this instead:<div class="codebox"><p>Code: </p><pre><code>«14:32:27» &lt;@Suntop&gt; .wz«14:32:32» -^Hawk^- Sorry, oslo is not listed, check http://classic.wunderground.com/global/NO.html for a city thats close.</code></pre></div>And I know Oslo is listed, cause it used to work..<br>Any ideas is very welcome <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Yeah, and I made all the changes everyone suggested here..still get this error..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10379">Suntop</a> — Sat May 12, 2012 8:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2011-11-08T16:00:16-04:00</updated>

		<published>2011-11-08T16:00:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98164#p98164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98164#p98164"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98164#p98164"><![CDATA[
yes there is, <a href="http://forum.egghelp.org/viewtopic.php?t=10466&amp;highlight=incithweather" class="postlink"> incith-weather</a> is what I use. there's also forecast included.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Tue Nov 08, 2011 4:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aa]]></name></author>
		<updated>2011-11-08T11:35:37-04:00</updated>

		<published>2011-11-08T11:35:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98160#p98160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98160#p98160"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98160#p98160"><![CDATA[
Judging by the lack of responses one would assume that this script is dead in the water.<br><br>Is there another script that offers the same functionality as this one. I liked the 5 day forecast so was hoping for something that works similar.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11050">aa</a> — Tue Nov 08, 2011 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aa]]></name></author>
		<updated>2011-10-26T10:19:17-04:00</updated>

		<published>2011-10-26T10:19:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98030#p98030</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98030#p98030"/>
		<title type="html"><![CDATA[Re: Tcl error [pub_wz]: can't read &quot;citychk&quot;: no s]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98030#p98030"><![CDATA[
<blockquote class="uncited"><div>When using Weather v4.2.6 by DragnLord i get this error when doing the .wz command<br><br><br>Tcl error [pub_wz]: can't read "citychk": no such variable</div></blockquote>I too am now getting that message when using a Canadian city. For example if I use .wz vancover ca I used to get the report but now only get the error message.<br><br>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11050">aa</a> — Wed Oct 26, 2011 10:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sharpie1664]]></name></author>
		<updated>2011-10-17T18:10:12-04:00</updated>

		<published>2011-10-17T18:10:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97939#p97939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97939#p97939"/>
		<title type="html"><![CDATA[Tcl error [pub_wz]: can't read &quot;citychk&quot;: no such ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97939#p97939"><![CDATA[
When using Weather v4.2.6 by DragnLord i get this error when doing the .wz command<br><br><br>Tcl error [pub_wz]: can't read "citychk": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9197">sharpie1664</a> — Mon Oct 17, 2011 6:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Trixar_za]]></name></author>
		<updated>2011-02-25T08:09:07-04:00</updated>

		<published>2011-02-25T08:09:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96200#p96200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96200#p96200"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96200#p96200"><![CDATA[
That's normally the point where I stop helping them at all... Anyway, using the classic interface of wunderground with prior mentioned fix tends to fix it. It's just a simple case of changing www to classic - simpler than that you just can't get.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10958">Trixar_za</a> — Fri Feb 25, 2011 8:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2011-02-25T03:05:17-04:00</updated>

		<published>2011-02-25T03:05:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96197#p96197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96197#p96197"/>
		<title type="html"><![CDATA[Re: fwhat help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96197#p96197"><![CDATA[
<blockquote class="uncited"><div>There are no errors in the tcl, and I have no idea what this may be. Can someone please help me out with this.</div></blockquote>Against my better judgement, (mainly because this script is written horrendously and makes my eyes sore) I'll offer you some help.<br><div class="codebox"><p>Code: </p><pre><code>                regexp {&lt;div class="b"&gt;(.*?)&lt;/div&gt;.*?&lt;div&gt;(.*?)&lt;/div&gt;} $cast match fwhen($f) fwhat($f)                regsub -all {&lt;([^&lt;])*&gt;} $fwhat($f) {} fwhat($f)                regsub -all {[[:cntrl:]]} $fwhat($f) {} fwhat($f)                regsub { » ZIP Code Detail} $fwhat($f) {} fwhat($f)                set fcast($f) "\002$fwhen($f):\002 $fwhat($f)"</code></pre></div>Your section of code you've shown needs to resemble what I've done above. <br><br>Also... Saw this irony on IRC (EFNet/#eggtcl) and seems to relate directly to this exact post.... <blockquote class="uncited"><div>&lt;stream&gt; <a href="http://paste.tclhelp.net/?id=8o6" class="postlink">http://paste.tclhelp.net/?id=8o6</a><br>&lt;@MsMadria&gt; <a href="http://xrl.us/bijvvz" class="postlink">http://xrl.us/bijvvz</a> -&gt; #TCL (16381 bytes)<br>&lt;simple&gt; stream, without knowing the contents of $forecast, it means little...<br>&lt;stream&gt; i'd kinda assume it wouldnt matter<br>&lt;stream&gt; since the error itself is fwhat<br>&lt;stream&gt; and the only instances of fwhat/fwhen is in that section<br>&lt;+@thommey&gt; you kinda assume wrong<br>&lt;stream&gt; yea?<br>&lt;simple&gt; which is populated via $cast, which is from $forecast<br>&lt;+@thommey&gt; regexp sets fwhat(2) if and only if it matches on $cast which is in turn based on $forecast<br>&lt;+@thommey&gt; and obviously, this code depends on it matching<br>&lt;stream&gt; i see<br>&lt;simple&gt; you probably also want to "set f 1" each iteration of $cast too<br> &lt;+@thommey&gt; it's the usual "web scraping fail"<br> &lt;simple&gt; but i might be wrong about that<br> &lt;+@thommey&gt; as soon as a website changes its layout, all scripts stop working<br> &lt;+@thommey&gt; and it's not trivial to fix them<br> &lt;stream&gt; lemme see if i can find it<br> &lt;+@thommey&gt; it's almost as complicated as writing them in the first place<br> &lt;stream&gt; regexp {&lt;div class="tm10 bm15"&gt;(.*?)&lt;/tbody&gt;} $html match forecast<br> &lt;stream&gt; would that be it?<br> &lt;+@thommey&gt; how would I know<br> &lt;+@thommey&gt; I don't have the website source in front of me, knowing what you want to extract<br> &lt;stream&gt; ok nigger<br> quits: stream (<a href="mailto:stream@wargam.es">stream@wargam.es</a>) (Quit: leaving)<br> &lt;+@thommey&gt; what the hell<br> &lt;+@thommey&gt; and once again, I was way too friendly<br> &lt;Razorback&gt; sounds like gimmie what I want and I'll be nice or else attitude... :/<br> &lt;+@thommey&gt; but I never said I wouldn't give him what he wants<br> &lt;+@thommey&gt; I just told him that I need to see the website source<br> &lt;+@thommey&gt; at least I was trying to.. ;<strong class="text-strong"></strong>)<br> &lt;+@thommey&gt; that seems to be a severe insult in his country<br> &lt;+@thommey&gt; to ask for more information</div></blockquote>If you are "stream" from the above quote. You need to watch your f-ing mouth. Ask for help, and don't think anybody will know it's you here. Kinda obvious it is.... lame  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Feb 25, 2011 3:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[streamish]]></name></author>
		<updated>2011-02-24T17:43:32-04:00</updated>

		<published>2011-02-24T17:43:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96193#p96193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96193#p96193"/>
		<title type="html"><![CDATA[fwhat help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96193#p96193"><![CDATA[
When I comment out the following code, the script works fine, but it does not print a forecast.<br><div class="codebox"><p>Code: </p><pre><code>                regexp {&lt;div class=\"b\"&gt;(.*?)&lt;/div&gt;(.*?)&lt;/td&gt;} $cast match fwhen($f) fwhat($f) #               regsub -all {&lt;([^&lt;])*&gt;} $fwhat($f) {} fwhat($f) #               regsub -all {[[:cntrl:]]} $fwhat($f) {} fwhat($f) #               regsub { » ZIP Code Detail} $fwhat($f) {} fwhat($f) #               set fcast($f) "\002$fwhen($f):\002 $fwhat($f)"</code></pre></div>However, if I uncomment the lines I get the following errors:<br><br>[14:37:27] Tcl error [pub_wz_forecast]: can't read "fwhat(2)": no such element in array<br><br>There are no errors in the tcl, and I have no idea what this may be. Can someone please help me out with this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11439">streamish</a> — Thu Feb 24, 2011 5:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bluzman]]></name></author>
		<updated>2011-02-03T08:46:59-04:00</updated>

		<published>2011-02-03T08:46:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95935#p95935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95935#p95935"/>
		<title type="html"><![CDATA[DragnLord's weather script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95935#p95935"><![CDATA[
@stock : Thank you very much. That works perfectly!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11515">bluzman</a> — Thu Feb 03, 2011 8:46 am</p><hr />
]]></content>
	</entry>
	</feed>
