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

	<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>2014-04-01T11:18:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[neocharles]]></name></author>
		<updated>2014-04-01T11:18:42-04:00</updated>

		<published>2014-04-01T11:18:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102716#p102716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102716#p102716"/>
		<title type="html"><![CDATA[Weather Script - .py to .tcl conversion?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102716#p102716"><![CDATA[
Thank you for doing this - Apparently I didn't have notifications turned on.<br><br>My problem now, however, is that it uses tdom.  I used apt-get to install tdom and tdom-dev, but it still errors out when starting it.<br><div class="codebox"><p>Code: </p><pre><code>me@me:~/eggdrop/$ tclsh% package require tdom0.8.3% exit</code></pre></div>So it looks like it's installed... however<br><div class="codebox"><p>Code: </p><pre><code>[11:18:14] Tcl error in file 'eggdrop.conf':[11:18:14] can't find package tdom    while executing"package require tdom"    (file "scripts/fweather.tcl" line 12)    invoked from within"source scripts/fweather.tcl"    (file "eggdrop.conf" line 1405)[11:18:14] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</code></pre></div><br>&lt;edit&gt;<br><br>Looks like I had to just move over some things... thanks speechless for assisting.<br><br>Now, it's just a matter of re-writing some of this script to parse the data correctly....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12227">neocharles</a> — Tue Apr 01, 2014 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2013-11-05T11:58:08-04:00</updated>

		<published>2013-11-05T11:58:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102185#p102185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102185#p102185"/>
		<title type="html"><![CDATA[Weather Script - .py to .tcl conversion?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102185#p102185"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># e-mail:  tomekk/@/tomekk/./org# home page: http://tomekk.org/## Version 0.1## This file is Copyrighted under the GNU Public License.# http://www.gnu.org/copyleft/gpl.html###########################################################bind pub - !fw fweatherpackage require tdompackage require httpproc fweather { nick uhost hand chan arg } {        set arg [string trim $arg]        if {$arg != ""} {                set f_url "http://thefuckingweather.com/?where=$arg"                       regsub -all {\s} $f_url "+" f_url                set f_fake_ua "Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0"                set f_token [http::config -useragent $f_fake_ua]                if {[catch {set f_token [::http::geturl $f_url -timeout 10000]}]} {                        putquick "PRIVMSG $chan :Error retrieving [censored] weather data!"                } else {                        set f_data [[dom parse -html [http::data $f_token]] getElementsByTagName span]                                foreach f_loc_temp $f_data {                                set location_data [string trim [$f_loc_temp asText]]                                if {$location_data != ""} {                                        if {[regexp {^([0-9]+)$} $location_data]} {                                                set location_data "${location_data}°"                                        }                                        putquick "PRIVMSG $chan :$location_data"                                } else {                                        putquick "PRIVMSG $chan :location: $arg not found"                                }                        }                }        } else {                putquick "PRIVMSG $chan :use: !fw &lt;location&gt;"        }}putlog "fweather.tcl ver 0.1 by tomekk loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Tue Nov 05, 2013 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neocharles]]></name></author>
		<updated>2013-07-28T14:50:03-04:00</updated>

		<published>2013-07-28T14:50:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101905#p101905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101905#p101905"/>
		<title type="html"><![CDATA[Weather Script - .py to .tcl conversion?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101905#p101905"><![CDATA[
I am looking at this script here... <a href="https://code.google.com/p/crappy-irc-bot/source/browse/plugin/[censored].py?r=569da12c7660ee19e543e310dd10323ab1791b42" class="postlink">https://code.google.com/p/crappy-irc-bo ... 3ab1791b42</a><br><br>Any shot that can easily be moved over (and work) as a tcl file for an eggdrop?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12227">neocharles</a> — Sun Jul 28, 2013 2:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
