<?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>スマートミラー | ウダ2Blog</title>
	<atom:link href="https://uda2.com/blog/tag/%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%83%9f%e3%83%a9%e3%83%bc/feed/" rel="self" type="application/rss+xml" />
	<link>https://uda2.com/blog</link>
	<description>大阪でフリーランスとしてWEB制作している管理人が気になった技術をメモったり、作ったツールの紹介などを綴っているブログです。</description>
	<lastBuildDate>Sat, 14 Jan 2023 14:22:13 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>スマートミラー作ってみた</title>
		<link>https://uda2.com/blog/smartmirror/</link>
					<comments>https://uda2.com/blog/smartmirror/#respond</comments>
		
		<dc:creator><![CDATA[uda2]]></dc:creator>
		<pubDate>Sat, 14 Jan 2023 14:20:41 +0000</pubDate>
				<category><![CDATA[うだうだ]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[スマートミラー]]></category>
		<guid isPermaLink="false">https://uda2.com/blog/?p=2584</guid>

					<description><![CDATA[<p>以前からスマートミラーに関心があったのですが液晶だけでも1万円程するので躊躇してたのですが年末に「ELSONIC EK-MD088」というのならメルカリで4,000円前後で未使用品が出回ってるのを発見し作ってみることにし</p>
The post <a href="https://uda2.com/blog/smartmirror/">スマートミラー作ってみた</a> first appeared on <a href="https://uda2.com/blog">ウダ2Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>以前からスマートミラーに関心があったのですが液晶だけでも1万円程するので躊躇してたのですが<br>年末に「ELSONIC EK-MD088」というのならメルカリで4,000円前後で未使用品が出回ってるのを発見し作ってみることにしました。</p>



<span id="more-2584"></span>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://uda2.com/blog/wp-content/uploads/IMG_1677.jpg"><img fetchpriority="high" decoding="async" src="https://uda2.com/blog/wp-content/uploads/IMG_1677.jpg" alt="" class="wp-image-2587" width="250" height="250" srcset="https://uda2.com/blog/wp-content/uploads/IMG_1677.jpg 500w, https://uda2.com/blog/wp-content/uploads/IMG_1677-300x300.jpg 300w, https://uda2.com/blog/wp-content/uploads/IMG_1677-150x150.jpg 150w, https://uda2.com/blog/wp-content/uploads/IMG_1677-144x144.jpg 144w" sizes="(max-width: 250px) 100vw, 250px" /></a></figure>
</div>


<p>「ELSONIC EK-MD088」は<a href="https://youtu.be/GhrIDitjycE" target="_blank" rel="noreferrer noopener">超細長い小型モニターを使ってみたら予想外に便利で使いやすかった！ &#8211; YouTube</a>に背面が縦置きしか出来ないと言ってたので足は切り落とすしか無いかと思ってたのですがネジを外して足にあたる部分のパーツを外したらなんとか復元可能なレベルで済みました。</p>



<p>映像の出力機は家に余ってるRaspberryPi2かRaspberryPi3か悩んだのですがスペックより消費電力を優先しRaspberryPi2を使いました。<br>変わったサイズのモニタなので映るのか心配でしたがRaspbianで何の問題も無く映りました。</p>



<p>次に映す内容は<a href="https://github.com/MichMich/MagicMirror" target="_blank" rel="noreferrer noopener">MagicMirror</a>を入れてみたのですが天気予報がピンポイントでないので自前のHTMLを表示するようにしました。HTMLの表示は自動実行のファイルを下記のように書き換えていきます。</p>



<pre><code>vi ~/.config/lxsession/LXDE-pi/autostart
#@lxpanel --profile LXDE-pi
#@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash

@xset s off
@xset s noblank
@xset -dpms
@unclutter -display :0 -idol 3 -root -noevents
@chromium-browser --noerrdialogs --disable-infobars --disable-background-mode --kiosk --app=http://～/dashboard.html</code></pre>



<p>元々ブラウザの初期画面に自前のHTMページを設定していてそのページに今回使う、天気と温度湿度の情報はあったのでhtmlでは左上に日時、右上にセンサーから取得した温度湿度、下には某天気サイトをスクレイピング（1時間おき）した天気、中央に営業中睡眠中そのたのモード表記。<br>睡眠時間は画面を書き換えを止めて画面を極力黒くしています。</p>



<p>さらに睡眠時間にはモニターの電源をオフするようにリレー回路を付けてcronでモニタの電源を制御しています。（元々USB照明式の事務所用看板を自動オンオフするために用意した回路です）</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://uda2.com/blog/wp-content/uploads/IMG_1675.jpg"><img decoding="async" src="https://uda2.com/blog/wp-content/uploads/IMG_1675.jpg" alt="" class="wp-image-2588" width="250" height="250" srcset="https://uda2.com/blog/wp-content/uploads/IMG_1675.jpg 500w, https://uda2.com/blog/wp-content/uploads/IMG_1675-300x300.jpg 300w, https://uda2.com/blog/wp-content/uploads/IMG_1675-150x150.jpg 150w, https://uda2.com/blog/wp-content/uploads/IMG_1675-144x144.jpg 144w" sizes="(max-width: 250px) 100vw, 250px" /></a></figure>
</div>


<p>最後にマジックミラーですが<a href="https://01shinji.com/smartmirror/" target="_blank" rel="noreferrer noopener"> シンジのブログ</a>でしっかり反射してるようだったので同氏が購入したという<a href="https://www.e-kagami.com/magic.html" target="_blank" rel="noreferrer noopener">鏡の販売.COM</a>さんで購入し100均の黒い両面テープ（SERIA 超強力アクリルフォーム両面テープ ブラック ）で貼り付けた。液晶とガワは色味も違うし高低差もあるけどほぼ影響は無さそう。<br>鏡と比べると若干暗いけど必要十分な反射率かと思います。（体感としては鏡が100としたら80ぐらいの明るさ）</p>



<p>■スマートミラー作成に使ったもの：総計13,900円<br><a href="https://raspberry-pi.ksyic.com/?pdp.id=39" target="_blank" rel="noreferrer noopener">Raspberry Pi 2 Model B</a>：5,184円（購入時）<br><a href="https://raspberry-pi.ksyic.com/?pdp.id=75" target="_blank" rel="noreferrer noopener">Raspberry Pi Official B+/Pi2 ケース</a>：945円（購入時）<br><a href="https://www.amazon.co.jp/dp/B00L11KL10?tag=uda2ch-22&amp;linkCode=ogi&amp;th=1&amp;psc=1&amp;language=ja_JP" target="_blank" rel="noopener" title="">SODIAL(R) リレーモジュール</a>：191円（購入時）<br><a href="https://www.amazon.co.jp/dp/B016DC84R4?tag=uda2ch-22&amp;linkCode=ogi&amp;th=1&amp;psc=1&amp;language=ja_JP" target="_blank" rel="noopener" title="">SODIAL(R) DHT22 AM2302 デジタル温度湿度センサーモジュール</a>：580円（購入時）<br><a href="https://online.nojima.co.jp/commodity/1/0479960021309/" target="_blank" rel="noreferrer noopener">ELSONIC EK-MD088 PCモニター</a>：メルカリで4,000円ぐらい<br><a href="https://www.e-kagami.com/magic.html" target="_blank" rel="noreferrer noopener">マジックミラー</a>：送料込みで約3,000円</p>



<p>6,900円分は元々持ってたパーツの流用なので実質7,000円ぐらいで制作できた。<br>まあ本当に役立つのかは微妙ではあるけど気に入ってるのでしばらく使っていこうと思います。</p>



<p>※天気予報のアイコンは「<a href="https://dribbble.com/shots/1097615-Weather-Icons-PSD" target="_blank" rel="noreferrer noopener">Weather Icons PSD by jiakedesigner on Dribbble</a>」を使わせて頂きました。</p>The post <a href="https://uda2.com/blog/smartmirror/">スマートミラー作ってみた</a> first appeared on <a href="https://uda2.com/blog">ウダ2Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://uda2.com/blog/smartmirror/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
