<?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/10466" />

	<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>2018-11-22T13:11:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SVD]]></name></author>
		<updated>2018-11-22T13:11:11-04:00</updated>

		<published>2018-11-22T13:11:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107243#p107243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107243#p107243"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107243#p107243"><![CDATA[
I use SpiKe^^'s SayWeather script, which also uses apixu.com's API. Apixu requires your own API key, but it's free. You can sign in using your Google account to get your free key. <a href="https://tclarchive.org/view.php?id=1793" class="postlink">https://tclarchive.org/view.php?id=1793</a><br><br>In SayWeather, the basic .w command returns a short weather, .wz returns slightly longer, and .wp (or .w+) returns a full weather + forecast. I just remapped the weather plus function to .w so normal calls return everything.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7496">SVD</a> — Thu Nov 22, 2018 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2018-11-22T13:07:20-04:00</updated>

		<published>2018-11-22T13:07:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107242#p107242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107242#p107242"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107242#p107242"><![CDATA[
<blockquote class="uncited"><div>ok folks, this script seems to be dead in the water... is there an update?</div></blockquote>hellohello, check out <a href="http://www.tclscripts.net/files/file/6-blackmeteotcl/" class="postlink">this script</a> which is working as of now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Thu Nov 22, 2018 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hellohello]]></name></author>
		<updated>2018-11-20T16:50:54-04:00</updated>

		<published>2018-11-20T16:50:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107225#p107225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107225#p107225"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107225#p107225"><![CDATA[
