{"id":831,"date":"2018-07-18T22:02:06","date_gmt":"2018-07-18T13:02:06","guid":{"rendered":"https:\/\/t-office.blue\/?p=831"},"modified":"2018-07-18T22:02:06","modified_gmt":"2018-07-18T13:02:06","slug":"google-home%e3%81%a8raspberrypi%e3%81%a8%e9%bb%92%e8%b1%86%e3%81%a7iot%e3%80%80part1","status":"publish","type":"post","link":"https:\/\/wp.t-office.blue\/?p=831","title":{"rendered":"Google Home\u3068Raspberrypi\u3068\u9ed2\u8c46\u3067IoT\u3000Part1"},"content":{"rendered":"<h1>Google Home\u3068Raspberrypi\u3068\u9ed2\u8c46\u3067IoT\u3000Part1<\/h1>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"fluid\"\n     data-ad-layout-key=\"-ei+6a+g-c3+k8\"\n     data-ad-client=\"ca-pub-4003048870046052\"\n     data-ad-slot=\"1589408991\"><\/ins><\/p>\n<p><script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<p>\u307e\u305araspberry pi \u3092\u6700\u65b0\u306e\u72b6\u614b\u306b\u3002\u8a2d\u7f6e\u3057\u305f\u3068\u304d\u4ee5\u6765\u307b\u3063\u305f\u3089\u304b\u3057(1\u5e74\u4ee5\u4e0a)\u306a\u306e\u3067\u304b\u306a\u308a\u30d1\u30c3\u30b1\u30fc\u30b8\u985e\u304c\u53e4\u304f\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<pre><code>pi@raspberrypi:~ $ uname -a\nLinux raspberrypi 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU\/Linux\n\npi@raspberrypi:~ $ sudo apt-get update\n\u53d6\u5f97:1 http:\/\/archive.raspberrypi.org\/debian stretch InRelease [25.3 kB]\n\u53d6\u5f97:2 http:\/\/mirrordirector.raspbian.org\/raspbian stretch InRelease [15.0 kB]\n\u53d6\u5f97:3 http:\/\/archive.raspberrypi.org\/debian stretch\/main armhf Packages [166 kB]\n\u53d6\u5f97:4 http:\/\/mirrordirector.raspbian.org\/raspbian stretch\/main armhf Packages [11.7 MB]\n\u53d6\u5f97:5 http:\/\/archive.raspberrypi.org\/debian stretch\/ui armhf Packages [34.0 kB]\n\u53d6\u5f97:6 http:\/\/mirrordirector.raspbian.org\/raspbian stretch\/contrib armhf Packages [56.9 kB]\n\u53d6\u5f97:7 http:\/\/mirrordirector.raspbian.org\/raspbian stretch\/non-free armhf Packages [95.2 kB]\n12.0 MB \u3092 50\u79d2 \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f (240 kB\/s)\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n<\/code><\/pre>\n<p>\u6848\u5916\u5c11\u306a\u304b\u3063\u305f<\/p>\n<pre><code>pi@raspberrypi:~ $ sudo apt-get upgrade\n\n<\/code><\/pre>\n<p>\u3068\u3053\u308d\u304c\u3001apt-get upgrade\u306f\u3080\u3061\u3083\u3080\u3061\u3083\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u3002(1\u6642\u9593\b\u305f\u3063\u3066\u3082\u304a\u308f\u3089\u3093\u3088\u3001\u3001\u3001)<\/p>\n<p>\u7d42\u308f\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre><code>pi@raspberrypi:~ $ sudo apt-get dist-upgrade\n<\/code><\/pre>\n<p>\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3082\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/p>\n<pre><code>pi@raspberrypi:~ $ sudo rpi-update\n<\/code><\/pre>\n<p>\u3053\u3053\u307e\u3067\u6765\u305f\u3089\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u3082\u6700\u65b0\u306b\uff01<\/p>\n<p>\braspberrypi\u306b\u8a2d\u5b9a\u3092\u3059\u308b\u305f\u3081\u306e\u524d\u6bb5\u968e\u306b\uff12\u6642\u9593\uff13\uff10\u5206\u4f4d\u304b\u304b\u3063\u3066\u308b\u3001\u3001\u3001<\/p>\n<pre><code>pi@raspberrypi:~ $ uname -a\nLinux raspberrypi 4.14.54+ #1126 Wed Jul 11 19:56:40 BST 2018 armv6l GNU\/Linux\n<\/code><\/pre>\n<p>\u3061\u3083\u3093\u3068\u66f4\u65b0\u3055\u308c\u307e\u3057\u305f\u306d\u3002<br \/>\n\u001b<\/p>\n<pre><code>\/\/ \u4f5c\u696d\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\/opt\/work\/googlehome\u306b\u4f5c\u6210\n$ sudo mkdir \/opt\/work\/googlehome\n$ sudo chown -R pi.pi \/opt\/work\n\n\/\/ pip\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n$ cd \/opt\/work\/googlehome\n$ wget https:\/\/bootstrap.pypa.io\/get-pip.py\n$ sudo python get-pip.py \n\n$ sudo apt autoremove\n\n\/\/ configparser\u3001netaddr\u3001pycrypto\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n$ sudo python -m pip install configparser\n$ sudo python -m pip install netaddr\n$ python -m pip install pycrypto --user\n\n\n\/\/ broadlink\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n$ git clone https:\/\/github.com\/mjg59\/python-broadlink.git\n$ cd python-broadlink\/\n$ sudo python setup.py install\n\n\/\/$ sudo pip install brodlink\u3067\u306f\u3046\u307e\u304f\u884c\u304b\u306a\u304b\u3063\u305f\u306e\u3067setup.py\u3092\u53e9\u304d\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u3046\u307e\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3088\u3046\u3060\u3002\n\n\n\/\/ BlackBean\u3092\/opt\/BlackBean\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n$ cd \/opt\/\n$ sudo mkdir BlackBean\n$ sudo chown pi.pi BlackBean\/\n$ cd BlackBean\n$ git clone https:\/\/github.com\/davorf\/BlackBeanControl.git\n<\/code><\/pre>\n<h2>\u8d64\u5916\u7dda\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a<\/h2>\n<p>\u3053\u306e\u6bb5\u968e\u3067\u3001\biphone\u306ee-Control\u3068\u3044\u3046\u30a2\u30d7\u30ea\u3067\u306f\u300cRM\b Mini3\u300d\u901a\u79f0\u9ed2\u8c46\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3064\u3065\u3044\u3066\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre><code>pi@raspberrypi:\/opt\/BlackBean $ cd BlackBeanControl\/\npi@raspberrypi:\/opt\/BlackBean\/BlackBeanControl $ ls\nBlackBeanControl.ini  README.md    nec.py\nBlackBeanControl.py   Settings.py  samsung.py\npi@raspberrypi:\/opt\/BlackBean\/BlackBeanControl $ vi BlackBeanControl.ini\n<\/code><\/pre>\n<p>LanScan\u3068\u3044\u3046\bMac\u7528\u306e\u30a2\u30d7\u30ea\u304c\u3042\u308b\u304b\u3089\u3053\u308c\u3067\u3001MAC Address\u3068IP address\u3092\u53d6\u5f97\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre><code>\bBlackBeanControl.ini\n\n[General]\nIPAddress = xxx.xxx.xxx.xxx\nPort = 80\nMACAddress = xx:xx:xx:xx:xx:xx\nTimeout = 10\n\n[Commands]\n\u203b\u3053\u308c\u4ee5\u4e0b\u306f\u66f8\u304b\u306a\u304f\u3066OK\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nhttps:\/\/qiita.com\/massu\/items\/e01a5e63e2990e1bffc7<\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"fluid\"\n     data-ad-layout-key=\"-ei+6a+g-c3+k8\"\n     data-ad-client=\"ca-pub-4003048870046052\"\n     data-ad-slot=\"1589408991\"><\/ins><\/p>\n<p><script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Home\u3068Raspberrypi\u3068\u9ed2\u8c46\u3067IoT\u3000Part1 \u307e\u305araspberry pi \u3092\u6700\u65b0\u306e\u72b6\u614b\u306b\u3002\u8a2d\u7f6e\u3057\u305f\u3068\u304d\u4ee5\u6765\u307b\u3063\u305f\u3089\u304b\u3057(1\u5e74\u4ee5\u4e0a)\u306a\u306e\u3067\u304b\u306a\u308a\u30d1\u30c3\u30b1\u30fc\u30b8\u985e\u304c\u53e4\u304f\u306a\u3063\u3066\u3044\u308b\u3002 pi@raspb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,5],"tags":[83,69,84],"class_list":["post-831","post","type-post","status-publish","format-standard","hentry","category-python","category-5","tag-googlehome","tag-python","tag-raspberrypi"],"_links":{"self":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=831"}],"version-history":[{"count":2,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/831\/revisions"}],"predecessor-version":[{"id":833,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/831\/revisions\/833"}],"wp:attachment":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}