<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mczh</author_name>
  <author_url>https://blog.hatena.ne.jp/mczh/</author_url>
  <blog_title>ちぎっては投げるブログ</blog_title>
  <blog_url>https://denpa-shinbun.com/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>Programming</anon>
    <anon>RaspberryPi</anon>
    <anon>TIL</anon>
    <anon>shell</anon>
  </categories>
  <description>I’m home いつかのブログにも書いたかもしれないが、RaspberryPiで色々センサーをいじれるように遊んでいると、「自分が家にいるときだけ」という処理をしたくなる。 しかし、近接センサーは近くしか見ないし、照度センサーは窓の近くだと結構変わるし、わざわざそのためにBLEを使うのも……。 という場合に、簡単な方法として、自分のスマホのIPへpingを打って返り値を確認するという方法がある。 家に無線LANの環境があり、スマホだけ自宅にあるという状態がないのが前提である。 せっかくRaspberryPiなのにセンサー使わないのかよ！というのはあるが、手段よりも目的重視で……。 Photo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdenpa-shinbun.com%2Fentry%2Fping-phone&quot; title=&quot;自分が帰宅しているかをRaspberryPiで検知する簡単な方法 - ちぎっては投げるブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mczh/20170220/20170220221353.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-20 22:16:57</published>
  <title>自分が帰宅しているかをRaspberryPiで検知する簡単な方法</title>
  <type>rich</type>
  <url>https://denpa-shinbun.com/entry/ping-phone</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