ok folks, this script seems to be dead in the water... is there an update?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8691">hellohello</a> — Tue Nov 20, 2018 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2017-10-05T12:20:35-04:00</updated>

		<published>2017-10-05T12:20:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106464#p106464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106464#p106464"/>
		<title type="html"><![CDATA[Re: broke again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106464#p106464"><![CDATA[
Yeah, mine's broken too. For what I've seen, wunderground is redirecting from <a href="https://www.wunderground.com/cgi-bin/findweather/getForecast?query=Moscow,Russia" class="postlink">https://www.wunderground.com/cgi-bin/fi ... cow,Russia</a> to <a href="https://www.wunderground.com/weather/ru/moscow" class="postlink">https://www.wunderground.com/weather/ru/moscow</a>. However, the script should be going to the mobile site <a href="http://mobile.wunderground.com/cgi-bin/findweather/getForecast?brand=mobile&amp;query=Moscow,Russia" class="postlink">http://mobile.wunderground.com/cgi-bin/ ... cow,Russia</a> but it isn't doing so. Does anyone know to force the script to check the mobile version (which is working AFAIK)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Thu Oct 05, 2017 12:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[planetb]]></name></author>
		<updated>2017-09-07T20:15:03-04:00</updated>

		<published>2017-09-07T20:15:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106431#p106431</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106431#p106431"/>
		<title type="html"><![CDATA[broke again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106431#p106431"><![CDATA[
She's really broke this time. Only seeing the following :<br><br>&lt;@Planetb&gt; LJ_'s weather request; High/Low: Unavailable; Wind: West<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11512">planetb</a> — Thu Sep 07, 2017 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2017-07-05T10:53:27-04:00</updated>

		<published>2017-07-05T10:53:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106352#p106352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106352#p106352"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106352#p106352"><![CDATA[
<blockquote class="uncited"><div>It looks to be broken again. I get the following error (with debug=1), does anyone else?</div></blockquote>My queries are working just fine, the only part that's broken is the astronomy query, but I don't use it at all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Wed Jul 05, 2017 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rjpearce]]></name></author>
		<updated>2017-07-03T17:55:27-04:00</updated>

		<published>2017-07-03T17:55:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106350#p106350</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106350#p106350"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106350#p106350"><![CDATA[
It looks to be broken again. I get the following error (with debug=1), does anyone else?<br><br>21:45:48 WeatherBabe | [21:45:48] pulling mobile data, missing fc1c, missing fc1d, missing fc1hf, missing windd<br>21:45:49 WeatherBabe | [21:45:49] Tcl error [incith::weather::weather_handler]: can't read "foutput(fc1hf)": no such element in array<br><br>It looks like they have made significant changes to the site again with lots of lovely dynamic content loading.<br><a href="https://www.wunderground.com/gb/london/zmw:00000.40.03779?MR=1" class="postlink">https://www.wunderground.com/gb/london/ ... 03779?MR=1</a><br><br>Looking at the content of the page and guessing the original content the regexes bound to I suspect these regexes need to be updated.<br><div class="codebox"><p>Code: </p><pre><code>#dayset fc_regexp_day {&lt;td class="taC" style="width: 20%;"&gt;(.+?)&lt;/td&gt;}#conditionset fc_regexp_cond {&lt;div&gt;&lt;img src=".+?\.gif" alt="(.+?)" width="\d\d" height="\d\d" class="condIcon" /&gt;&lt;/div&gt;}# high/lowset fc_regexp_highlow {&lt;div class="b nobr"&gt;&lt;span style="color: #900;"&gt;(.+?)° F&lt;/span&gt;&lt;span style="font-weight: normal; color: #999;"&gt;\|&lt;/span&gt;&lt;span style="color: #009;"&gt;(.+?)° F&lt;/span&gt;&lt;br /&gt;.*?° C.*?° C.*?&lt;/div&gt;}</code></pre></div>I'm currently working on new regexes.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><br>Failing that we could rewrite the script to use the Wunderground API. They are offering free dev account for basic querying. Using that is going to be way way way more reliable than the html. Take a look:<br><br><a href="https://www.wunderground.com/weather/api/d/questionnaire.html?plan=a&amp;level=0" class="postlink">https://www.wunderground.com/weather/ap ... =a&amp;level=0</a><br><br><a href="https://www.wunderground.com/weather/api/d/docs?MR=1" class="postlink">https://www.wunderground.com/weather/api/d/docs?MR=1</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7549">rjpearce</a> — Mon Jul 03, 2017 5:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starryeyedhaze]]></name></author>
		<updated>2017-06-23T11:10:57-04:00</updated>

		<published>2017-06-23T11:10:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106341#p106341</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106341#p106341"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106341#p106341"><![CDATA[
Hi! It looks like wunderground turned off ssl v3 and so I had to change the following:<br><div class="codebox"><p>Code: </p><pre><code>OLD: ::http::register https 443 [list ::tls::socket -request 1 -require 0 -ssl3 1 -tls1 1]NEW: ::http::register https 443 [list ::tls::socket -request 1 -require 0 -ssl3 0 -tls1 1]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11408">starryeyedhaze</a> — Fri Jun 23, 2017 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[creasy]]></name></author>
		<updated>2017-06-01T02:59:48-04:00</updated>

		<published>2017-06-01T02:59:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106306#p106306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106306#p106306"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106306#p106306"><![CDATA[
I'm getting this error now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <div class="codebox"><p>Code: </p><pre><code>Tcl error [incith::weather::weather_handler]: can't read "html(todays_day)": no such element in array</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12611">creasy</a> — Thu Jun 01, 2017 2:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-05-24T04:09:43-04:00</updated>

		<published>2017-05-24T04:09:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106283#p106283</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106283#p106283"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106283#p106283"><![CDATA[
Looked at the page source and there's no "barometer" so the <em class="text-italics">cond</em> variable isn't created, hence the error. In order to still get the pressure just replace:<div class="codebox"><p>Code: </p><pre><code># BAROMETERif {[regexp -- {"pressure": (.*?),} $html - bar]} { regexp -- {barometer : "(.*?)"} $html - cond set output(pressure_data) "$bar &amp; $cond"} </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code># BAROMETERif {[regexp -- {"pressure": (.*?),} $html - bar]} {set output(pressure_data) "$bar"}</code></pre></div>If <em class="text-italics">barometer</em> is temporary missing from the page and want it to be shown when and if will become available again then replace the above code with:<div class="codebox"><p>Code: </p><pre><code>if {[regexp -nocase {"pressure": (.*?),} $html - bar]} {if {[regexp -nocase {"barometer": (.*?),} $html - cond]} {set output(pressure_data) "$bar &amp; $cond"} else {set output(pressure_data) "$bar"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed May 24, 2017 4:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simboy1234]]></name></author>
		<updated>2017-05-24T02:20:52-04:00</updated>

		<published>2017-05-24T02:20:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106282#p106282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106282#p106282"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106282#p106282"><![CDATA[
Thank you very much planetb, that fixed the issue.<br><br>Cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12535">simboy1234</a> — Wed May 24, 2017 2:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[planetb]]></name></author>
		<updated>2017-05-23T17:22:03-04:00</updated>

		<published>2017-05-23T17:22:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106279#p106279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106279#p106279"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106279#p106279"><![CDATA[
I got mine working again by commenting out the following section :<br><br> # BAROMETER<br>      #if {[regexp -- {"pressure": (.*?),} $html - bar]} {<br>      #  regexp -- {barometer : "(.*?)"} $html - cond<br>      #  set output(pressure_data) "$bar &amp; $cond"<br>      #}<br><br><br>I dont have time anymore time to play with it before I went to work.  <br><br>Seems to work :<br><br>Planetb's weather request; Glen Burnie, Maryland (39.15999985/-76.62999725); Local Time: 6:52 AM (May 23, 2017); Updated: 42 seconds ago; Temperature: 57.0°F (13.9°C); Feels-like: 57.0°F (13.9°C); High/Low: Unavailable; Humidity: 93%; Wind: WNW<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11512">planetb</a> — Tue May 23, 2017 5:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simboy1234]]></name></author>
		<updated>2017-05-23T05:22:07-04:00</updated>

		<published>2017-05-23T05:22:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106277#p106277</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106277#p106277"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106277#p106277"><![CDATA[
Yes seems to be broken<br><br>.[12:17:20] incith:weather-2.9c: &lt;Simboy/#pwn&gt; !weather doha, qatar<br>[12:17:22] got temperature 37.6 F<br>[12:17:22] Tcl error [incith::weather::weather_handler]: can't read "cond": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12535">simboy1234</a> — Tue May 23, 2017 5:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[planetb]]></name></author>
		<updated>2017-05-21T11:29:37-04:00</updated>

		<published>2017-05-21T11:29:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106274#p106274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106274#p106274"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106274#p106274"><![CDATA[
Looks like the last released version broke sometime recently. I have not done any troubleshooting yet, but maybe this afternoon If I get some time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11512">planetb</a> — Sun May 21, 2017 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mtnvortest]]></name></author>
		<updated>2016-08-16T17:27:28-04:00</updated>

		<published>2016-08-16T17:27:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105333#p105333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105333#p105333"/>
		<title type="html"><![CDATA[incith:weather (2.8p) (Dec. 18th, 2008)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105333#p105333"><![CDATA[
<blockquote class="uncited"><div>There is also the issue of no results or multiple results found. In the 1st case the bot doesn't respond at all, while in the 2nd instead of a list of possible hits it returns<div class="codebox"><p>Code: </p><pre><code>High/Low: Unavailable; Wind: Calm</code></pre></div>Any ideas on how to fix this?</div></blockquote>Sorry, creasy. I'm just now getting back to this. Yes, it turns out that I really am having the same issue with the 'High/Low' field. Unavailable. I'm not sure what I was looking at when I first responded to this. I'm surprised that nobody else mentioned this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12610">mtnvortest</a> — Tue Aug 16, 2016 5:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
