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

<channel>
	<title>A world in dk(decay/denmark)</title>
	<atom:link href="http://rotand.dk/feed/" rel="self" type="application/rss+xml" />
	<link>http://rotand.dk</link>
	<description>Just another pointless weblog</description>
	<lastBuildDate>Sun, 18 Mar 2012 16:32:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>LED&#8217;s not sky &#8211; light</title>
		<link>http://rotand.dk/2012/03/18/leds-not-sky-light/</link>
		<comments>http://rotand.dk/2012/03/18/leds-not-sky-light/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 16:31:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[Cool]]></category>
		<category><![CDATA[Weird]]></category>

		<guid isPermaLink="false">http://rotand.dk/?p=221</guid>
		<description><![CDATA[Netto had 5m LED-light strips, Helle got the god idea, now we have this nifty light:]]></description>
			<content:encoded><![CDATA[<p>Netto had 5m LED-light strips, Helle got the god idea, now we have this nifty light:</p>

<a href='http://rotand.dk/2012/03/18/leds-not-sky-light/p1090447/' title='P1090447'><img width="150" height="112" src="http://rotand.dk/wp-content/P1090447-150x112.jpg" class="attachment-thumbnail" alt="P1090447" title="P1090447" /></a>
<a href='http://rotand.dk/2012/03/18/leds-not-sky-light/p1090448/' title='P1090448'><img width="150" height="112" src="http://rotand.dk/wp-content/P1090448-150x112.jpg" class="attachment-thumbnail" alt="P1090448" title="P1090448" /></a>
<a href='http://rotand.dk/2012/03/18/leds-not-sky-light/p1090449/' title='P1090449'><img width="150" height="112" src="http://rotand.dk/wp-content/P1090449-150x112.jpg" class="attachment-thumbnail" alt="P1090449" title="P1090449" /></a>

]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2012/03/18/leds-not-sky-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saturday eggbotting</title>
		<link>http://rotand.dk/2012/03/17/saturday-eggbotting/</link>
		<comments>http://rotand.dk/2012/03/17/saturday-eggbotting/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 21:08:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[CNC]]></category>

		<guid isPermaLink="false">http://rotand.dk/?p=239</guid>
		<description><![CDATA[Eggbotting &#8220;Open Space Aarhus&#8221; I measured the egg using the probe. Create the path in in inkscape using gcodetools. In a postprocess i first split the path in to short segments, then I linearly interpolate based on the measured data to follow the surface. In this eggsperiment I used G64 to allow the machine some [...]]]></description>
			<content:encoded><![CDATA[<p>Eggbotting &#8220;Open Space Aarhus&#8221;</p>
<p style="text-align: center;"><a href="http://rotand.dk/wp-content/P1090442.jpg"><img class="aligncenter  wp-image-240" title="P1090442" src="http://rotand.dk/wp-content/P1090442-1024x768.jpg" alt="" width="717" height="538" /></a></p>
<p style="text-align: left;">I measured the egg using the probe.</p>
<p style="text-align: left;">Create the path in in inkscape using gcodetools.</p>
<p style="text-align: left;">In a postprocess i first split the path in to short segments, then I linearly interpolate based on the measured data to follow the surface.</p>
<p style="text-align: left;">In this eggsperiment I used <a title="G64" href="http://linuxcnc.org/docs/html/gcode_main.html#sub:G61,-G61.1,-G64:">G64</a> to allow the machine some tolerance in following the path to gain a better feedrate. The result were at significantly different sound from the steppers, it sounds more &#8216;sick&#8217;. But it worked</p>
<p style="text-align: left;">See the video @ vimeo :<a href="http://vimeo.com/38699800"> http://vimeo.com/38699800</a></p>
<p style="text-align: left;">The next step is to try to make TSP art on the eggs, <a href="https://secure.flickr.com/photos/d-newman/5292526178/in/photostream/">Nikolai Tesla made from a single line</a> , Evil Mad scientists have nice guide: <a href="http://wiki.evilmadscience.com/TSP_art">http://wiki.evilmadscience.com/TSP_art</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2012/03/17/saturday-eggbotting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eggciting data</title>
		<link>http://rotand.dk/2012/03/14/eggciting-data/</link>
		<comments>http://rotand.dk/2012/03/14/eggciting-data/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 22:56:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>

		<guid isPermaLink="false">http://rotand.dk/?p=231</guid>
		<description><![CDATA[These data were made with a &#8216;FrakenProbe&#8217; they represent the surface height, X(length) and A(rotational)axis. The experience with the first test run proved that even though the penholder does have some play in the z direction, the plot could be better if the pen were to follow the surface of the egg exactly.  Now its [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://rotand.dk/wp-content/Screenshot-03132012-105950-PM.png"><img class="aligncenter  wp-image-232" title="Screenshot - 03132012 - 10:59:50 PM" src="http://rotand.dk/wp-content/Screenshot-03132012-105950-PM-1024x576.png" alt="" width="819" height="461" /></a></p>
<p>These data were made with a &#8216;FrakenProbe&#8217; they represent the surface height, X(length) and A(rotational)axis.</p>
<p>The experience with the <a title="Eggbot first print" href="http://rotand.dk/2012/03/10/eggbot-first-print/">first test run</a> proved that even though the penholder does have some play in the z direction, the plot could be better if the pen were to follow the surface of the egg exactly.  Now its possible to probe the surface and the next step is to interpolate the movements based on the data.</p>
<p>A video of the frakenprobe in action on vimeo : <a title="http://vimeo.com/38466340" href="http://vimeo.com/38466340">http://vimeo.com/38466340</a></p>
<p>The gcode to probe the data were my first experience with writing loops in gcode and making extensive use of parameters. I must admit that it not pretty, this is the main part with a nested loop:</p>
<blockquote>
<pre>(PROBEOPEN data.txt)
G0 Z[#&lt;SAFEZ&gt;]
#&lt;J&gt; = 0
o200 DO
G0 A[#&lt;J&gt; * #&lt;ASTEP&gt;] Z[#&lt;SAFEZ&gt; + &lt;#PZ&gt;]
#&lt;I&gt; = 0
o100 DO
G0 X[#&lt;I&gt; * #&lt;XSTEP&gt;] Z[#&lt;SAFEZ&gt; + &lt;#PZ&gt;]
F300
G38.2 Z[#&lt;PZ]
#&lt;PZ&gt; = [#5063]
#&lt;I&gt; = [#&lt;I&gt; + 1]
o100 WHILE [[#&lt;I&gt; * #&lt;XSTEP&gt;] lt #&lt;W&gt;]
#&lt;J&gt; = [#&lt;J&gt; + 1]
o200 WHILE [[#&lt;J&gt; * #&lt;ASTEP&gt;] lt 360]
(PROBECLOSE)</pre>
</blockquote>
<p>Did i mention that it is really really nice to have a hackerpace, with tools, parts, club mate and geeks who can help out when you are stuck.</p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2012/03/14/eggciting-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eggbot first print</title>
		<link>http://rotand.dk/2012/03/10/eggbot-first-print/</link>
		<comments>http://rotand.dk/2012/03/10/eggbot-first-print/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 20:17:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[CNC]]></category>
		<category><![CDATA[Weird]]></category>

		<guid isPermaLink="false">http://rotand.dk/?p=222</guid>
		<description><![CDATA[A penholder was made, its basis is the insides from a CD-ROM drive the pen is molded into place using Shapelock. An Egg was mounted and some quick test pattern were made in Inkscape. We step back and observe the magic. Unfortunately i dropped the first real image, the first test run were spirals and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rotand.dk/wp-content/eggbot-01.jpg"><img class="alignnone size-medium wp-image-229" title="eggbot-0" src="http://rotand.dk/wp-content/eggbot-01-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p>A penholder was made, its basis is the insides from a CD-ROM drive the pen is molded into place using Shapelock.</p>
<p><a href="http://rotand.dk/wp-content/eggbot-2.jpg"><img class="alignnone size-medium wp-image-225" title="eggbot-2" src="http://rotand.dk/wp-content/eggbot-2-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>An Egg was mounted and some quick test pattern were made in Inkscape.</p>
<p><a href="http://rotand.dk/wp-content/eggbot-1.jpg"><img class="alignnone size-medium wp-image-224" title="eggbot-1" src="http://rotand.dk/wp-content/eggbot-1-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>We step back and observe the magic.</p>
<p><a href="http://rotand.dk/wp-content/eggbot-3.jpg"><img class="alignnone size-medium wp-image-226" title="eggbot-3" src="http://rotand.dk/wp-content/eggbot-3-300x236.jpg" alt="" width="300" height="236" /></a></p>
<p>Unfortunately i dropped the first real image, the first test run were spirals and a hardboiled egg.</p>
<p><a href="http://rotand.dk/wp-content/eggbot-4.jpg"><img class="alignnone size-medium wp-image-227" title="eggbot-4" src="http://rotand.dk/wp-content/eggbot-4-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>There are still issues to work out, but all in all we are quite satisfied with the first test.</p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2012/03/10/eggbot-first-print/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It nice to have a hackerspace</title>
		<link>http://rotand.dk/2012/02/25/it-nice-to-have-a-hackerspace/</link>
		<comments>http://rotand.dk/2012/02/25/it-nice-to-have-a-hackerspace/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 19:25:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>

		<guid isPermaLink="false">http://rotand.dk/?p=213</guid>
		<description><![CDATA[Parts laying around, access to all the necessary tools and soon this will be an eggbot. It shall be mounted on a CNC machine as a rotary axis. We will have machine painted easter eggs  at  Open Space Aarhus &#160;]]></description>
			<content:encoded><![CDATA[<p><a href="http://rotand.dk/wp-content/P1090375.jpg"><img class="alignnone size-medium wp-image-216" title="P1090375" src="http://rotand.dk/wp-content/P1090375-225x300.jpg" alt="" width="225" height="300" /></a><a href="http://rotand.dk/wp-content/P1090371.jpg"><img class="alignnone size-medium wp-image-215" title="P1090371" src="http://rotand.dk/wp-content/P1090371-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Parts laying around, access to all the necessary tools and soon this will be an eggbot. It shall be mounted on a CNC machine as a rotary axis.</p>
<p><em>We will have machine painted easter eggs  at  <a href="http://osaa.dk">Open Space Aarhus</a></em></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2012/02/25/it-nice-to-have-a-hackerspace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DTMF dialer got new features</title>
		<link>http://rotand.dk/2009/06/27/dtmf-dialer-got-new-features/</link>
		<comments>http://rotand.dk/2009/06/27/dtmf-dialer-got-new-features/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 17:14:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cldc]]></category>
		<category><![CDATA[dialer]]></category>
		<category><![CDATA[dtmf]]></category>
		<category><![CDATA[J2ME]]></category>
		<category><![CDATA[jar file]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://rotand.dk/blog/?p=198</guid>
		<description><![CDATA[I got a comment from a reader who used my DTMF dialer but missed a feature. It was the ability to change what prefix to remove. As i live in Denmark, whenever i make a call on a land-line there is no reason to dial +45, which is the danish country code. Actually the plus [...]]]></description>
			<content:encoded><![CDATA[<p>I got a <a href="http://rotand.dk/about-2/comment-page-1/#comment-1385">comment from a reader</a> who used my <a href="http://rotand.dk/2008/03/20/dtmf-dialer/">DTMF dialer</a> but missed a feature.</p>
<p>It was the ability to change what prefix to remove. As i live in Denmark, whenever i make a call on a land-line there is no reason to dial +45, which is the danish country code. Actually the plus is converted into 00 as well.</p>
<p>But Eli needed the prefix 08 to be removed.</p>
<p>And i guess that there are a lot of other prefixes that could be removed and + shouldn&#8217;t always be converted to 00. So I decided to implement this feature.</p>
<h2>Whats new</h2>
<ul>
<li>It now remembers your settings</li>
<li>It possible to choose a prefix to remove</li>
<li>its possible to decide what + should be replaced by.</li>
<li>I slapped a GPL V3 license on it</li>
</ul>
<h3>The files</h3>
<p><a href="http://rotand.dk/wp-content/dtmfdialer.jad">dtmfdialer jad file</a></p>
<p><a href="http://rotand.dk/wp-content/dtmfdialer.jar">dtmfdialer jar file</a></p>
<p><a href="http://rotand.dk/wp-content/dtmfdialer.zip">dtmfdialer source code</a></p>
<p>Unfortunately it wasn&#8217;t just a 5 min hack. There were two major challenges.</p>
<h3>Persistence</h3>
<p>In J2me access to the filesystem is restricted and requires all sorts of security permissions, but every application has access to a &#8220;RecordStore&#8221;. The RecordStore (RMS) only allows byte[] to be stored, so you have to marshall/unmarshall every piece of data at quite a low level. I haven&#8217;t persisted any data in the first version, as this is indeed tedious to work with. But not having persistence for a prefix remover functionality wouldn&#8217;t be of any use. You would have to enter the same data every time you used the application and then it would be faster to just edit the number to call.</p>
<h3>Netbeans mobility pack</h3>
<p>It was supposed to be so eays.</p>
<p>But the floweditor somehow did mess up and didn&#8217;t generate the code, so the flow diagram and the sourcecode were out of sync, and i didn&#8217;t see any way to &#8220;resync&#8221;/&#8221;regenerate code/diagram&#8221;. This was cause for a lot of frustrations.</p>
<p>Originally i made it with netbeans so compiling and editing the generated code were best done in netbeans. But if i ever were to mess with it again i would seriosly consider &#8220;porting&#8221; it to J2me Polish or just &#8220;vanillia&#8221; j2me. As i really really don&#8217;t like the netbeans editor.</p>
<p>update : Eli found a bug in the prefix substitution, i fixed and uploaded the new version (June 27, 2009, 21:17)</p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2009/06/27/dtmf-dialer-got-new-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CNC for summerproject</title>
		<link>http://rotand.dk/2009/06/06/cnc-for-summerproject/</link>
		<comments>http://rotand.dk/2009/06/06/cnc-for-summerproject/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 08:24:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[cnc machine]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[reprap]]></category>
		<category><![CDATA[summer vacation]]></category>

		<guid isPermaLink="false">http://rotand.dk/blog/?p=189</guid>
		<description><![CDATA[I have decided to build a CNC machine in the summer vacation. As soon as I finish the last exams i&#8217;ll start building / hacking. For the moment I&#8217;m looking into building plans and cnc in general. At first I wanted to build a reprap using a kit, but my funds are limited, so it [...]]]></description>
			<content:encoded><![CDATA[<p>I have decided to build a CNC machine in the summer vacation. As soon as I finish the last exams i&#8217;ll start building / hacking. For the moment I&#8217;m looking into building plans and cnc in general. At first I wanted to build a <a href="http://reprap.org/bin/view/Main/WebHome">reprap</a> using a kit, but my funds are limited, so it will be a three axis cnc router which hopefully will be able to act as an <a href="http://reprap.org/bin/view/Main/RepStrap">repstrap</a>.</p>
<p>The project as it looks so far :<br />
I ordered a set with steppers, motor-control and psu from ebay, and I&#8217;m waiting for it to arrive(The seller said 10-12 days, so maybe if I am lucky next week). It should be 1.7NM motors and a more or less &#8220;plug&#8217;n'play&#8221; set.</p>
<p>I intend to drive the motors using a old computer running <a href="http://www.linuxcnc.org/">linuxcnc</a>. linuxcnc looks real neat, but might prove to be hard to set up.</p>
<h3>The construction</h3>
<p>I am looking at two set of plans at the moment</p>
<h4><a href="http://www.instructables.com/id/How-to-Make-a-Three-Axis-CNC-Machine-Cheaply-and-/">How-to-Make-a-Three-Axis-CNC-Machine-Cheaply</a></h4>
<p style="padding-left: 30px;">This was the building plan that made me decide that this was a possible task. But there are some issues with the construction I don&#8217;t like, especially that it uses belts. They are hard to find and they are not cheap.</p>
<h4>JGRO&#8217;s plans</h4>
<p style="padding-left: 30px;">This is a free diy plan. it can be found here : <a href="http://www.cncroutersource.com/cnc-router-plans.html">http://www.cncroutersource.com/cnc-router-plans.html</a></p>
<p style="padding-left: 30px;">It uses threaded rod instead of belts. And the overall construction looks simpler.</p>
<h3>Materials</h3>
<p>Although I do want to do &#8220;fabbing&#8221; using a extruder at first I think that there will be enough work for a couple of days getting the mechanics and electronics up and running. Just as there is a lot to learn about g-code and all sorts of 3dmodelling.</p>
<p>To begin with I want to cut using a dremel tool, maybe a more powerful spindle(?) to be able to cut wood &#8211; if I have enough power in the steppers.</p>
<p>You might ask what do you want to make / &#8220;fab&#8221; with a 3 axis cnc machine?  I can come up with a lot of different small things like &#8220;coat hanger&#8221;, &#8220;coffee filter&#8221;, &#8220;PCBs&#8221; but I guess that it just boils down to: &#8221; I think its a very fascinating technology and want to play with it&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2009/06/06/cnc-for-summerproject/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CLI voip calls</title>
		<link>http://rotand.dk/2009/05/03/cli-voip-calls/</link>
		<comments>http://rotand.dk/2009/05/03/cli-voip-calls/#comments</comments>
		<pubDate>Sun, 03 May 2009 08:13:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[telephone]]></category>
		<category><![CDATA[voip connection]]></category>
		<category><![CDATA[voip phone]]></category>
		<category><![CDATA[voip service provider]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[wake up call]]></category>

		<guid isPermaLink="false">http://rotand.dk/blog/?p=178</guid>
		<description><![CDATA[Sometimes it would be nice to use a script call somebody and play a message. I &#8220;needed&#8221; a wake-up-call system and since I use a voip-phone and have access to a server. I thought i would be quite nifty if I could have the server call me. Furthermore i would like to be able to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rotand.dk/zen/phone/front1.jpg"><img class="ZenphotoPress_thumb alignleft" title="front1" src="http://rotand.dk/zen/phone/image/thumb/front1.jpg" alt="front1" width="180" height="180" /></a><br />
Sometimes it would be nice to use a script call somebody and play a message.<br />
I &#8220;needed&#8221; a wake-up-call system and since I use a voip-phone and have access to a server. I thought i would be quite nifty if I could have the server call me. Furthermore i would like to be able to script calls, so for instance the calendar could call me with reminders rather than sending an email.</p>
<p>I googled around but weren&#8217;t able to find such a utility. But i did find cli-sip client <a href="http://www.pjsip.org/pjsua.htm">pjsua</a>, based on <a href="http://www.pjsip.org/">pjsip</a>. Its posible to use it in conjunction with a shell script.</p>
<h4>Scripting</h4>
<p><code>jacob@vps:~./control.sh sip:108329@foobar.com "wake up you lazy bastard!"</code><br />
Is the basic usage i wanted to have. In order to get this functionality there are two steps.</p>
<p><span id="more-178"></span></p>
<h5>Generating wav file</h5>
<p>I ust use text2wave, from <a href="http://www.speech.cs.cmu.edu/festival/">festival</a>, which is available as a package on ubuntu.<br />
<code>echo $2 | text2wave - -o message.wav </code></p>
<p>$2 to use the second argument, and pipe it to text2wave. Let text2wave read sdtin and output a file message.wav</p>
<h5>Call and play the wav file</h5>
<p><code>pjsua_app --config-file=test.conf --play-file message.wav $1</code><br />
Here the magic is in the conf file. Its a rather straightforward to use, and the documentation is good.<br />
<code><br />
# we don't want the host's audio device<br />
--null-audio<br />
# SIP parameters<br />
--realm domain.com<br />
--registrar sip:number@domain.dk # DNS SRV, or FQDN</code><br />
<code> --username USERNAME<br />
--password PASS<br />
# default of 55 will be rejected as being too short by sipX<br />
--reg-timeout 3600<br />
# auto-answer all calls with "200 OK"<br />
--auto-answer 200<br />
# automatically loop incoming RTP to outgoing RTP<br />
--auto-loop<br />
# mix WAV file into the audio stream</code><br />
<code> --auto-play<br />
--auto-loop<br />
--duration=60<br />
</code><br />
This is based on a config file i found somewhere, can&#8217;t remember where. There a a lot of other options, pjsua handles nat quite nicely as well. It was easy to test it at my homebox, behind a router, just be sure to set an external ip address.</p>
<p>Now this will call and play the message, but it wont stop pjsua. It will just sit around waiting for someone to call. I couldn&#8217;t find any nice way to handle this, but since pjsua reads stdin for commands, it possible to pipe commands to it.<br />
<code>echo "sleep 60000 q" | pjsua_app --config-file=test.conf --play-file message.wav $1 </code><br />
So sleep for 60 seconds, then accept the next input from stdin, the &#8220;q&#8221;uit command.</p>
<p>Generally this configuration is set for 1 minute, it might be necessary to tweak this.</p>
<h4>Frustrations</h4>
<p>There is/were a bug in the tarball, that meant that it wouldn&#8217;t run if it couldn&#8217;t find a soundcard, since it should run on a vps this is quite annoying. But in the svn version its solved, so if you want to do something like this, use the svn version. Other than this installation is straightforward.</p>
<p>When working with cron, remember to use full paths. In the <tt>control.sh</tt> script the better solution were to add a cd working directory, in order to have all the paths correct. This were quite annoying to debug, as the script would run from the shell. And just fail when added to the crontab. Furthermore mails from crontab were delayed, so i couldn&#8217;t see the output. I did get someone to look over my shoulder and spot the bug.</p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2009/05/03/cli-voip-calls/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Steppers</title>
		<link>http://rotand.dk/2009/05/02/steppers/</link>
		<comments>http://rotand.dk/2009/05/02/steppers/#comments</comments>
		<pubDate>Sat, 02 May 2009 16:49:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Weird]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[steppermotor]]></category>

		<guid isPermaLink="false">http://rotand.dk/blog/2009/05/02/steppers/</guid>
		<description><![CDATA[Just ripped apart an old scanner and printer to get the steppermotors. Unfortunatly both seems to be bipolar steppers, hence i would need a H-bridge to drive them. I only have few darlington arrays around. It would have been fun get a quick hack up and running today.]]></description>
			<content:encoded><![CDATA[<p>Just ripped apart an old scanner and printer to get the steppermotors. Unfortunatly both seems to be bipolar steppers, hence i would need a H-bridge to drive them. I only have few darlington arrays around.</p>
<p>It would have been fun get a quick hack up and running today. </p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2009/05/02/steppers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mikroblogging</title>
		<link>http://rotand.dk/2009/04/23/mikroblogging/</link>
		<comments>http://rotand.dk/2009/04/23/mikroblogging/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 08:44:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[identi.ca]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://rotand.dk/blog/?p=161</guid>
		<description><![CDATA[I have created a identi.ca acount and started to mikroblog. Identi.ca is like twitter, but just better. Its open source and the system with groups and tags doesn&#8217;t seem to exist to the same degree in twitter. I added a widget to show the latest updates from identi.ca to the blog (Identi.ca Tools)]]></description>
			<content:encoded><![CDATA[<p>I have created a identi.ca acount and started to mikroblog.</p>
<p>Identi.ca is like twitter, but just better. Its open source and the system with groups and tags doesn&#8217;t seem to exist to the same degree in twitter.</p>
<p>I added a widget to show the latest updates from identi.ca to the blog (Identi.ca Tools)</p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/2009/04/23/mikroblogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

