
<?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>Photos &#8211; Mark&#039;s Website</title>
	<atom:link href="https://kram.nz/category/photos/feed/" rel="self" type="application/rss+xml" />
	<link>https://kram.nz</link>
	<description>Solution Architect - Healthcare IT</description>
	<lastBuildDate>Wed, 20 Feb 2019 11:16:01 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>https://kram.nz/wp-content/uploads/2016/04/cropped-M-32x32.png</url>
	<title>Photos &#8211; Mark&#039;s Website</title>
	<link>https://kram.nz</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Brisbane Webcam</title>
		<link>https://kram.nz/2019/02/brisbane-webcam/</link>
					<comments>https://kram.nz/2019/02/brisbane-webcam/#respond</comments>
		
		<dc:creator><![CDATA[M]]></dc:creator>
		<pubDate>Sun, 17 Feb 2019 06:10:06 +0000</pubDate>
				<category><![CDATA[Photos]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Brisbane]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Timelapse]]></category>
		<category><![CDATA[Webcam]]></category>
		<category><![CDATA[Website]]></category>
		<guid isPermaLink="false">https://kram.nz/?p=543</guid>

					<description><![CDATA[Using an old phone (Nokia N900) I have set up a webcam to take a photo every 5 minutes during the day and upload it to my website. You can see the latest photo on: Webcam I have set my computers desktop background to sync with the latest photo too. So far I have a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure><img fetchpriority="high" decoding="async" width="1024" height="569" src="https://kram.nz/wp-content/uploads/2019/02/20181231-134001-Brisbane-1024x569.jpeg" alt="" class="wp-image-552 aligncenter" srcset="https://kram.nz/wp-content/uploads/2019/02/20181231-134001-Brisbane-1024x569.jpeg 1024w, https://kram.nz/wp-content/uploads/2019/02/20181231-134001-Brisbane-300x167.jpeg 300w, https://kram.nz/wp-content/uploads/2019/02/20181231-134001-Brisbane-768x427.jpeg 768w, https://kram.nz/wp-content/uploads/2019/02/20181231-134001-Brisbane-1568x871.jpeg 1568w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Brisbane Webcam</figcaption></figure></div>



<p>Using an old phone (Nokia N900) I have set up a webcam to take a photo every 5 minutes during the day and upload it to my website. You can see the latest photo on: <a href="/webcam/">Webcam</a></p>



<div class="wp-block-image"><img decoding="async" width="640" height="480" src="https://kram.nz/wp-content/uploads/2019/02/BrisbaneWebcam.jpg" alt="" class="wp-image-548 aligncenter" srcset="https://kram.nz/wp-content/uploads/2019/02/BrisbaneWebcam.jpg 640w, https://kram.nz/wp-content/uploads/2019/02/BrisbaneWebcam-300x225.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption>N900 set up as a webcam</figcaption></figure></div>



<p>I have set my computers desktop background to sync with the latest photo too. So far I have a years worth of images and have made a few time-lapses. Here is one over a couple of days:</p>



<div class="wp-block-media-text alignwide"><figure class="wp-block-media-text__media"><video controls src="https://kram.nz/wp-content/uploads/2019/02/timelapse.webm"></video></figure><div class="wp-block-media-text__content">
<p style="text-align:center" class="has-large-font-size">Timelapse from the webcam</p>
</div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://kram.nz/2019/02/brisbane-webcam/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://kram.nz/wp-content/uploads/2019/02/timelapse.webm" length="1903113" type="video/webm" />

			</item>
		<item>
		<title>Webcam Security System</title>
		<link>https://kram.nz/2019/02/webcam-security-system/</link>
					<comments>https://kram.nz/2019/02/webcam-security-system/#respond</comments>
		
		<dc:creator><![CDATA[M]]></dc:creator>
		<pubDate>Sat, 16 Feb 2019 07:50:39 +0000</pubDate>
				<category><![CDATA[Photos]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[AIML]]></category>
		<category><![CDATA[ALICE]]></category>
		<category><![CDATA[hping3]]></category>
		<category><![CDATA[Motion]]></category>
		<category><![CDATA[Nmap]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Telegram]]></category>
		<category><![CDATA[Webcam]]></category>
		<guid isPermaLink="false">https://kram.nz/?p=353</guid>

					<description><![CDATA[A while ago I set up an old webcam / Raspberry Pi to serve as a security camera. Using Motion[1], its easy to set up a system that will record any movement and can be manually enabled or set to run on a simple schedule such as while I am away at work. Eventually I [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>A while ago I set up an old webcam / Raspberry Pi to serve as a security camera. Using Motion<a class="reflink" href="#ref-seccam-motion">[1]</a>, its easy to set up a system that will record any movement and can be manually enabled or set to run on a simple schedule such as while I am away at work.</p>



<ul class="wp-block-gallery columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex"><li class="blocks-gallery-item"><figure><img decoding="async" width="640" height="480" src="https://kram.nz/wp-content/uploads/2019/02/Webcam.jpg" alt="" data-id="519" data-link="https://kram.nz/?attachment_id=519" class="wp-image-519" srcset="https://kram.nz/wp-content/uploads/2019/02/Webcam.jpg 640w, https://kram.nz/wp-content/uploads/2019/02/Webcam-300x225.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption>Webcam</figcaption></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="640" height="480" src="https://kram.nz/wp-content/uploads/2019/02/MotionRPi.jpg" alt="" data-id="522" data-link="https://kram.nz/?attachment_id=522" class="wp-image-522" srcset="https://kram.nz/wp-content/uploads/2019/02/MotionRPi.jpg 640w, https://kram.nz/wp-content/uploads/2019/02/MotionRPi-300x225.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption>Raspberry Pi</figcaption></figure></li></ul>



<p>Eventually I made the system a bit smarter to automatically turn on when I leave home and turn off as soon as I get back. Added to that, if anything moves while I am out, I get a message with a photo sent to my phone.</p>



<p>For fun, I also added an AI to my messaging system so if I get bored I can have a chat or ask it to do some pre-programmed tasks (such as shutting down systems on the network, taking a photo or changing its settings).</p>



<p>The whole system is built using:</p>



<ul><li>Motion<a class="reflink" href="#ref-seccam-motion">[1]</a></li><li>Python</li><li>Nmap<a class="reflink" href="#ref-seccam-nmap">[2]</a> / hping3<a class="reflink" href="#ref-seccam-hping">[3]</a></li><li>Telegram<a class="reflink" href="#ref-seccam-telegram">[4]</a></li><li>PHP / SQL</li></ul>



<h2 class="wp-block-heading">Python Process</h2>



<p>The heart of the system is written in Python and is set to run as a systemd process. It mostly sleeps and wakes up every so often (~10 seconds) to check for new motion events or messages from telegram. </p>



<h2 class="wp-block-heading">Network presence detection</h2>



<p>It turns out that its not easy to detect the presence of iPhones on a network. In order to save power they can be come rather quiet and uncommunicative to network chatter. </p>



<p>At first I tried to build something in Python but after it became clear it was no small task, I decided to delegate to a subprocess and run a system tool. Next, I went with a script using hping3<a class="reflink" href="#ref-seccam-hping">[3]</a>  and arp tables. This still wasn&#8217;t fantastic so at the moment I am just using an nmap<a class="reflink" href="#ref-seccam-nmap">[2]</a> ping. From my tests, this seems to work better than hping3 at finding the iPhone but my tests weren&#8217;t very scientific.</p>



<h3 class="wp-block-heading">Monitoring</h3>



<p>I set up a database to log network presence and created a small PHP script to graph phones on the network. In the example below, you can see the blue graph for my phone, pink for my girlfriends and green shows when one of us are at home (and the system is turned off).</p>



<h4>2019-02-13</h4><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="0%" width="6.912037037037%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="7.4918981481481%" width="9.9525462962963%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="18.337962962963%" width="1.3252314814815%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="27.991898148148%" width="22.493055555556%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="51.212962962963%" width="2.0324074074074%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="55.68287037037%" width="29.296296296296%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="88.976851851852%" width="7.2083333333333%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="96.792824074074%" width="1.5347222222222%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="99.016203703704%" width="-98.601851851852%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="2.212962962963%" width="1.6261574074074%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="6.3611111111111%" width="0.99189814814815%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="9.5173611111111%" width="0.77083333333333%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="11.368055555556%" width="0.62037037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="13.862268518519%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="16.118055555556%" width="2.6481481481481%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="32.064814814815%" width="1.3900462962963%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="37.119212962963%" width="1.6203703703704%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="40.616898148148%" width="5.5798611111111%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="47.28125%" width="9.6354166666667%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="57.743055555556%" width="21.042824074074%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="79.650462962963%" width="7.8923611111111%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="88.903935185185%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="91.109953703704%" width="1.6458333333333%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="94.032407407407%" width="1.1296296296296%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="96.229166666667%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="98.299768518519%" width="0.57870370370371%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="0%" width="19.663194444444%" height="15" style="fill:rgb(0, 204, 102);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="27.991898148148%" width="59.550925925926%" height="15" style="fill:rgb(0, 204, 102);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="88.903935185185%" width="11.096064814815%" height="15" style="fill:rgb(0, 204, 102);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg><h4>2019-02-14</h4><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="1.2256944444444%" width="1.3125%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="3.1851851851852%" width="6.5983796296296%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="10.571759259259%" width="64.081018518519%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="75.534722222222%" width="2.4375%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="78.635416666667%" width="16.696759259259%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="95.935185185185%" width="1.0115740740741%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="97.614583333333%" width="2.3854166666667%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="0.49768518518519%" width="0.59259259259259%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="2.46875%" width="1.4236111111111%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="6.619212962963%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="9.8553240740741%" width="1.3564814814815%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="14.584490740741%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="17.484953703704%" width="1.3541666666667%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="19.835648148148%" width="0.97800925925926%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="22.327546296296%" width="1.7071759259259%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="25.109953703704%" width="0.99305555555556%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="28.662037037037%" width="3.5358796296296%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="34.517361111111%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="35.997685185185%" width="3.4074074074074%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="40.283564814815%" width="0.59143518518518%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="42%" width="10.75462962963%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="54.045138888889%" width="8.75%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="64.155092592593%" width="0.6886574074074%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="65.71875%" width="0.98032407407408%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="67.408564814815%" width="10.591435185185%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="78.614583333333%" width="1.150462962963%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="81.966435185185%" width="3.1122685185185%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="85.908564814815%" width="4.9282407407407%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="91.489583333333%" width="0.57870370370371%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="93.454861111111%" width="4.724537037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="99.084490740741%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="0%" width="78%" height="15" style="fill:rgb(0, 204, 102);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="78.614583333333%" width="21.385416666667%" height="15" style="fill:rgb(0, 204, 102);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg><h4>2019-02-15</h4><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="0%" width="22.28587962963%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="23.274305555556%" width="1.0277777777778%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="25.075231481481%" width="5.2384259259259%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="31.153935185185%" width="12.158564814815%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="43.987268518519%" width="5.0844907407407%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="50.298611111111%" width="2.9791666666667%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="54.133101851852%" width="41.005787037037%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="95.835648148148%" width="4.0300925925926%" height="15" style="fill:rgb(51, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="7.6828703703704%" width="0.59259259259259%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="11.170138888889%" width="1.6261574074074%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="13.747685185185%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="17.537037037037%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="21.679398148148%" width="1.4594907407407%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="24.025462962963%" width="0.90972222222222%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="25.519675925926%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="27.847222222222%" width="3.7337962962963%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="32.653935185185%" width="0.5787037037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="34.074074074074%" width="2.5138888888889%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="37.758101851852%" width="8.8599537037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="47.277777777778%" width="3.0196759259259%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="51.238425925926%" width="30.755787037037%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="82.988425925926%" width="1.1342592592593%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="84.768518518519%" width="3.5104166666667%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="89.568287037037%" width="2.6550925925926%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="92.803240740741%" width="0.59259259259258%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="95.24537037037%" width="0.57870370370371%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="96.960648148148%" width="0.60648148148148%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect><rect x="98.318287037037%" width="0.57870370370371%" height="15" style="fill:rgb(255, 204, 255);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg><svg width="100%" height="15"><rect width="100%" height="15" style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"></rect><rect x="0%" width="99.865740740741%" height="15" style="fill:rgb(0, 204, 102);stroke-width:1;stroke:rgb(0,0,0)"></rect></svg>



<h2 class="wp-block-heading">Messaging</h2>



<p>Initially I build a messaging component using the free Telstra API<a class="reflink" href="#ref-seccam-telstra">[5]</a>. This provided an API allowing me to send SMS messages to my phone when the system started up or movement was captured. I ripped this out when Telstra added more limits on the API and put more of a push to their priced model.</p>



<ul class="wp-block-gallery columns-2 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex"><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="180" height="320" src="https://kram.nz/wp-content/uploads/2019/02/IMG_7072.png" alt="" data-id="525" data-link="https://kram.nz/?attachment_id=525" class="wp-image-525" srcset="https://kram.nz/wp-content/uploads/2019/02/IMG_7072.png 180w, https://kram.nz/wp-content/uploads/2019/02/IMG_7072-169x300.png 169w" sizes="(max-width: 180px) 100vw, 180px" /><figcaption>Phone Disconnected</figcaption></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="180" height="320" src="https://kram.nz/wp-content/uploads/2019/02/IMG_7073.png" alt="" data-id="526" data-link="https://kram.nz/?attachment_id=526" class="wp-image-526" srcset="https://kram.nz/wp-content/uploads/2019/02/IMG_7073.png 180w, https://kram.nz/wp-content/uploads/2019/02/IMG_7073-169x300.png 169w" sizes="(max-width: 180px) 100vw, 180px" /><figcaption>Phone Connected</figcaption></figure></li></ul>



<h3 class="wp-block-heading">Telegram</h3>



<p>After looking for a better way to do push notifications to my phone, I eventually settled on creating a Telegram<a class="reflink" href="#ref-seccam-telegram">[4]</a>  bot. This allayed my cost aversion, provided the push notification behaviour that I was after and opened up easier two way communication. </p>



<ul class="wp-block-gallery columns-2 is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex"><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="375" height="667" src="https://kram.nz/wp-content/uploads/2019/02/telegram.png" alt="" data-id="538" data-link="https://kram.nz/2019/02/webcam-security-system/telegram/" class="wp-image-538" srcset="https://kram.nz/wp-content/uploads/2019/02/telegram.png 375w, https://kram.nz/wp-content/uploads/2019/02/telegram-169x300.png 169w" sizes="(max-width: 375px) 100vw, 375px" /><figcaption>Telegram commands</figcaption></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="375" height="667" src="https://kram.nz/wp-content/uploads/2019/02/ALICE.png" alt="" data-id="529" data-link="https://kram.nz/2019/02/webcam-security-system/alice/" class="wp-image-529" srcset="https://kram.nz/wp-content/uploads/2019/02/ALICE.png 375w, https://kram.nz/wp-content/uploads/2019/02/ALICE-169x300.png 169w" sizes="(max-width: 375px) 100vw, 375px" /><figcaption>ALICE</figcaption></figure></li></ul>



<h3 class="wp-block-heading">AI</h3>



<p>I took an old copy of the A.L.I.C.E. AIML<a class="reflink" href="#ref-seccam-aiml">[6]</a> bot and plugged it into my Telegram bot. Its hardly going to convince anybody in a Turing test but is still quite a bit of fun to chat to.</p>



<h2 class="wp-block-heading">Image Capture<br></h2>



<p>Motion provides a very easy to set up frame/video capture process on Linux. It has the ability to trigger actions when motion is detected but I have instead chosen to go with periodically polling its output for events and archiving captures.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" decoding="async" width="640" height="480" src="https://kram.nz/wp-content/uploads/2019/02/motion.jpg" alt="" class="wp-image-527" srcset="https://kram.nz/wp-content/uploads/2019/02/motion.jpg 640w, https://kram.nz/wp-content/uploads/2019/02/motion-300x225.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption>Capture from Motion</figcaption></figure></div>



<h2 class="wp-block-heading">References</h2>



<p> (last checked 2019-02-16) </p>



<ol><li><a href="https://motion-project.github.io/" target="_blank" rel="noopener noreferrer" id="ref-seccam-motion">https://motion-project.github.io/</a></li><li><a href="https://nmap.org/" target="_blank" rel="noopener noreferrer" id="ref-seccam-nmap">https://nmap.org/</a></li><li><a href="http://www.hping.org/" target="_blank" rel="noopener noreferrer" id="ref-seccam-hping">http://www.hping.org/</a></li><li><a href="https://telegram.org/" target="_blank" rel="noopener noreferrer" id="ref-seccam-telegram">https://telegram.org/</a></li><li><a href="https://dev.telstra.com/" target="_blank" rel="noopener noreferrer" id="ref-seccam-telstra">https://dev.telstra.com/</a></li><li><a href="https://en.wikipedia.org/wiki/AIML" target="_blank" rel="noopener noreferrer" id="ref-seccam-aiml">https://en.wikipedia.org/wiki/AIML</a></li></ol>
]]></content:encoded>
					
					<wfw:commentRss>https://kram.nz/2019/02/webcam-security-system/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Hello Stereogram</title>
		<link>https://kram.nz/2008/04/hello-stereogram/</link>
					<comments>https://kram.nz/2008/04/hello-stereogram/#comments</comments>
		
		<dc:creator><![CDATA[M]]></dc:creator>
		<pubDate>Sat, 12 Apr 2008 08:23:29 +0000</pubDate>
				<category><![CDATA[Photos]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Puzzle]]></category>
		<category><![CDATA[Stereogram]]></category>
		<guid isPermaLink="false">https://kram.no-ip.com?p=28</guid>

					<description><![CDATA[Here is a stereogram I made by hand. Its supprisingly easy to do. Just click the image to try and read it 🙂 Click to view!]]></description>
										<content:encoded><![CDATA[<p>Here is a stereogram I made by hand. Its supprisingly easy to do. Just click the image to try and read it 🙂</p>
<p><a class="lightbox-enabled" title="Stereogram made my Mark" href="/wp-content/uploads/2008/04/stereogram.png" rel="lightbox[stereogram]"><img loading="lazy" decoding="async" class="size-medium wp-image-27 aligncenter" title="Hello from Mark stereogram" src="/wp-content/uploads/2008/04/stereogram-300x82.png" alt="Hello from Mark" width="300" height="82" srcset="https://kram.nz/wp-content/uploads/2008/04/stereogram-300x82.png 300w, https://kram.nz/wp-content/uploads/2008/04/stereogram.png 883w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p style="text-align: center;">Click to view!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://kram.nz/2008/04/hello-stereogram/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
