<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>A WDTV application to handle weechat download</title>
	<atom:link href="http://weecommand.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://weecommand.wordpress.com</link>
	<description>Browse and start IRC download on TV screen</description>
	<lastBuildDate>Wed, 24 Jun 2009 09:15:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='weecommand.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>A WDTV application to handle weechat download</title>
		<link>http://weecommand.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://weecommand.wordpress.com/osd.xml" title="A WDTV application to handle weechat download" />
	<atom:link rel='hub' href='http://weecommand.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Weecommand Prototype 3 !</title>
		<link>http://weecommand.wordpress.com/2009/06/21/weecommand-prototype-3/</link>
		<comments>http://weecommand.wordpress.com/2009/06/21/weecommand-prototype-3/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 09:04:53 +0000</pubDate>
		<dc:creator>realtebo</dc:creator>
				<category><![CDATA[releases]]></category>

		<guid isPermaLink="false">http://weecommand.wordpress.com/?p=46</guid>
		<description><![CDATA[Prologue Thanks a lot for those of you helping me to develop a stable and functional Weecommand.app.bin. Be patient for this English text. I&#8217;m Italian and my English it&#8217;s not really good. If some text needs a best explanation feel free to add a comment to this page. I&#8217;ll appreciate it much. Thanks to friends [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weecommand.wordpress.com&amp;blog=8133148&amp;post=46&amp;subd=weecommand&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>Prologue</strong></h2>
<p>Thanks a lot for those of you  helping me to develop a stable and functional <em>Weecommand.app.bin</em>.</p>
<p>Be patient for this English text. I&#8217;m Italian and my English it&#8217;s not really good. If some text needs a best <span>explanation feel free to add a comment to this page. I&#8217;ll appreciate it much.</span><img class="alignright" src="http://www.wdc.com/global/images/products/img2/300/wdfWDTV.jpg" alt="" width="300" height="300" /></p>
<p style="text-align:left;"><span>Thanks to friends of </span><a href="http://forum.ubuntu-it.org" target="_blank">forum.ubuntu-it.org</a> who helped me a lot with bash coding phase, and friend of  <a href="http://wdtvforum.com/main/index.php" target="_blank">WDTV-Forum</a> who helped with developing of bin structure, with cron, init.d and a lot of stuff.</p>
<h2><strong>What does Weecomand do?</strong></h2>
<p>Weecomand<strong> </strong>is an<strong> </strong>application for the WDTV, <a href="http://www.wdc.com/it/products/products.asp?driveid=572" target="_blank">Western Digital TV High Definition Media Player</a>. If you have modified your WDTV&#8217;s firmware, you can add custom application at it. One of this is <em>Weecommand</em>.With <em>Weecommand,</em> your WDTV will be able to browse available file served fron you preferred IRC server bots, and, simply  pressing Enter on your remote, WDTV will request the download of the file.</p>
<p><em>Weecommand</em> use IRC servers and bot to download files. We use <a href="http://weechat.flashtux.org/" target="_blank">Weechat</a> to download and not eMule/aMule because, if there is no queue on a bot , weechat will start <em>immediately to download</em> it, and yo can navigate to your weechat download dir and, if it&#8217;s  a media file, start <em>immediately</em> to watch/listen it ! weechat downloads file at the max transfer rate available on your connection.</p>
<p>In 3 words: Browse, Choose, Watch ! Really, this is the TV-on-demand I ever looked for !!!</p>
<h3><span id="more-46"></span></h3>
<h2><strong>How to use it after setup<br />
</strong></h2>
<p>From Home Screen of your WDTV, select Videos.</p>
<blockquote><p>FAQ: It&#8217;s only a design choice to start from &#8216;Video&#8217;. Weecommand can manage download of every kind of file (pdf, tar, zip, txt, etc&#8230;). Your WDTV will download all of them, but only Photos, Videos or Music can be played by WDTV. You, e.g., cannot watch a PDF document.</p></blockquote>
<p><img class="aligncenter size-medium wp-image-30" title="Weecommand directory on first page" src="http://weecommand.files.wordpress.com/2009/06/p1020634.jpg?w=300&#038;h=225" alt="Weecommand directory on first page" width="300" height="225" />In the <em>media list</em> you can see the main root of my application, &#8220;<em>Weecommand</em>&#8220;.</p>
<blockquote><p>It&#8217;s automatically created at startup. It&#8217;s empty. <em>It will be filled 1 time at hour, </em>or when you for the first time enter into it.This dir is located at /tmp/media/usb/Weecommand. So is kept if you power off your WDTV, but will be deleted after a <em>reboot</em> command, of you unplug power chord.</p></blockquote>
<p>Press Ok to enter into &#8216;Weecommand&#8217; dir.</p>
<p><img class="aligncenter size-medium wp-image-48" title="Server and channel List" src="http://weecommand.files.wordpress.com/2009/06/p1020639.jpg?w=300&#038;h=225" alt="Server and channel List" width="300" height="225" /></p>
<p>So now select a bot pressing OK on it. The first list you see is a list of coupled server and channel names.</p>
<blockquote><p>FAQ: Weecommand is configurable, see below. So it can handle multiple list per channel, multiple channel and multiple servers. It simply group every list of a channel into a single directory</p></blockquote>
<p>If you, e.g., enter into darksin#L3Gg3ndar1, one of the pre-configured server (it&#8217;s Italian, with Italian content, but like I said before, <em>it&#8217;s configurable</em>). You can enter you preferred servers, channels and web lists). Choose an item and press Enter.</p>
<p><img class="aligncenter size-medium wp-image-31" title="Botlist" src="http://weecommand.files.wordpress.com/2009/06/p1020635.jpg?w=300&#038;h=225" alt="Botlist" width="300" height="225" />If it&#8217;s the first time you use Weecommand, WDTV will loads the list of the bot of configured server, directly from web, then it will create a different directory for each of bot present in the channel list</p>
<blockquote><p>FAQ: Note: This list will be preserved after power off and/or rebooting of WDTV. This list is created into Weecomand directory (see above). Everyone of this dirs, are initially <em>empty</em>.<em> </em>I cannot recreate every time the entire disk structure in one single step, because in some channel there are something like 80 or more bots serving a minium of 100 files each one. Creating 8.000 directory will take about 10 minutes on a WDTV !!!</p></blockquote>
<p><img class="aligncenter size-medium wp-image-32" title="File List of Selected Bot" src="http://weecommand.files.wordpress.com/2009/06/p1020636.jpg?w=300&#038;h=225" alt="File List of Selected Bot" width="300" height="225" /></p>
<p>WDTV will create into the selected directory the list of <em>all files server by selected bot</em>.</p>
<blockquote><p>FAQ: Differently from eMule or Bearshare or Kazaa-like systems, in the mirc bot you find <em>only tested and verified file</em>. So no fake-file downloaded and no bad impression of your wife after showing to her happy a Disney Film &#8230; but it&#8217;s really a porn !</p>
<p>If you&#8217;ve waited some seconds from one screen page and the next, within one hour no reload/recreating will be done, so navigating <em>in the same path</em> will be instantaneous !</p></blockquote>
<p>Select what you want download and simply press OK to enqueue it into weechat. If everything is OK, WDTV will show this message.</p>
<p><img class="aligncenter size-medium wp-image-34" title="File enqueued" src="http://weecommand.files.wordpress.com/2009/06/p1020638.jpg?w=300&#038;h=225" alt="File enqueued" width="300" height="225" /></p>
<p>If weechat is not running on your WDTV, Weecomand warn you to start weecommand (from a telnet or ssh session) then to retry.</p>
<p><img class="aligncenter size-medium wp-image-33" title="Weechat not running" src="http://weecommand.files.wordpress.com/2009/06/p1020637.jpg?w=300&#038;h=225" alt="Weechat not running" width="300" height="225" /></p>
<p>Really, it&#8217;s very very very simple to use</p>
<h2><strong>How to download and run Weecommand</strong></h2>
<h3><strong>Prerequisites<br />
</strong></h3>
<p>You must have a <a href="http://www.wdc.com/it/products/products.asp?driveid=572" target="_blank">WDTV</a>.</p>
<p>You must have at least an DSL line. If your line is able to <em>really </em>download at least at 4 Mbit/sec, OK. If you&#8217;ve a 1 Mbit/sec line, you can download file, but not watch a film while downloading it. On a 56K line&#8230; please don&#8217;t even try to download a film.</p>
<p>You must mod your WDTV&#8217;s firmware. See the <a href="http://wiki.wdtv.org/doku.php?id=ext3-boot-releases" target="_blank">Wiki about ext3-boot-firmware</a>. Simply use the ext3 firmware to update the WDTV&#8217;s firmware.</p>
<p>You must have a compatible <a href="http://wiki.wdtv.org/doku.php?id=supported_usb_devices" target="_blank">USB to Ethernet adapter</a> or a <a href="http://wiki.wdtv.org/doku.php?id=usb_wireless_dongles_table_page" target="_blank">USB to Wifi Adapter</a> and your WDTV MUST tell its IP on reboot. If your <em>modded WDTV</em> is not able to jump into LAN then ask help on <a href="http://wdtvforum.com/main/index.php?board=8.0" target="_blank">WDTV user forum</a></p>
<p>You must download and copy into your usb boot pen&#8217;s root the event-osd application. <a href="http://wdtv.elmarweber.org/index.php/2009/event-osd-r162-released/" target="_blank">Here the last version</a>. <em>Weecommand </em>use the version <strong>r162</strong> of this application to react when you enter into <em>Weecommand </em>directory.</p>
<blockquote><p>FAQ: If you have a older version of event-osd, simply substitute the event-osd.app.bin into the root of your usb boot device.</p></blockquote>
<p>You must install <em><a href="http://weechat.flashtux.org/" target="_self">weechat</a>, screen, </em>and<em> cron</em>. So telnet / ssh into it and digit:</p>
<ul>
<li>ipkg update</li>
<li>ipkg upgrade</li>
<li>ipkg install weechat screen cron</li>
</ul>
<blockquote><p>FAQ: <em>Weechat</em> is a easy installable, easy configurable, ligth weight, IRC client. Weecommand dialogue with Weechat and Weechat will request (eventually wait) and then download from a bot the file you selected on your TV screen.</p>
<p><em>Screen</em> is a resident-in-memory program that allow an other software to be executed into a terminal (like <em>telnet</em> or <em>ssh</em>)<em> in a special way</em>. It run the other software into background. After installed <em>Screen,</em> when launching weechat, instead of using classical <em>weechat-curses</em> command, digit: <em><br />
</em></p>
<pre>screen -dmS wc /opt/bin/weechat-curses.</pre>
<p>WDTV will execute <em>weechat</em> into background, so <em>you can close your terminal without killing weechat process</em>.</p>
<p>When you want to see the interface of weechat, at the prompt digit: <em> </em></p>
<pre>screen -r wc</pre>
<p>To exit from weechat without closing <em>on your local keyboard press  Ctrl+A then press D</em> (without CTRL). <em>Screen</em> will keep weechat running into background.</p>
<p><em>Cron </em>is used to execute some task about <em>Weecomand</em> one time at hour.</p></blockquote>
<h3><strong>How to correctly configure <em>Weechat</em></strong></h3>
<p>It&#8217;s mandatory that you  configure weechat to use the <em>same servers and the channels configure into Weecomand</em>.</p>
<blockquote><p>TIP: I suggest you to install a small editor called <em>nano</em>; this because pre-installed editor<em> </em>named<em> vi</em> is difficult to use if you don&#8217;t already know it (<em>ipkg install nano</em>).</p></blockquote>
<p>Edit the <em>weechat.rc</em> file. This file is located into <em>/.weechat/ </em>directory, but some of us have it located into <em>/opt/.weechat/</em> directory. All of following lines are very very very important. Be sure this lines are configured as shown. Certainly, this rows are only a small part of the .rc file. Be patient and search for them into .rc file. <em>None of them are created from scratch, all of them are already into your .rc file</em>.</p>
<ol>
<li>
<pre>irc_fifo_pipe = on</pre>
<p>This informs weechat to listen from upcoming command from external world. Weecommand use weechat fifo pipe file to communicate to it which command to execute. <em>Essential.</em></li>
<li>
<pre>dcc_auto_accept_files = on</pre>
<p>This tell weechat to don&#8217;t wait for user confirm before download file. <em>Essential</em>.</li>
<li>
<pre>dcc_download_path = "full-and-quoted-path-to-download-dir". <strong>
</strong></pre>
<p><strong>It&#8217;s very important that your download dir is located into one of your usb media.</strong> Absolutely <em>don&#8217;t leave it into default dir,</em> because it&#8217;s located into a sub of the root and WDTV will never show you the content of root dir of a subfolder of the root dir.<br />
<strong>FAQ</strong>: To avoid some problem due to a weechat&#8217;s bug, follow this:</p>
<ul>
<li>find the full path to your usb disk: For example my disk is at
<pre>/tmp/media/usb/USB1/be2531ef-41e4-43e4-9722-7cf2683edca8</pre>
</li>
<li>create a dir into the root of the usb disk. For example
<pre># mkdir /tmp/media/usb/USB1/be2531ef-41e4-43e4-9722-7cf2683edca8/Weechat</pre>
</li>
<li>now you have the full path where to save files downloaded from Weechat. In this example
<pre>/tmp/media/usb/USB1/be2531ef-41e4-43e4-9722-7cf2683edca8/Weechat</pre>
</li>
<li>if not present, create an empty and standard directory called media into root of wdtv. This special name allow WDTV to show you every sub dir like it was a phisical media.
<pre># mkdir /media/</pre>
</li>
<li>Now create a <strong>symbolic</strong> link  this to a <strong>NON</strong>-existing subdir of  /media dir: For example i named my disk &#8216;tera&#8217; because it&#8217;s 1 TB wide:
<pre># ln -s /media/tera /tmp/media/usb/USB1/be2531ef-41e4-43e4-9722-7cf2683edca8</pre>
</li>
<li>Use the directory weechat for weechat download, but <em>use it through the symbolic link</em>
<pre>dcc_download_path=/media/tera/weechat</pre>
</li>
</ul>
</li>
<li>
<pre>dcc_auto_resume = on</pre>
<p>if a download after a while stops, you can restart the same file from the same bot and the download will restart from the point it was, without waste of time restarting to download entirely</li>
<li>
<pre><em>server_name = "S</em><em>erverName"</em></pre>
<p>Choose a fantasy (but one-word) name for the first server you want use. To use the Italian preconfigured one configure it to &#8220;darksin&#8221;.</li>
<li>
<pre>server_autoconnect = on</pre>
<p>If it&#8217;s not on, you must login manually every time you start weechat</li>
<li>
<pre>server_address = "irc.<em>server</em>.it"</pre>
<p>Enter the right address of the irc server. For example, the preconfigured server &#8216;darksin&#8217; has the address &#8220;irc.darksin.it&#8221;</li>
<li>
<pre>server_username = "your-nick"</pre>
<p>Choose a nick.</li>
<li>
<pre>server_autojoin = "#channelName"</pre>
<p><em>Absolutely the most important setting</em>. This is the channel from which we can download the listed file. For example, the pre-configure channel is #L3gg3ndar1. (Yes, it&#8217;s a funny way to write&#8230;, so be carefully when you write these parameters)</li>
</ol>
<h3>Downloading and configuring Weecommand</h3>
<p>Now you&#8217;re ready to download the 2 files of my application from my MediaFire free space.</p>
<ul>
<li><a href="http://www.mediafire.com/?zzizomyonto" target="_blank">weecommand.app.bin</a><br />
this is the real application. Copy it into the root of the usb boot pen&#8217;s root</li>
<li><a href="http://www.mediafire.com/?0gjjidyjy5e" target="_blank">weecommand.app.event</a><br />
this file is used to interface my app with event-osd application. Copy it into the root of your usb boot pen&#8217;s root</li>
</ul>
<p>Reboot your WDTV (Yes, it&#8217;s mandatory, sorry) so It can mount Weecommand as an extension of your firmware.  Now edit  the file /apps/weecommand/servers.ini. This file include detailed instructions and four rows as example.</p>
<pre>Weblist=Leggendari1,darksin,#L3Gg3ndar1,http://siamol3gg3ndar1.altervista.org/lista1/index.php
Weblist=Leggendari2,darksin,#L3Gg3ndar1,http://siamol3gg3ndar1.altervista.org/lista2/index.php
Weblist=Leggendari3,darksin,#L3Gg3ndar1,http://siamol3gg3ndar1.altervista.org/lista3/index.php
Weblist=Eagle,explosion,#eagles,http://listaeagles.altervista.org/index.php</pre>
<p>Every entry start with &#8216;Weblist=&#8217;</p>
<p>The first parameter  here  is a unique fantasy name for this list. <em>It&#8217;s mandatory that every name it unique</em>.</p>
<p>The second parameter is the server name. it must be <em>identical</em> to which you configured into <em>weechat.rc</em> file at item <em>server_name = &#8220;S</em><em>erverName&#8221;</em></p>
<p>The third<em> is the channel name</em>. It must be identical to which configured at <em>server_autojoin = &#8220;#channelName&#8221; </em>into<em> weechat.rc </em>file</p>
<p>The last is the web address of channel content list. If your channel has divided list into more than one file, simply follow the example above and create one row for each web list. WDTV will group every list of channel into a single directory (see the second image of the how-to)</p>
<blockquote><p>FAQ: The four web lists included into initial servers.ini are full of Italian contents.To find the web list of your preferred channel,  you need to open an IRC client on your pc, and enter the channel you love. Then digit !list at the IRC client prompt. The channel will reply writing the address of its list. To be sure, enter this address into your browser, and navigate until you find a web list formatted like <a href="http://siamol3gg3ndar1.altervista.org/lista1/index.php" target="_blank">this one</a>. Well, if the list you like is table -formatted, you can copy &amp; paste the list URL into a row of servers.ini</p></blockquote>
<p>After configured this, you must simply enter via OSD into the Weecommand dir. <em>Weecommand</em> will evaluate your .ini file and download every list. Will be created one dir for each server|channel couple, and into this dirs will be created a list of ALL available bot from ALL the lists of this channel. See image 3 from the How-To above to see how does it look.</p>
<p>Now you can enter into a bot, choose a file and start downloading it just pressing OK.</p>
<blockquote><p>FAQ: <em>Weecommand</em> is able to understand if <em>Weechat</em> is not running. If this is your case, Weecommand will warn you. Just log into WDTV, start <em>weechat</em> (use the method explained above in the section <em>How to download and run Weecommand</em>, start it into a screened session)</p></blockquote>
<h2><strong>How to verify weechat is really downloading your files?</strong></h2>
<p>To verify if download is really started you can login via telnet or ssh into WDTV, and open weechat. Navigate to the DCC screen and you&#8217;ll se you download progress.</p>
<p>If not downloading, go to server screen and read some rows. Probably the bot told you that you&#8217;re enqueued, so you must only wait.</p>
<p>If server tell you that the command is wrong, please, copy this error and past into a comment to this post. it&#8217;s very important for me to have as infos as possible from you in case my <em>Weecommand </em>it&#8217;s not working on your home!</p>
<h2>KNOWN BUG</h2>
<p>Weecommand actually is not able to handle download when filename contain  &#8216;[' and / or ']&#8216;. I&#8217;m already at work to work-around this bug.<em> Thanks to &#8216;Rinopla&#8217; for its bug submission.</em><cite></cite><cite class="fn"></cite></p>
<h2>The complete historical change-log</h2>
<pre>__        __                                                      _
\ \      / /__  ___  ___ ___  _ __ ___  _ __ ___   __ _ _ __   __| |
 \ \ /\ / / _ \/ _ \/ __/ _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` |
  \ V  V /  __/  __/ (_| (_) | | | | | | | | | | | (_| | | | | (_| |
   \_/\_/ \___|\___|\___\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_|

 ____            _        _                      _____
|  _ \ _ __ ___ | |_ ___ | |_ _   _ _ __   ___  |___ /
| |_) | '__/ _ \| __/ _ \| __| | | | '_ \ / _ \   |_ \
|  __/| | | (_) | || (_) | |_| |_| | |_) |  __/  ___) |
|_|   |_|  \___/ \__\___/ \__|\__, | .__/ \___| |____/
                              |___/|_|</pre>
<p><strong>browse file list from IRC bot on you television and download them using your remote !</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Realized from Mirko Tebaldi, also known as &#8220;REALTEBO&#8221;</p>
<p><strong>June 21, 2009: Prototype 3</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Fixed: improved detection of strange situation on the first running of updater<br />
Fixed: remove a possible causes of error in hardcoded path<br />
Fixed: remove useless download of list files<br />
Fixed: no more exit code 100 on success of adding a download<br />
Fixed: now forced creation of already existing sim-link to be sure they&#8217;re updated<br />
Fixed: no more duplication of crontabs jobs<br />
Fixed: removed some echo commands not directed to logfile<br />
Fixed: diff output correctly redirected<br />
Code: logging simplfied a lot and reduced, in size, a bit<br />
Code: log is recreated after reboot, but the latest log is keeped (with .old extension)<br />
Code: upgraded app.event to use event-osd r162<br />
Code: changelog is now on a separated file<br />
Added: stage 1 for customization. Created an INI file. Simply edit with care following instructions<br />
Added: support for multi-server, multi-channel, multi-list<br />
Added: every bot of a channel is listed under Weecommand/&lt;server_name&gt;|#&lt;channel-name&gt;/<br />
Added: added a second stage of caching: no update of bot list if parent weblist has not changed<br />
Added: added a third stage of caching: no update of file list if parent bot has not changed<br />
Added: if you have only ONE channel, WDTV will not show you the list of server|channel discussed above<br />
Added: new retrieving method for pack numbers. Ten times more fast to add file to weechat fifo!<br />
Known-bug: unable to detect if some bot was removed from server, or if you remove one channel list from .ini. Reboot or delete it manually</p>
<p><strong>June 14, 2009: Prototype 2</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Code: completely rewritten, sectioned, modularized and commented<br />
Code: improved debugging infos<br />
Code: improved detecting method for weechat pid<br />
Added: auto-creating of a Weecommand root directory in /tmp/media/usb using a init.d script<br />
Added: hourly auto-updating of the botlist with cron .<br />
Added: first stage of caching system completed.<br />
Added: customized OSD message box on adding download<br />
Added: detection (and warning on OSD to user) if weechat is not running<br />
Added: detection (and warning on OSD to user) if weechat fifo is not found<br />
Fixed: removed any useless files from the .bin before distribution<br />
Fixed: when .weechat.rc is located on classical path the command was not perfect. Now fixed</p>
<p><strong>June 07, 2009: Prototype 1.01</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Fixed: file list created was the same into any dirs. (A my typo in the code, sorry)</p>
<p><strong>June 06, 2009: Prototype 1</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Working</p>
<h3><strong>Where to ask for help</strong></h3>
<p>I&#8217;m  <strong>online everyday<em> </em></strong>into WDTV users forum<strong>. </strong>Start a thread into<a href="http://wdtvforum.com/main/index.php?board=8.0" target="_blank"> this section of the forum</a>. Please prefix the title with  [Weecommand <em>and-the-version</em>] tag.</p>
<p><em>Please attach your following file to any help request: </em></p>
<ul>
<li><em>/apps/weecommand/</em><em>logfile<br />
</em></li>
<li><em>/apps/event-osd/event-osd.log </em>(if any)<em><br />
</em></li>
<li><em>/apps/weecommand/servers.ini</em></li>
<li><em>/.weechat/</em><em>logs/</em><strong>&lt;server-name&gt;</strong><em>.weechatlog</em></li>
</ul>
<p>I&#8217;m Italian, but on the forum you must write in English. If you want to write to me only in Italian, please use the Private Message system from the forum.</p>
<p style="text-align:right;"><em>Un saluto affettuoso a tutti gli italiani,</em></p>
<p style="text-align:right;"><em>Realtebo<br />
</em></p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:4729px;width:1px;height:1px;">▌                            ▌<br />
▌▖▌▞▀▖▞▀▖▞▀▖▞▀▖▛▚▀▖▛▚▀▖▝▀▖▛▀▖▞▀▌<br />
▙▚▌▛▀ ▛▀ ▌ ▖▌ ▌▌▐ ▌▌▐ ▌▞▀▌▌ ▌▌ ▌<br />
▘ ▘▝▀▘▝▀▘▝▀ ▝▀ ▘▝ ▘▘▝ ▘▝▀▘▘ ▘▝▀▘</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weecommand.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weecommand.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weecommand.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weecommand.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weecommand.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weecommand.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weecommand.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weecommand.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weecommand.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weecommand.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weecommand.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weecommand.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weecommand.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weecommand.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weecommand.wordpress.com&amp;blog=8133148&amp;post=46&amp;subd=weecommand&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weecommand.wordpress.com/2009/06/21/weecommand-prototype-3/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13ac92a723e01487c1e6052d2c318353?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">realtebo</media:title>
		</media:content>

		<media:content url="http://www.wdc.com/global/images/products/img2/300/wdfWDTV.jpg" medium="image" />

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020634.jpg?w=300" medium="image">
			<media:title type="html">Weecommand directory on first page</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020639.jpg?w=300" medium="image">
			<media:title type="html">Server and channel List</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020635.jpg?w=300" medium="image">
			<media:title type="html">Botlist</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020636.jpg?w=300" medium="image">
			<media:title type="html">File List of Selected Bot</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020638.jpg?w=300" medium="image">
			<media:title type="html">File enqueued</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020637.jpg?w=300" medium="image">
			<media:title type="html">Weechat not running</media:title>
		</media:content>
	</item>
		<item>
		<title>Weecommand.app.bin &#8211; Prototype 2 &#8211; Ready for public test</title>
		<link>http://weecommand.wordpress.com/2009/06/14/weecommand-app-bin-prototype-2-ready-for-public-test/</link>
		<comments>http://weecommand.wordpress.com/2009/06/14/weecommand-app-bin-prototype-2-ready-for-public-test/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 10:08:47 +0000</pubDate>
		<dc:creator>realtebo</dc:creator>
				<category><![CDATA[releases]]></category>

		<guid isPermaLink="false">http://weecommand.wordpress.com/?p=28</guid>
		<description><![CDATA[Prologue Thanks a lot for those of you  helping me to develop a stable and functional Weecommand.app.bin. Be patient for this English test. I&#8217;m Italian and my English it&#8217;s not really good. If some text needs a best explanation feel free to add a comment to this page. I&#8217;ll appreciate it much. Also thanks to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weecommand.wordpress.com&amp;blog=8133148&amp;post=28&amp;subd=weecommand&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Prologue</strong></p>
<p>Thanks a lot for those of you  helping me to develop a stable and functional <em>Weecommand.app.bin</em>.</p>
<p>Be patient for this English test. I&#8217;m Italian and my English it&#8217;s not really good. If some text needs a best <span>explanation feel free to add a comment to this page. I&#8217;ll appreciate it much.</span></p>
<p><span>Also thanks to friends of </span><a href="http://forum.ubuntu-it.org" target="_blank">forum.ubuntu-it.org</a> who helped me a lot with bash coding phase</p>
<p><span><strong>Summary</strong><br />
</span></p>
<p>In this article, full of images and, I hope, full of answers to your questions,  you will learn</p>
<ul>
<li>What does it form me?</li>
<li>How to use</li>
<li>How to verify weechat is really working?</li>
<li>Tip: Launch weechat into a screened session</li>
<li>Prerequisites and Weecommand download</li>
<li>Important actual limitations of Weecommand Prototype 2</li>
<li>The complete changelog</li>
<li>Where to ask for help</li>
</ul>
<p>So, good reading !</p>
<h3><span id="more-28"></span><strong>What does it do for me?</strong></h3>
<p>With weecommand, your WDTV will be able to browse available file fron IRC server bot, and with a press on your remote&#8217;s OK button, WDTV will ask weechat, a small but excellent irc client easyly installable on WDTV, to request the download of the file.</p>
<p>If no queue, weechat will start <em>immediately to download</em> it, and yo can navigate to your weechat download dir and, if it&#8217;s  a media file, start <em>immediately</em> to watch/listen it !</p>
<p>Really, this is TV-on-demand I ever looked for !!!</p>
<h3><strong>How to use it</strong></h3>
<p>From Home Scren of your WDTV, select folder view for Photo, Videos or Music. Weecommand can manage the download od every file type regardless of from which category you wahtch the lists</p>
<p><img class="aligncenter size-medium wp-image-30" title="Weecommand directory on first page" src="http://weecommand.files.wordpress.com/2009/06/p1020634.jpg?w=300&#038;h=225" alt="Weecommand directory on first page" width="300" height="225" />Regardless of other items, depending from devices you&#8217;ve attached to your WDTV, in the media list you can see the main root of my application, <em>Weecommand</em>. It&#8217;s automatically created at startup. It&#8217;s empty. <em>It will be filled 1 time at hour, </em>or when you for the first time enter into it.This dir is located at /tmp/media/usb/Weecommand.</p>
<p>So press Ok to enter into.</p>
<p><img class="aligncenter size-medium wp-image-31" title="Botlist" src="http://weecommand.files.wordpress.com/2009/06/p1020635.jpg?w=300&#038;h=225" alt="Botlist" width="300" height="225" />If it&#8217;s the first time you enter into it WDTV will load the list of the bot of configured server, directly from web, then WDTV will create a different directory for each of bot present in the channel list. Note: This list will be preserved after power off and/or rebooting of WDTV. This list is created into Weecomand directory (see above). Everyone of this dirs, are initally <em>empty</em>.<em> </em>I cannot recreate every time the entire disk structure, because, from the server preconfigured into ito, there are something like more 80 bot serving a minium of 100 files each one. Creating 8.000 directory will take about 10 minutes on a WDTV !!!</p>
<p>So now select a bot pressing OK on it.</p>
<p><img class="aligncenter size-medium wp-image-32" title="File List of Selected Bot" src="http://weecommand.files.wordpress.com/2009/06/p1020636.jpg?w=300&#038;h=225" alt="File List of Selected Bot" width="300" height="225" />WDTV will create into the selected directory the list of <em>all files server by selected bot</em>.</p>
<blockquote><p>Differently from eMule or Bearshare or Kazaa-like systems, in the mirc bot you find <em>only tested and verified file</em>. So no fake-file downloaded and no bad impression of your wife after showing to her happy a Disney Film &#8230; but it&#8217;s really a porn !</p></blockquote>
<p>Select what you want download and simply press OK to enqueue it into weechat.</p>
<p><img class="aligncenter size-medium wp-image-33" title="Weechat not running" src="http://weecommand.files.wordpress.com/2009/06/p1020637.jpg?w=300&#038;h=225" alt="Weechat not running" width="300" height="225" /></p>
<p>If weechat is not running on your WDTV, Weecomand warn you to start weecommand (from a telnet or ssh session) then to retry.</p>
<blockquote><p>If you&#8217;ve waited some seconds from one screen page and the next, within one hour no reload/recreating will be done, so navigating <em>in the same path</em> will be instantaneous !</p></blockquote>
<p><img class="aligncenter size-medium wp-image-34" title="File enqueued" src="http://weecommand.files.wordpress.com/2009/06/p1020638.jpg?w=300&#038;h=225" alt="File enqueued" width="300" height="225" />If everything is ok, WDTV will show this message.</p>
<p>Really, it&#8217;s very very very simple to use</p>
<h3><strong>How to verify weechat is really working?</strong></h3>
<p>To verify if download is really started you can login via telnet or ssh into WDTV, and open weechat. Navigate to the DCC screen and you&#8217;ll se you download progress.</p>
<p>If not downloading, go to server screen and read some rows. Probably the bot told you that you&#8217;re enqueued, so you must only wait.</p>
<p>If server tell you that the command is wrong, please, copy this error and past into a comment to this post. it&#8217;s very important for me to have as infos as possible from you in case my <em>Weecommand </em>it&#8217;s not working on your home!</p>
<h3><strong>Tip: Launch weechat into a screened session</strong></h3>
<blockquote><p><strong> </strong></p></blockquote>
<p>First, install <em>screen</em>, executing this command: <em>ipkg update &amp;&amp; ipkg install screen</em>.</p>
<p>Then when launching weechat, instead of using classical <em>weechat-curses</em> command, digit: <em>screen -dmS wc /opt/bin/weechat-curses. </em>WDTV will execute wdtv into background, so you can close your terminal without killing weechat proccess.</p>
<p>When you want to see the interface of weechat, at the prompt digit: <em>screen -r wc</em>. To exit from weechat without closing <em>on your local keyboard press  Ctrl+A then press D</em> (without CTRL). Screen will keep weechat running into webground.</p>
<h3><strong>Prerequisites and Weecommand download<br />
</strong></h3>
<p>You must have a <a href="http://www.wdc.com/it/products/products.asp?driveid=572" target="_blank">WDTV</a>.</p>
<p>You must have at least an ADSL line. If your line is able to <em>really </em>download at least at 4 MB/sec, your file will be downloaded, but probably you&#8221;ll not be able to watch movies when downloading. On a 56K line&#8230; please don&#8217;t even try it.</p>
<p>You must mod your WDTV&#8217;s firmware. See the <a href="http://wiki.wdtv.org/doku.php?id=ext3-boot-releases" target="_blank">Wiki about ext3-boot-firmware</a>.</p>
<p>You must have a compatible <a href="http://wiki.wdtv.org/doku.php?id=supported_usb_devices" target="_blank">USB to Ethernet adapter</a> or a <a href="http://wiki.wdtv.org/doku.php?id=usb_wireless_dongles_table_page" target="_blank">USB to Wifi Adapter</a> and your WDTV must tell its IP on reboot</p>
<p>You must download and copy into your usb boot pen&#8217;s root the event-osd application. <a href="http://wdtv.elmarweber.org/index.php/2009/event-osd-r162-released/" target="_blank">Here the last version</a></p>
<p>You must install <em><a href="http://weechat.flashtux.org/" target="_self">weechat</a>, screen, </em>and<em> cron</em>. So telnet / ssh into it and digit:</p>
<ul>
<li>ipkg update</li>
<li>ipkg upgrade</li>
<li>ipkg install weechat screen cron</li>
</ul>
<p>You must configure weechat to use the server and the channel which are used from Weecomand.I suggest you to install <em>nano</em> for editing because pre-installed <em>vi</em> is difficult to use if you don&#8217;t already know it (<em>ipkg install nano</em>). Then edit the <em>weechat.rc</em> file. This file is located into <em>/.weechat/ </em>directory, but some of us have it located into <em>/opt/.weechat/</em> directory. All of following lines are very very very important. Be sure this lines are configured as shown. Certainly, this rows are only a small part of the .rc file. Be patient and search for them into .rc file. <em>None of them are created from scratch, all of them are already into your .wc file</em>.</p>
<ol>
<li>irc_fifo_pipe = on<br />
This informs weechat to listen from upcoming command from external world. Weecommand use weechat fifo pipe file to comunicate to it which command to execute. <em>Essential.</em></li>
<li>dcc_auto_accept_files = on<br />
This tell weechat to don&#8217;t wait for user confirm before download file. <em>Essential</em>.</li>
<li>dcc_download_path = &#8220;full-path-with-quoted-to-download-dir&#8221;. <strong>It&#8217;s very important that your download dir is located into one of your usb media.</strong> Absolutely <em>don&#8217;t leave it into default dir,</em> because it&#8217;s located into a sub of the root.</li>
<li>dcc_auto_resume = on<br />
if a download after a while stops, you can restart the same file from the same bot and the download will restart from the point it was, without waste of time restarting to download entirely</li>
<li>server_name = &#8220;darksin&#8221;<br />
One of your server <em>must have this name. </em>Letterally, without capitalized letters, but with double quotes. <em>Essential.</em></li>
<li>server_autoconnect = on<br />
If it&#8217;s not on, you must login manually every time you start weechat</li>
<li>server_address = &#8220;irc.darksin.it&#8221;<br />
This is for now the server used by Weecommad. <em>Essential</em>.</li>
<li>server_username = &#8220;your-nick&#8221;<br />
Choose a nick.</li>
<li>server_autojoin = &#8220;#L3gg3ndar1&#8243;<br />
<em>Absolutely the most important setting</em>. This is the channel from which we can download the listed file.</li>
</ol>
<p>Now you&#8217;re ready to download the 2 files of my application from my MediaFire free space.</p>
<ul>
<li><a href="http://www.mediafire.com/download.php?zzdlm3uimyy" target="_blank">weecommand.app.bin</a><br />
this is the real application. Copy it into the root of the usb boot pen&#8217;s root</li>
<li><a href="http://www.mediafire.com/download.php?nyyft01mdzm" target="_blank">weecommand.app.event</a><br />
this file is used to interface my app with event-osd application. Copy it into the root of your usb boot pen&#8217;s root</li>
</ul>
<h3><strong>Important actual limitation of Weecommand Prototype 2</strong></h3>
<p><strong>This application actually uses only this ITALIAN channel, which serves mainly ITALIAN contents. </strong></p>
<p><strong>Actually Weecommand is <em>not configurable</em> about other servers BUT it&#8217;s only the second prototype. It will be SOON configurable. </strong></p>
<p><strong>So please &#8220;other-language&#8221; people, TRY IT! I need to be sure it works on others home BEFORE go on developing advanced features.</strong></p>
<h3><strong>The complete Changelog</strong></h3>
<pre>#!/opt/bin/bash
#
# IRC bot file list browser and downloader
# ----------------------------------------------------
# Realized from Mirko Tebaldi, also known as "REALTEBO"
#
# June 06, 2009: Prototype 1
# ---------------
# Working
#
# June 07, 2009: Prototype 1.01
# ---------------
# Fixed: file list created was same into any dirs. (A my typo in the code, sorry)
#
# June 14, 2009: Prototype 2
# ---------------
# Code: completely rewritten, sectioned, modularized and commented
# Code: improved debugging infos
# Code: improved detecting method for weechat pid
# Added: auto-creating of a Weecommand root directory in /tmp/media/usb using a init.d script
# Added: hourly auto-updating of the botlist with cron .
# Added: first stage of caching system completed.
# Added: customized OSD message box on adding download
# Added: detection (and warning on OSD to user) if weechat is not running
# Added: detection (and warning on OSD to user) if weechat fifo is not found
# Fixed: removed any useless files from the .bin before distribution
# Fixed: when .weechat.rc is located on classical path the command was not perfect. Now fixed</pre>
<h3><strong>Where to ask for help</strong></h3>
<p>I&#8217;m  <strong>online everyday<em> </em></strong>into WDTV users forum<strong>. </strong>Start a thread into<a href="http://wdtvforum.com/main/index.php?board=8.0" target="_blank"> this section of the forum</a>. Please prefix the title with  [Weecommand <em>and-the-version</em>] tag.</p>
<p><em>Please attach you /apps/weecommand</em>/<em>logfile  and /apps/event-osd/event-osd.log  to any help request.</em></p>
<p>I&#8217;m Italian, but on the forum you must write in English. If you want to write to me in italian, please use the Private Message system from the forum.</p>
<p style="text-align:right;"><em>Un saluto affettuoso a tutti gli italiani,</em></p>
<p style="text-align:right;"><em>Realtebo<br />
</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weecommand.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weecommand.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weecommand.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weecommand.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weecommand.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weecommand.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weecommand.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weecommand.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weecommand.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weecommand.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weecommand.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weecommand.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weecommand.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weecommand.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weecommand.wordpress.com&amp;blog=8133148&amp;post=28&amp;subd=weecommand&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weecommand.wordpress.com/2009/06/14/weecommand-app-bin-prototype-2-ready-for-public-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13ac92a723e01487c1e6052d2c318353?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">realtebo</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020634.jpg?w=300" medium="image">
			<media:title type="html">Weecommand directory on first page</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020635.jpg?w=300" medium="image">
			<media:title type="html">Botlist</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020636.jpg?w=300" medium="image">
			<media:title type="html">File List of Selected Bot</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020637.jpg?w=300" medium="image">
			<media:title type="html">Weechat not running</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020638.jpg?w=300" medium="image">
			<media:title type="html">File enqueued</media:title>
		</media:content>
	</item>
		<item>
		<title>I&#8217;m working on Prototype 2 of Weecommand.app.bin</title>
		<link>http://weecommand.wordpress.com/2009/06/12/im-working-on-prototype-2-of-weecommand-app-bin/</link>
		<comments>http://weecommand.wordpress.com/2009/06/12/im-working-on-prototype-2-of-weecommand-app-bin/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 17:41:27 +0000</pubDate>
		<dc:creator>realtebo</dc:creator>
				<category><![CDATA[Working]]></category>

		<guid isPermaLink="false">http://weecommand.wordpress.com/?p=26</guid>
		<description><![CDATA[Working on .. Actually I&#8217;m resolving one un-replicable bug for one only user who&#8217;s not able to see it&#8217;s Weecommand dir into the WDT V browser I&#8217;m trying to realize a script who updates automatically the file list, doing this in background and with low memory and net usage. It&#8217;s a long thing i think&#8230; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weecommand.wordpress.com&amp;blog=8133148&amp;post=26&amp;subd=weecommand&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Working on ..</strong></p>
<p>Actually I&#8217;m resolving one un-replicable bug for one only user who&#8217;s not able to see it&#8217;s Weecommand dir into the WDT V browser</p>
<p>I&#8217;m trying to realize a script who updates automatically the file list, doing this in background and with low memory and net usage. It&#8217;s a long thing i think&#8230;</p>
<p><strong>Changelog</strong></p>
<p>#   Release date unknown  : Prototype 2<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;<br />
# Fixed: removed an useless log file from the .bin<br />
# Fixed: when fiso is located on classical path the command to weechat is not perfect<br />
# Added: custom message box to error or success on adding download<br />
# Code: some cleanup, remove useless code,</p>
<p># june 07, 2009: Prototype 1.01<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;<br />
# Fixed: file list created was same into any dirs. (A my typo in the code, sorry)<br />
#</p>
<p># june 06, 2009: Prototype 1<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;<br />
# Working<br />
#</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weecommand.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weecommand.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weecommand.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weecommand.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weecommand.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weecommand.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weecommand.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weecommand.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weecommand.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weecommand.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weecommand.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weecommand.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weecommand.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weecommand.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weecommand.wordpress.com&amp;blog=8133148&amp;post=26&amp;subd=weecommand&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weecommand.wordpress.com/2009/06/12/im-working-on-prototype-2-of-weecommand-app-bin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13ac92a723e01487c1e6052d2c318353?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">realtebo</media:title>
		</media:content>
	</item>
		<item>
		<title>Prototype 1 of weecommand.app.bin released !</title>
		<link>http://weecommand.wordpress.com/2009/06/11/prototype1/</link>
		<comments>http://weecommand.wordpress.com/2009/06/11/prototype1/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 16:23:40 +0000</pubDate>
		<dc:creator>realtebo</dc:creator>
				<category><![CDATA[releases]]></category>

		<guid isPermaLink="false">http://weecommand.wordpress.com/?p=3</guid>
		<description><![CDATA[What is weecommand and what can it do for You !<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weecommand.wordpress.com&amp;blog=8133148&amp;post=3&amp;subd=weecommand&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Prologue</strong></p>
<p>Sorry for my bad English, I&#8217;m Italian. I&#8217;m writing in English to help more people understanding how to use this application. I&#8217;m working to a better translation too</p>
<p><strong>Introduction</strong></p>
<dl class="wp-caption alignright">
<dt class="wp-caption-dt"><img class="alignright" src="http://www.wdc.com/global/images/products/img2/th/wdfWDTV.jpg" alt="An image of my WDTV " width="100" height="100" /></dt>
</dl>
<p>I love my WDTV. And I love to download film and so on using weechat, my preferred IRC client. And i really really love to use weechat into my WDTV !</p>
<p>My dream is (was&#8230;)  to use my WDTV remote to browse a list of online titles, and with a single &#8216;click&#8217; it will be added to weechat for downloading. Simple, not?</p>
<p>Ok, Now I&#8217;m here to proudly offer to WDTV online communities a first <em>working </em>prototype of my <strong>weecommand.app.bin</strong></p>
<p><strong>What can you do whit weecommand ?</strong></p>
<ul>
<li>Accessing a specially name directory (&#8216;<em>Weecommand</em>&#8216;, obviously) WDTV will download from a pre-setted URL the full content of an Irc channel full of &#8216;bot&#8217; (serving files)</li>
<li>Every bot will be presented at screen like a dir.</li>
<li>You can enter into the &#8216;dir&#8217; of a bot and browse <em>the entire list of available files</em>, alphabetically ordered</li>
<li>Every filename is showed like a dir. So, indifferently from their file extension, it will shows itself on WDTV. (<em>Yes, weecommand can run from Music, Photo and Video indifferently </em>and browse/download every kind of file, indifferently)</li>
<li>Last, but not least, entering in a &#8216;filename&#8217; directory, WDTV will ask to your <em>already running </em>weechat to enqueue the file you selected</li>
<li>You now can navigate to the weechat download folder and start immediately to watch your film, or  to listen your music, <em>if it&#8217;s not compressed and if it&#8217;s extension is present and right.</em></li>
<li>Only 512 kByte<em> </em><em> </em></li>
<li><em>What else do you need?</em></li>
</ul>
<p><strong>Requirements and how-to</strong></p>
<p><strong> </strong></p>
<ul>
<li>You need a <a href="http://www.wdc.com/it/products/products.asp?driveid=572" target="_blank">WDTV</a></li>
<li>You need to modify your firmware using<a href="http://wiki.wdtv.org/doku.php?id=ext3-boot-releases" target="_blank"> ext3-boot from Zorande</a>r. Thank Zorander for you excellent work! You extended <em>our life</em>!</li>
<li>This<strong> </strong>application<strong> </strong>is built using event-osd.app.bin framework. And I&#8217;ll never thanks sufficiently the author of this work. So you must <a href="http://wdtv.elmarweber.org/index.php/2009/event-osd-r112-released" target="_blank">download event-osd.app.bin from here</a> and copy the bin file to the root of your boot pen</li>
<li>You must have <a href="http://weechat.flashtux.org/" target="_blank">weechat</a> installed <em>and running</em>.</li>
<li><strong>Weechat must be configured to use &#8216;darksin&#8217; for naming server and &#8216;#L3Gg3Ndar1&#8242; for the channel. (It&#8217;s a fixed and mandatory setting, I know, but it&#8217;s only a temporary thing, see belove)</strong></li>
<li>You MUST create an empty dir /Weecommand/ in at least one place in one of your attached media. You can create into the usb diskroot, but even into a subdir of a subdir of a subdir, the script will recognize it without problem everywhere (I hope&#8230;).</li>
<li>Reboot and enjoy !</li>
</ul>
<p><strong>Download</strong></p>
<p>Now you can download my app from my MediaFire account. It&#8217;s composed of two files. Both must be copied into <em>the root</em> of the <em>boot disk</em> (often a usb pen).</p>
<ul>
<li><a href="http://www.mediafire.com/file/3jnmnukzdmn/weecommand.app.bin">weecommand.app.bin</a></li>
<li><a href="http://www.mediafire.com/file/acm5mn0yz5y/weecommand.app.event">weecommand.app.event</a></li>
</ul>
<p><strong>Prototype 1&#8242;s Limit</strong></p>
<p>This is really a prototype. This initial release has been created mainly for a friend wo love weechat even more than me. I and my friend are Italian, and both use a good irc server in this days, <em>irc.darksin.net</em>, and a precise channel, #L3gg3ndar1 (you can see the full list of available files on their bot <a href="http://siamol3gg3ndar1.altervista.org/" target="_blank">here</a>, in the official web site of the channel. You&#8217;ll see with your eyes a lot of interesting content available here. This channel is ITALIAN, mainly the content is ITALIAN.</p>
<p>So the first ACTUAL limit of this prototype is that it uses only this channel, on only this server.Actually is NOT configurable, but it&#8217;s only a prototype, remember !</p>
<p>So you must have weechat <em>running</em> and configured to use one of darksin addresses, but you MUST name it &#8216;<em>darksin</em>&#8216; IN THE WEECHAT.RC config file. And weechat must be running and already joined on #L3gg3ndar1 channel <em>before first adding a link. </em>Don&#8217;t forget it ! And don&#8217;t forget: it&#8217;s only a prototype, in the final release is planned to be fully configurable.</p>
<p><strong>Troubleshooting<br />
</strong></p>
<p>This version is debug-enable. Everything it&#8217;s doing is logged to <em>/apps/weecommand/logfile.</em></p>
<blockquote><p><em>TIP: To disable logging you can edit the wc.sh file and turn debug=1 to debug=0</em></p></blockquote>
<p><strong>FAQ:</strong></p>
<ol>
<li><strong>Does this script causes conflicts with others .app.bin? </strong>This script doesn&#8217;t modify no one of all your xml file (from the OSD directory into WDTV firmware), so if you have some trouble with <em>other application</em>, is certainly not a conflict</li>
<li><strong>Does this script stay resident in memory? </strong>NO! This script is based on event-osd. When you change your dir, event-osd check if you&#8217;re entering one of the dir registered into one of the .app.event file into your usb boot drive. If you&#8217;re into one of them, for example you&#8217;re entering into / dir  / subidir  / subdir / <em>Weecommand</em> /, event-osd execute my script. It&#8217;s do its work then the php-cli running on WDTV <em>unload it form memor</em>y<em>.<br />
</em></li>
<li><strong>I created the Weecommand dir but it&#8217;s not visible into OSD browser but I can see it via FTP. Your script is buggy</strong> !!! You must remember that the <em>Weecommand</em> directory MUST BE CREATED SOMEWHERE INTO A USB MEDIA<em>. This is not a limit of my script, </em>is because WDTV only browse into attached media, not into itself. So, e.g., you cannot create Weecommand dir into &#8216;/&#8217; (the main root of WDTV). You could instead create it into, e.g., /tmp/media/usb-big-disk/, the <em>root of your usb disk</em>. In some words: if you created Weecommand into an usb-<em>something</em> it&#8217;s visible to WDTV and to my script. You must create a <strong>directory </strong>and <em>not an empty file</em>.</li>
</ol>
<p><strong>Screenshots</strong></p>
<p>When entering the <strong>Weecommand</strong> dir, WDTV will work for 5-10 seconds, then shows the full list of available bot on the configured channel. Here the list of bot on list 1 of #L3gg3ndar1, on irc.darksin.net</p>
<p><strong><img class="alignnone size-full wp-image-9" title="P1020630" src="http://weecommand.files.wordpress.com/2009/06/p1020630.jpg" alt="P1020630" width="450" height="337" /></strong></p>
<p>When you enter a bot directory, WDTV retrieve the list of available files on this bot on this channel on this server.</p>
<p><strong><img class="alignnone size-full wp-image-7" title="P1020631" src="http://weecommand.files.wordpress.com/2009/06/p1020631.jpg" alt="P1020631" width="450" height="337" /></strong></p>
<p>When <strong>you enter a filename-directory</strong> WDTV will ask weechat to download this file from the selected bot. Then reply to you creating an empty and fake .avi file named OK or ERROR to show you the exit.</p>
<p><img class="alignnone size-full wp-image-11" title="P1020632" src="http://weecommand.files.wordpress.com/2009/06/p1020632.jpg" alt="P1020632" width="450" height="337" /></p>
<p><strong>Planned</strong></p>
<ul>
<li>Make it configurable for server, naming and channel</li>
<li>A better Ok /  Error  OSD without creating fake file</li>
<li>Caching system for list</li>
<li>Ability to use more than a single URL for lists.</li>
<li>Searching into avaiable file list from OSD.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weecommand.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weecommand.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weecommand.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weecommand.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weecommand.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weecommand.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weecommand.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weecommand.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weecommand.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weecommand.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weecommand.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weecommand.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weecommand.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weecommand.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weecommand.wordpress.com&amp;blog=8133148&amp;post=3&amp;subd=weecommand&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weecommand.wordpress.com/2009/06/11/prototype1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13ac92a723e01487c1e6052d2c318353?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">realtebo</media:title>
		</media:content>

		<media:content url="http://www.wdc.com/global/images/products/img2/th/wdfWDTV.jpg" medium="image">
			<media:title type="html">An image of my WDTV </media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020630.jpg" medium="image">
			<media:title type="html">P1020630</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020631.jpg" medium="image">
			<media:title type="html">P1020631</media:title>
		</media:content>

		<media:content url="http://weecommand.files.wordpress.com/2009/06/p1020632.jpg" medium="image">
			<media:title type="html">P1020632</media:title>
		</media:content>
	</item>
	</channel>
</rss>
