<?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>Rupstjarn 55 &#187; CMD Scripts</title>
	<atom:link href="http://domotica.ronnkvist.nu/category/cmd-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://domotica.ronnkvist.nu</link>
	<description>Domotica - Home Automation</description>
	<lastBuildDate>Thu, 05 Nov 2009 09:57:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create event in EventGhost</title>
		<link>http://domotica.ronnkvist.nu/blog/2009/09/13/create-event-in-eventghost/</link>
		<comments>http://domotica.ronnkvist.nu/blog/2009/09/13/create-event-in-eventghost/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 06:27:40 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[CMD Scripts]]></category>
		<category><![CDATA[VBScripts]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Eventghost]]></category>
		<category><![CDATA[Trigger]]></category>

		<guid isPermaLink="false">http://domotica.ronnkvist.nu/?p=158</guid>
		<description><![CDATA[There are two easy ways of creating events in EventGhost.
First by commandline:

C:\Program Files\EventGhost\EventGhost.exe -E MyTestEventFromCmd
C:\Program Files\EventGhost\EventGhost.exe -E MyTestEventFromCmd WithPayload

And then via VBScript

Dim oEventGhost
Set oEventGhost = CreateObject(&#34;EventGhost&#34;)
oEventGhost.TriggerEvent &#34;MyTestEvent&#34;
oEventGhost.TriggerEvent &#34;AndSomeOtherEvent&#34;, &#34;WithPayload&#34;
Set oEventGhost = Nothing

With that you can get EventGhost to react on loads of stuff&#8230; why not react on incoming phonecalls?

]]></description>
			<content:encoded><![CDATA[<p>There are two easy ways of creating events in EventGhost.</p>
<p>First by commandline:</p>
<pre class="brush: plain;">
C:\Program Files\EventGhost\EventGhost.exe -E MyTestEventFromCmd
C:\Program Files\EventGhost\EventGhost.exe -E MyTestEventFromCmd WithPayload
</pre>
<p>And then via VBScript</p>
<pre class="brush: vb;">
Dim oEventGhost
Set oEventGhost = CreateObject(&quot;EventGhost&quot;)
oEventGhost.TriggerEvent &quot;MyTestEvent&quot;
oEventGhost.TriggerEvent &quot;AndSomeOtherEvent&quot;, &quot;WithPayload&quot;
Set oEventGhost = Nothing
</pre>
<p>With that you can get EventGhost to react on loads of stuff&#8230; why not react on incoming phonecalls?<br />
<img src="http://domotica.ronnkvist.nu/wp/wp-content/uploads/eventghostevents.png" alt="eventghostevents" title="eventghostevents" class="alignnone size-full wp-image-159" /></p>
]]></content:encoded>
			<wfw:commentRss>http://domotica.ronnkvist.nu/blog/2009/09/13/create-event-in-eventghost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweet something</title>
		<link>http://domotica.ronnkvist.nu/blog/2009/09/13/tweet-something/</link>
		<comments>http://domotica.ronnkvist.nu/blog/2009/09/13/tweet-something/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 05:00:39 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[CMD Scripts]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://domotica.ronnkvist.nu/?p=144</guid>
		<description><![CDATA[It&#8217;s easy to tweet from the command-line&#8230; Google up some curl command-line application and download it.

curl --user MyTwitterUser:MyPassword --data &#38;quot;source=haStatus&#38;amp;status=This is what I want to tweet&#38;quot; http://twitter.com/statuses/update.json

I have a &#8220;source&#8221; called &#8220;haStatus&#8221; (Has Status or Home Automation Status) that is registered with Twitter. If you don&#8217;t want to use that one as source, just remove [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s easy to tweet from the command-line&#8230; Google up some curl command-line application and download it.</p>
<pre class="brush: plain;">
curl --user MyTwitterUser:MyPassword --data &amp;quot;source=haStatus&amp;amp;status=This is what I want to tweet&amp;quot; http://twitter.com/statuses/update.json
</pre>
<p>I have a &#8220;source&#8221; called &#8220;haStatus&#8221; (Has Status or Home Automation Status) that is registered with Twitter. If you don&#8217;t want to use that one as source, just remove <strong>source=haStatus&#038;</strong> from the command-line.</p>
<p>Since it&#8217;s a quite long commandline I have a small cmd-file that does the trick for me:</p>
<pre class="brush: plain;">
@echo off
h:\scripts\bin\curl --user MyTwitterUser:MyPassword --data &amp;quot;source=haStatus&amp;amp;status=%*&amp;quot; http://twitter.com/statuses/update.json

time /T &amp;gt;H:\Scripts\Log\lastTweet.log
date /T &amp;gt;&amp;gt;H:\Scripts\Log\lastTweet.log
echo %* &amp;gt;&amp;gt;H:\Scripts\Log\lastTweet.log
</pre>
]]></content:encoded>
			<wfw:commentRss>http://domotica.ronnkvist.nu/blog/2009/09/13/tweet-something/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

