{"id":2062,"date":"2016-09-22T16:47:33","date_gmt":"2016-09-22T07:47:33","guid":{"rendered":"http:\/\/uda2.com\/blog\/?p=2062"},"modified":"2016-09-23T09:20:59","modified_gmt":"2016-09-23T00:20:59","slug":"homekit1","status":"publish","type":"post","link":"https:\/\/uda2.com\/blog\/homekit1\/","title":{"rendered":"Raspberry Pi\u3067\u5148\u53d6\u308aHomekit Vol.1"},"content":{"rendered":"<p>\u5148\u65e5\u306eiOS\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067<strong>\u300c\u30db\u30fc\u30e0\u300d<\/strong>\u3068\u3044\u3046\u30a2\u30d7\u30ea\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u30a2\u30d7\u30ea\u306f\u4e00\u6628\u5e74\u3050\u3089\u3044\u304b\u3089\u30a2\u30c3\u30d7\u30eb\u304c\u9032\u3081\u3066\u308b\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\u306e\u898f\u683cHomeKit\u7528\u306e\u30a2\u30d7\u30ea\u3067siri\u7d4c\u7531\u3067\u30a8\u30a2\u30b3\u30f3\u3084\u7167\u660e\u306a\u3069\u5bb6\u96fb\u3092\u64cd\u4f5c\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<a href=\"http:\/\/www.apple.com\/jp\/shop\/iphone\/iphone-accessories\/home-automation?page=1&amp;fh=458c%2B4559#!&amp;\" target=\"_blank\">\u5bfe\u5fdc\u5546\u54c1\u304c\u6b86\u3069\u7121\u304f<\/a>\u8a71\u984c\u306b\u4e0a\u308b\u4e8b\u3082\u5c11\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306e\u30a2\u30d7\u30ea\u306e\u5f37\u5236\u8ffd\u52a0\u3067\u6d41\u884c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\uff08Passbook\u306e\u6642\u306f\u9cf4\u304b\u305a\u98db\u3070\u305a\u3067\u3057\u305f\u304c\u30fb\u30fb\u30fb\uff09<br \/>\n\u6570\u5e74\u524d\u306b<a href=\"http:\/\/netakiri.net\/diary\/archives\/486.html\" target=\"_blank\">\u30eb\u30fc\u30e0\u30ea\u30e2\u30b3\u30f3 Kotoshiro<\/a>\u306e\u5b58\u5728\u77e5\u3063\u3066\u304b\u3089\u58f0\u3067\u5bb6\u96fb\u3092\u52d5\u304b\u3057\u305f\u3044\u3068\u3044\u3046\u91ce\u671b\u3092\u62b1\u3044\u3066\u3044\u305f\u79c1\u306f\u5bfe\u5fdc\u6a5f\u5668\u304c\u5c11\u306a\u3044\u73fe\u72b6\u3067\u3082\u51fa\u6765\u306a\u3044\u304b\u8abf\u3079\u3066\u307f\u308b\u3068\u8d64\u5916\u7dda\u30e2\u30b8\u30e5\u30fc\u30eb\u3092Raspberry Pi\u306b\u304f\u3063\u3064\u3051\u3066homebridge\u3068\u3084\u3089\u3092\u4f7f\u3044HomeKit\u7684\u306a\u4e8b\u3092\u5b9f\u73fe\u3057\u3066\u308b\u65b9\u3092\u898b\u304b\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<!--more--><br \/>\nRaspberry Pi\u306f\u4ee5\u524d\u8cfc\u5165\u3057\u3066\u3044\u305fRaspberry Pi 2 Model B\uff085,184\u5186\uff09\u306e\u304c\u3042\u308b\u306e\u3067\u8d64\u5916\u7dda\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u63a2\u3057\u305f\u3002\u4eba\u6c17\u306a\u306e\u306f<a href=\"https:\/\/www.amazon.co.jp\/exec\/obidos\/ASIN\/B00H91KK26\/bekopannews-22\/ref=nosim\" target=\"_blank\">IRKit<\/a>\u30677,700\u5186\u7a0b\u3067Wifi\u7d4c\u7531\u3067\u6307\u793a\u3092\u51fa\u3059\u8d64\u5916\u7dda\u30ea\u30e2\u30b3\u30f3\u3060\u304c\u58f2\u308a\u5207\u308c\u3060\u3063\u305f\u306e\u3067\u4ed6\u3092\u63a2\u3059\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\n\u30d3\u30c3\u30c8\u30c8\u30ec\u30fc\u30c9\u30ef\u30f3\u306eUSB\u63a5\u7d9a<a href=\"https:\/\/www.amazon.co.jp\/exec\/obidos\/ASIN\/B00AXVHQLC\/bekopannews-22\/ref=nosim\" target=\"_blank\">\u8d64\u5916\u7dda\u30ea\u30e2\u30b3\u30f3KIT<\/a>\u306f2,551\u5186\u3068\u5b89\u3044\u3051\u3069\u8ddd\u96e2\u304c\u77ed\u304f\u8a2d\u7f6e\u304c\u56f0\u96e3\u3067\u4e0a\u4f4d\u6a5f\u7a2e\u306e<a href=\"https:\/\/www.amazon.co.jp\/exec\/obidos\/ASIN\/B013JG0WSG\/bekopannews-22\/ref=nosim\" target=\"_blank\">\u8d64\u5916\u7dda\u30ea\u30e2\u30b3\u30f3\u30a2\u30c9\u30d0\u30f3\u30b9<\/a>\u306f3,974\u5186\u3067LED\u304c3\u3064\u3082\u4ed8\u3044\u3066\u3044\u3044\u611f\u3058\u3060\u304cLinux\u3067\u306e\u4f5c\u4f8b\u304c\u5c11\u306a\u3044\u3002<br \/>\n\u305d\u3053\u3067\u4f5c\u4f8b\u3082\u3044\u304f\u3064\u304b\u3042\u308a\u8d64\u5916\u7dda\u30822\uff5e3m\u3068\u53ca\u7b2c\u70b9\u306a<a href=\"http:\/\/www.omiya-giken.com\/?page_id=837\" target=\"_blank\">irMagician<\/a>\uff083,980\u5186\uff09\u3092\u8a66\u3059\u4e8b\u306b\u3057\u305f\u3002<\/p>\n<p>netbuffalo\u3055\u3093\u306e<a href=\"http:\/\/netbuffalo.doorblog.jp\/archives\/4872290.html\" target=\"_blank\">\u5c0f\u578b\u8d64\u5916\u7dda\uff08IR\uff09\u30ea\u30e2\u30b3\u30f3 irMagician \u30d5\u30a1\u30fc\u30b9\u30c8\u30fb\u30a4\u30f3\u30d7\u30ec\u30c3\u30b7\u30e7\u30f3<\/a>\u306b\u3088\u308b\u3068\u3001\u63a5\u7d9a\u3059\u308b\u524d\u306b\/boot\/cmdline.txt\u304b\u3089\u300cconsole=serial0,115200\u300d\u3092\u9664\u5916\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3089\u3057\u3044\u3002<br \/>\n\u77e5\u3089\u305a\u306b\u63a5\u7d9a\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3059\u304c\u76f4\u3050\u306b<br \/>\n<strong>$ sudo vi \/boot\/cmdline.txt<\/strong><br \/>\n\u3068\u3057\u3066\u300cconsole=serial0,115200\u300d\u3092\u524a\u9664\u3057\u7de8\u96c6\u3057\u3066\u518d\u8d77\u52d5\u3057\u305f\u3002\uff08\/etc\/inittab\u306f\u7121\u304b\u3063\u305f\u306e\u30b9\u30eb\u30fc\uff09<br \/>\n\u304a\u305d\u308b\u304a\u305d\u308b\u78ba\u8a8d\u3057\u3066\u307f\u305f\u304c\u554f\u984c\u7121\u304f\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u3063\u305f\u3002<br \/>\n<strong>$ ls \/dev\/ttyACM*<\/strong><br \/>\n\u305d\u306e\u5f8c\u3082netbuffalo\u3055\u3093\u306e\u66f8\u304b\u308c\u3066\u308b\u901a\u308apyserial\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3084\u3089\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\npyserial\u30e9\u30a4\u30d6\u30e9\u30ea\u306fPython\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067PIP\uff08Python\u88fd\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\uff09\u304c\u7121\u304b\u3063\u305f\u306e\u3067\u307e\u305a\u306fPIP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<strong>$ sudo apt-get install python-pip<\/strong><br \/>\n\u7d9a\u3044\u3066PIP\u3067pyserial\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<strong>$ sudo pip install pyserial<\/strong><br \/>\n\u30b9\u30af\u30ea\u30d7\u30c8\u3082netbuffalo\u3055\u3093\u306eirm.py\u3092\u304a\u501f\u308a\u3057\u3066\u30b3\u30d4\u30da\u3067\u914d\u7f6e\u3057<br \/>\n<strong>$ vi irm.py<\/strong><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u76f4\u3050\u306b\u7167\u660e\u306e\u30ea\u30e2\u30b3\u30f3\u64cd\u4f5c\u3059\u308b\u3002\uff08\u5931\u6557\u3057\u3066\u3082\u307e\u305f\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3067\u3084\u308a\u76f4\u305b\u3070OK\uff09<br \/>\n<strong>$ python irm.py -c<\/strong><br \/>\n\u8a18\u61b6\u3057\u3066\u308b\u30ea\u30e2\u30b3\u30f3\u64cd\u4f5c\u3092\u518d\u751f\u3059\u308b\u3002<br \/>\n<strong>$ python irm.py -p<\/strong><br \/>\n\u5168\u304f\u554f\u984c\u7121\u304f\u52d5\u4f5c\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u305d\u306e\u30ea\u30e2\u30b3\u30f3\u306e\u60c5\u5831\u3092JSON\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3057<br \/>\n<strong>$ python irm.py -s -f DLC303V-ON.json<\/strong><br \/>\nJSON\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u5b9f\u884c<br \/>\n<strong>$ python irm.py -p -f DLC303V-ON.json<\/strong><br \/>\n\u3053\u3061\u3089\u3082\u5168\u304f\u554f\u984c\u7121\u304f\u52d5\u4f5c\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u8a66\u3057\u305f\u306e\u306f\u30a8\u30a2\u30b3\u30f3\uff08AYS28YSC\uff09\u3001\u7167\u660e\uff08DLC303V\uff09\u3001\u30c6\u30ec\u30d3\uff08LC32F5\uff09\u3067\u3044\u305a\u308c\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/uda2.com\/blog\/homekit2\/\">Raspberry Pi\u3067\u5148\u53d6\u308aHomekit Vol.2<\/a>\u306b\u7d9a\u304f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u306eiOS\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u300c\u30db\u30fc\u30e0\u300d\u3068\u3044\u3046\u30a2\u30d7\u30ea\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002 \u3053\u306e\u30a2\u30d7\u30ea\u306f\u4e00\u6628\u5e74\u3050\u3089\u3044\u304b\u3089\u30a2\u30c3\u30d7\u30eb\u304c\u9032\u3081\u3066\u308b\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\u306e\u898f\u683cHomeKit\u7528\u306e\u30a2\u30d7\u30ea\u3067siri\u7d4c\u7531\u3067\u30a8\u30a2\u30b3\u30f3\u3084\u7167\u660e\u306a\u3069\u5bb6\u96fb\u3092\u64cd\u4f5c\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059<\/p>\n","protected":false},"author":2,"featured_media":2063,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[206],"tags":[328,327,329],"class_list":["post-2062","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-diary","tag-homekit","tag-raspberry-pi","tag-siri"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/posts\/2062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/comments?post=2062"}],"version-history":[{"count":10,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/posts\/2062\/revisions"}],"predecessor-version":[{"id":2090,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/posts\/2062\/revisions\/2090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/media\/2063"}],"wp:attachment":[{"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/media?parent=2062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/categories?post=2062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/tags?post=2062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}