{"id":29004,"date":"2015-04-12T14:26:13","date_gmt":"2015-04-12T21:26:13","guid":{"rendered":"https:\/\/blog.btrax.com\/jp\/?p=29004"},"modified":"2020-08-10T11:41:05","modified_gmt":"2020-08-10T02:41:05","slug":"iot-dev","status":"publish","type":"post","link":"https:\/\/blog.btrax.com\/jp\/iot-dev\/","title":{"rendered":"\u3010IoT\u958b\u767a\u30d6\u30ed\u30b0\u3011Raspberry Pi + Node.js + PubNub(mBaaS)\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u3068IoT\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u3092\u5b9f\u88c5"},"content":{"rendered":"<div class='wp_content_tag clearfix'><p><a href=\"https:\/\/btrax.com\/jp\" target=\"_blank\" rel=\"noopener\">btrax<\/a>\u3067\u306f\u3001IoT\u30c7\u30d0\u30a4\u30b9\u306e\u5e02\u5834\u8abf\u67fb\u3001UX\u7814\u7a76\u3092\u76ee\u7684\u306b\u3001IoT\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3002\u73fe\u5728\u9032\u884c\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u793e\u5185\u306b\u53d6\u308a\u4ed8\u3051\u3089\u308c\u305f\u30df\u30e9\u30fc\u30dc\u30fc\u30eb\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3057\u69d8\u3005\u306a\u30c4\u30fc\u30eb\uff08Google Apps\u9023\u643a\u3001Slack\u9023\u643a\u306a\u3069\uff09\u304b\u3089\u9060\u9694\u3067\u64cd\u4f5c\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3002<\/p>\n<p>\u4eca\u56de\u306f\u793e\u5185\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u3001\u958b\u767a\u306e\u904e\u7a0b\u3067\u5f97\u3089\u308c\u305fRaspberry Pi\u3068\u3044\u3046\u30b7\u30f3\u30b0\u30eb\u30dc\u30fc\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3068PubNub\u3068\u3044\u3046\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u304c\u53ef\u80fd\u306amBaaS(Mobile Backend as a Service)\u3092\u7528\u3044\u3066\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u304b\u3089\u7c21\u5358\u306bLED\u306e\u70b9\u706f\u3092\u884c\u3046\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306e\u958b\u767a\u65b9\u6cd5\u3092\u7d39\u4ecb\u3059\u308b\u3002Raspberry Pi2\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304b\u30891\u304b\u3089\u8aac\u660e\u3059\u308b\u3002<\/p>\n<h2>Raspberry Pi\u3068\u306f<\/h2>\n<p>Raspberry Pi(\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4)\u306fARM\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u642d\u8f09\u3057\u305f\u30b7\u30f3\u30b0\u30eb\u30dc\u30fc\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u3042\u308b\u30022015\u5e742\u6708\u306b\u6700\u65b0\u306e\u300cRaspberry Pi2\u300d\u304c\u767a\u58f2\u3055\u308c\u305f\u3002\u4fa1\u683c\u306f\u306a\u3093\u30685,000\u5186\u672a\u6e80\u3002\u5927\u304d\u3055\u306f\u540d\u523a\u30b5\u30a4\u30ba\u3067\u3001\u91cd\u3055\u306f\u308f\u305a\u304b45g\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u5b9f\u614b\u306f\u9ad8\u6027\u80fd\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3060\u3002\u307e\u305a\u4ee3\u8868\u7684\u306aOS\u3067\u3042\u308bLinux\u3092\u642d\u8f09\u3067\u304d\u308b\u3002<\/p>\n<p>\u305d\u3057\u3066\u306a\u3093\u3068HDMI\u51fa\u529b\u3092\u6301\u3064\u305f\u3081\u3001\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3092\u3064\u306a\u3050\u3053\u3068\u3082\u53ef\u80fd\u3002\u3055\u3089\u306b\u3001USB\u30dd\u30fc\u30c8\u3092\u6301\u3061\u3001\u30de\u30a6\u30b9\u3084\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u306e\u64cd\u4f5c\u3082\u884c\u3048\u308b\u3002LAN\u30dd\u30fc\u30c8\u3092\u6301\u3061\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u3082\u63a5\u7d9a\u53ef\u80fd\u3060\u3002Web\u30b5\u30a4\u30c8\u306e\u95b2\u89a7\u3082\u884c\u3048\u308b\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27979 aligncenter\" src=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/02\/raspberry11.jpg\" alt=\"raspberry brower\" width=\"715\" height=\"536\" srcset=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/02\/raspberry11.jpg 715w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/02\/raspberry11-300x225.jpg 300w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/02\/raspberry11-704x528.jpg 704w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/02\/raspberry11-694x520.jpg 694w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/02\/raspberry11-514x385.jpg 514w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/02\/raspberry11-268x201.jpg 268w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/02\/raspberry11-624x468.jpg 624w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<h3>PubNub\u3068\u306f<\/h3>\n<p><a href=\"https:\/\/www.pubnub.com\/\" target=\"_blank\" rel=\"noopener\">PubNub<\/a>\u3068\u306f\u3001\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u3084IoT\u30c7\u30d0\u30a4\u30b9\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5074\u3092API\u5f62\u5f0f\u3067\u63d0\u4f9b\u3059\u308bmBaaS(Mobile Backend as a Service)\u306e\u4e00\u7a2e\u3002mBaaS\u3092\u4f7f\u3046\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u958b\u767a\u304c\u4e0d\u8981\u306b\u306a\u308b\u305f\u3081\u3001\u958b\u767a\u5de5\u6570\u304c\u5927\u304d\u304f\u524a\u6e1b\u3055\u308c\u308b\u3002<\/p>\n<p>IoT\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u308b\u969b\u306b\u306f\u3001Web\u3084\u30e2\u30d0\u30a4\u30eb\u3092\u958b\u767a\u3059\u308b\u3068\u304d\u3088\u308a\u3082\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u91cf\u306f\u5c11\u306a\u304f\u306a\u308b\u50be\u5411\u304c\u3042\u308b\u304c\u3001Web\u306fPHP\u3084Ruby\u3001JavaScript\u3001Android\u306fJava\u3001iOS\u306fObjective C(Swift)\u3001Raspberry Pi\u306fpython\u306a\u3069\u3068\u3001\u69d8\u3005\u306a\u8a00\u8a9e\u3067\u958b\u767a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u5404\u8a00\u8a9e\u3067\u901a\u4fe1\u51e6\u7406\u3092\u66f8\u304f\u306e\u306f\u3064\u3089\u3044\u3002<\/p>\n<p>mBaaS\u3092\u4f7f\u3046\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u306e\u901a\u4fe1\u51e6\u7406\u306e\u8a18\u8ff0\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u697d\u306b\u306a\u308b\u3002<strong>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u306e\u4e21\u65b9\u306e\u958b\u767a\u306e\u52b9\u7387\u304c\u3042\u304c\u308b\u3053\u3068\u304b\u3089\u3001btrax\u793e\u5185\u3067\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u958b\u767a\u306b\u304a\u3044\u3066mBaaS\u306e\u63a1\u7528\u3092\u6c7a\u3081\u305f\u3002<\/strong><\/p>\n<p>mBaaS\u3068\u3044\u3046\u3068\u3001Facebook\u5098\u4e0b\u306eParse\u304c\u6709\u540d\u3060\u304c\u3001PubNub\u306f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u304c\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3068\u300170\u3092\u8d85\u3048\u308b\u6570\u306eSDK\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u7279\u5fb4\u7684\u3067\u3042\u308b\u3002\u6a5f\u80fd\u306b\u5236\u9650\u306f\u3042\u308b\u304c\u7121\u6599\u3067\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u308b\u3002PubNub\u306f\u3001IoT\u306b\u529b\u3092\u5165\u308c\u3066\u304a\u308a\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u3067<a href=\"https:\/\/www.pubnub.com\/blog\/building-a-model-smart-home-with-raspberry-pi\/\" target=\"_blank\" rel=\"noopener\">\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\u306e\u30df\u30cb\u30c1\u30e5\u30a2<\/a>\u3092\u7d39\u4ecb\u3057\u305f\u308a\u3001\u3044\u308d\u3044\u308d\u306a\u30de\u30a4\u30b3\u30f3\u3068\u306e\u9023\u643a\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u307e\u305fIoT\u306e\u30cf\u30c3\u30ab\u30bd\u30f3\u3082\u958b\u50ac\u3057\u3066\u304a\u308a\u3001btrax\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u3082\u53c2\u52a0\u3057\u305f\u3053\u3068\u3082\u3042\u308b(<a href=\"https:\/\/blog.btrax.com\/jp\/2015\/03\/18\/iot-tech-trend\/\" target=\"_blank\" rel=\"noopener\">\u30ec\u30dd\u30fc\u30c8<\/a>)\u3002 4\u6708\u306e\u30cf\u30c3\u30ab\u30bd\u30f3\u306b<a href=\"https:\/\/btrax.com\/jp\" target=\"_blank\" rel=\"noopener\">btrax<\/a>\u3067\u53c2\u52a0\u3059\u308b\u3053\u3068\u3092\u4e88\u5b9a\u3057\u3066\u304a\u308a\u3001\u305d\u308c\u3082\u898b\u636e\u3048\u3066PubNub\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002\u306a\u304a\u3001PubNub\u306fbtrax\u306e\u30b5\u30f3\u30d5\u30e9\u30f3\u30b7\u30b9\u30b3\u306e\u30aa\u30d5\u30a3\u30b9\u304b\u3089\u3059\u3050\u306e\u5834\u6240\u306b\u3042\u308b\u3002<\/p>\n<h2>\u958b\u767a<\/h2>\n<h3>Raspberry Pi\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>OS\u3092\u713c\u304d\u8fbc\u307e\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u305f\u3081\u3001<a href=\"https:\/\/www.raspberrypi.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u308b\u3002\u4eca\u56de\u306f\u521d\u5fc3\u8005\u5411\u3051\u306eNOOBS\u3092\u4f7f\u3063\u305f\u3002Micro SD\u30ab\u30fc\u30c9\u3092FAT\u5f62\u5f0f\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u3066\u304a\u304f\u3002\u305d\u3053\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fZIP\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u3059\u3079\u3066\u30b3\u30d4\u30fc\u3059\u308b\u3002\u3053\u308c\u3060\u3051\u3067\u5b8c\u4e86\u3067\u3042\u308b\u3002<\/p>\n<p>\u6b21\u306b\u3001Raspberry Pi\u306bmicroSD\u30ab\u30fc\u30c9\u3092\u5dee\u3057\u8fbc\u307f\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u3001\u30de\u30a6\u30b9\u3001\u305d\u3057\u3066USB\u306eWiFi\u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u63a5\u7d9a\u3059\u308b\u3002WiFi\u30a2\u30c0\u30d7\u30bf\u30fc\u306fPC\u7528\u3068\u3057\u3066\u58f2\u3089\u308c\u3066\u3044\u308b\u3082\u306e\u304c\u5229\u7528\u3067\u304d\u308b\u3002\u307e\u305f\u3001Raspberry Pi\u306f\u6709\u7ddaLAN\u3082\u5229\u7528\u3067\u304d\u308b\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u96fb\u6e90\u306eMicro USB\u30b1\u30fc\u30d6\u30eb(Android\u7528\u306a\u3069\u306b\u4f7f\u308f\u308c\u308b\u3082\u306e\u3068\u540c\u3058)\u3092\u5dee\u3057\u8fbc\u307f\u3002Raspberry Pi\u306f\u96fb\u6e90\u3092\u3064\u306a\u3044\u3060\u77ac\u9593\u306b\u8d77\u52d5\u3059\u308b\u306e\u3067\u6ce8\u610f\u3057\u3088\u3046\u3002\u8d77\u52d5\u3059\u308b\u3068Windows\u3084Mac\u3068\u540c\u69d8\u3001\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u8868\u793a\u3055\u308c\u308b(15\u5e74\u524d\u306ePC\u306e\u3088\u3046\u306a\u753b\u9762)\u3002OS\u306f\u300cRaspbian\u300d\u3092\u9078\u629e\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u59cb\u307e\u308b\u3002\u3057\u3070\u3089\u304f\u5f85\u3066\u3070\u7d42\u4e86\u3067\u3042\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29035 aligncenter\" src=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0509.jpg\" alt=\"DSC_0509\" width=\"715\" height=\"402\" srcset=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0509.jpg 715w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0509-300x169.jpg 300w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0509-704x396.jpg 704w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0509-685x385.jpg 685w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0509-341x192.jpg 341w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0509-624x351.jpg 624w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>\u3053\u3053\u304b\u3089\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3002Web\u306e\u958b\u767a\u8005\u306a\u3089\u4f3c\u305f\u3088\u3046\u306a\u3053\u3068\u306f\u3084\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u53d6\u3063\u4ed8\u304d\u3084\u3059\u3044\u3060\u308d\u3046\u3002<br \/>\n\u307e\u305a\u3001Raspberry Pi\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u3063\u3066\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u6700\u65b0\u306b\u4fdd\u3064\u3002<\/p>\n<p>[code]<br \/>\n$ sudo apt-get update<br \/>\n$ sudo apt-get upgrade<br \/>\n[\/code]<\/p>\n<p>\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3082\u884c\u3046\u3002(\u6642\u9593\u304b\u304b\u308a\u307e\u3059)<\/p>\n<p>[code]<br \/>\n$ sudo rpi-update<br \/>\n[\/code]<\/p>\n<p>vim\u6d3e\u306a\u306e\u3067vim\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<p>[code]<br \/>\n$ sudo apt-get install vim<br \/>\n[\/code]<\/p>\n<h3>Node.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Raspberry Pi\u306f\u3001Python\u304c\u521d\u671f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u304a\u308a\u3001\u76f8\u6027\u3082\u3044\u3044\u305f\u3081Python\u3067\u306e\u5b9f\u88c5\u4f8b\u304c\u591a\u3044\u3002\u4eca\u56de\u306f\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u3068\u76f8\u6027\u306e\u3088\u3044Node.js\u3092\u4f7f\u3046\u3002Node.js\u306f\u521d\u671f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u81ea\u5206\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002nodebrew\u3092\u4f7f\u3063\u3066node\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<a href=\"https:\/\/github.com\/hokaccha\/nodebrew\" target=\"_blank\" rel=\"noopener\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u306e\u60c5\u5831\u306b\u5f93\u3048\u3070\u3088\u304f\u3001\u7279\u306b\u96e3\u3057\u3044\u3053\u3068\u306f\u306a\u3044\u3002<\/p>\n<p>[code]<br \/>\n$ curl -L git.io\/nodebrew | perl &#8211; setup<br \/>\n[\/code]<\/p>\n<p>\u4ee5\u4e0b\u3092.bashrc\u306b\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<p>[code]<br \/>\nexport PATH=$HOME\/.nodebrew\/current\/bin:$PATH<br \/>\n[\/code]<\/p>\n<p>source\u30b3\u30de\u30f3\u30c9\u3067\u8aad\u307f\u8fbc\u3080<\/p>\n<p>[code]<br \/>\n$ source ~\/.bashrc<br \/>\n[\/code]<\/p>\n<p>Node.js\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f0.12.1\u3060\u304c\u3001arm\u7528\u306e\u30d0\u30a4\u30ca\u30ea\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>[code]<br \/>\n$ nodebrew ls-remote<br \/>\n&#8230;<br \/>\nv0.12.0   v0.12.1<br \/>\n&#8230;<\/p>\n<p>$ nodebrew install-binary v0.12.1<br \/>\nError: Linux armv7l is not supported. at \/home\/pi\/.nodebrew\/current\/bin\/nodebrew line 696.<br \/>\n[\/code]<\/p>\n<p>\u3053\u306e\u305f\u3081\u3001\u30bb\u30eb\u30d5\u30d3\u30eb\u30c9\u3067\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u305f\u3060\u3001\u30d3\u30eb\u30c9\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u30021\u6642\u9593\u4ee5\u4e0a\u304b\u304b\u3063\u305f\u3002<\/p>\n<p>[code]<br \/>\n$ nodebrew install v0.12.1<br \/>\nfetch: https:\/\/nodejs.org\/dist\/v0.12.1\/node-v0.12.1.tar.gz<br \/>\n######################################################################## 100.0%<br \/>\ncreating  .\/icu_config.gypi<br \/>\n&#8230;..<br \/>\n[\/code]<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001nodebrew\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<p>[code]<br \/>\n$ nodebrew ls<br \/>\nv0.12.1<\/p>\n<p>current: none<br \/>\n$ nodebrew use v0.12.1<br \/>\nuse v0.12.1<br \/>\n$ node -v<br \/>\nv0.12.1<br \/>\n[\/code]<\/p>\n<h3>node\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5c0e\u5165<\/h3>\n<p>\u307e\u305a\u3001<a href=\"https:\/\/www.npmjs.com\/package\/pubnub\" target=\"_blank\" rel=\"noopener\">PubNub\u306e\u30e2\u30b8\u30e5\u30fc\u30eb<\/a>\u3092\u5c0e\u5165\u3059\u308b\u3002\u6b21\u306bRaspberry Pi\u306eGPIO\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b<a href=\"https:\/\/github.com\/fivdi\/onoff\" target=\"_blank\" rel=\"noopener\">onoff<\/a>\u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5c0e\u5165\u3059\u308b\u3002\u3072\u3068\u307e\u305a\u6271\u3044\u3084\u3059\u305d\u3046\u306a\u306e\u3067\u3053\u308c\u3092\u9078\u629e\u3057\u305f\u304c\u3001\u4ed6\u306b\u3082\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3042\u308b\u306e\u3067\u3001\u5229\u7528\u3057\u3084\u3059\u305d\u3046\u306a\u3082\u306e\u3092\u9078\u3076\u3068\u3088\u3044\u3002<\/p>\n<p>[code]<br \/>\nnpm install pubnub<br \/>\nnpm install onoff<br \/>\n[\/code]<\/p>\n<h3>Raspberry Pi\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/h3>\n<p>PubNub\u304b\u3089\u306e\u30c7\u30fc\u30bf\u3092subscrib\u3057\u3001GPIO\u304b\u3089\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a18\u8f09\u3059\u308b\u3002PubNub\u306e\u51e6\u7406\u306f\u7c21\u5358\u3060\u3057\u3001onoff\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u7c21\u5358\u306bGPIO\u3082\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u4e8b\u524d\u306bPubNub\u306b\u767b\u9332\u3057\u3066\u3001Publish Key\u3068Subscribe Key\u3092\u53d6\u5f97\u3057\u3066\u304a\u304f\u3002\u767b\u9332\u306f\u7121\u6599\u3067\u3001\u3059\u3050\u306b\u884c\u3048\u308b\u3002<\/p>\n<p>main.js<\/p>\n<p>[javascript]<br \/>\nvar publishKey = &#8216;&lt;Your PubNub Publish Key&gt;&#8217;;<br \/>\nvar subscribeKey = &#8216;&lt;Your PubNub Subscribe Key&gt;&#8217;;<\/p>\n<p>var channel = &quot;smart-led&quot;;  \/\/ use same channel name<br \/>\nvar ledPin = 14; \/\/ output pin<\/p>\n<p>\/\/ setup GPIO<br \/>\nvar OnOff = require(&#8216;onoff&#8217;);<br \/>\nvar Gpio = OnOff.Gpio;<br \/>\nvar led = new Gpio(ledPin, &#8216;out&#8217;);<\/p>\n<p>\/\/ setup PubNub<br \/>\nvar pubnub = require(&quot;pubnub&quot;)({<br \/>\n\tssl           : true,<br \/>\n\tpublish_key   : publishKey,<br \/>\n\tsubscribe_key : subscribeKey<br \/>\n});<\/p>\n<p>\/\/ register subscribe<br \/>\npubnub.subscribe({<br \/>\n\tchannel  : channel,<br \/>\n\tcallback : function(message) {<br \/>\n\t\tconsole.log(&#8216;&gt;&#8217;, message);<\/p>\n<p>\t\tif(message.action === &#8216;on&#8217;) {<br \/>\n        \t\/\/ turn on<br \/>\n        \tled.writeSync(1);<br \/>\n        } else {<br \/>\n        \t\/\/ turn off<br \/>\n        \tled.writeSync(0);<br \/>\n        }<br \/>\n    }<br \/>\n});<br \/>\n[\/javascript]<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8d77\u52d5\u3055\u305b\u308b\u3002<\/p>\n<p>[code]<br \/>\n$ node main.js<br \/>\n[\/code]<\/p>\n<h3>Raspberry Pi\u306e\u56de\u8def\u4f5c\u6210<\/h3>\n<p>\u96fb\u5b50\u56de\u8def\u306f\u3001LED\u3068\u3001LED\u306b\u96fb\u6d41\u304c\u6d41\u308c\u904e\u304e\u306a\u3044\u3088\u3046\u306b\u53d6\u308a\u4ed8\u3051\u308b\u96fb\u6c17\u62b5\u6297\u3092\u3001Raspberry Pi\u306b\u3064\u306a\u3050\u3060\u3051\u306a\u306e\u3067\u3044\u305f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u3067\u3042\u308b\u3002\u30d4\u30f3\u306f\u3001Rasbperry Pi\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u51fa\u529b\u3068\u3057\u3066\u6307\u5b9a\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3002\u306f\u3093\u3060\u4ed8\u3051\u304c\u4e0d\u8981\u3067\u56de\u8def\u304c\u4f5c\u6210\u3067\u304d\u308b\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u3092\u5229\u7528\u3059\u308b\u3002(\u56f3\u4e2d\u3067\u306fModel B+\u3068\u306a\u3063\u3066\u3044\u308b\u304c\u3001\u5b9f\u969b\u306b\u306fRaspberry Pi2\u3092\u5229\u7528\u3002\u30d4\u30f3\u914d\u7f6e\u306f\u540c\u3058)<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29029 aligncenter\" src=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/circuit.png\" alt=\"circuit\" width=\"715\" height=\"567\" srcset=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/circuit.png 715w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/circuit-300x238.png 300w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/circuit-704x558.png 704w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/circuit-656x520.png 656w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/circuit-485x385.png 485w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/circuit-253x201.png 253w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/circuit-624x495.png 624w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29034 aligncenter\" src=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0517-2.jpg\" alt=\"DSC_0517 (2)\" width=\"715\" height=\"402\" srcset=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0517-2.jpg 715w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0517-2-300x169.jpg 300w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0517-2-704x396.jpg 704w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0517-2-685x385.jpg 685w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0517-2-341x192.jpg 341w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/03\/DSC_0517-2-624x351.jpg 624w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<h3>\u30d6\u30e9\u30a6\u30b6\u5074\u306e\u958b\u767a<\/h3>\n<p>\u4eca\u56de\u306f\u3001Web\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3002JavaScript\u3092\u4f7f\u3046\u305f\u3081\u3001Node.js\u3092\u4f7f\u3063\u305fRaspberry Pi\u5074\u306e\u5b9f\u88c5\u3068\u307b\u307c\u540c\u3058\u3060\u3002<a href=\"https:\/\/www.pubnub.com\/docs\/javascript\/javascript-sdk.html\" target=\"_blank\" rel=\"noopener\">PubNub\u306eJavaScript\u306e\u89e3\u8aac\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u8003\u306b\u5b9f\u88c5\u3059\u308b\u3002<\/p>\n<p>\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u5185\u3067\u3001PubNub\u306bpublish\u3059\u308b\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3068\u3066\u3082\u7c21\u5358\u3060\u3002<\/p>\n<p>[javascript]<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n  &lt;script src=&quot;https:\/\/cdn.pubnub.com\/pubnub-3.7.1.min.js&quot;&gt;&lt;\/script&gt;<br \/>\n  &lt;script src=&quot;https:\/\/code.jquery.com\/jquery-2.1.3.min.js&quot;&gt;&lt;\/script&gt;<br \/>\n  &lt;script&gt;<br \/>\n  $(function(){<br \/>\n    var publishKey = &#8216;&lt;Your PubNub Publish Key&gt;&#8217;;<br \/>\n    var subscribeKey = &#8216;&lt;Your PubNub Subscribe Key&gt;&#8217;;<\/p>\n<p>    \/\/ constant<br \/>\n    var channel = &quot;smart-led&quot;; \/\/ use same channel name<\/p>\n<p>    \/\/ pubnub setup<br \/>\n    var pubnub = PUBNUB.init({<br \/>\n      publish_key   : publishKey,<br \/>\n      subscribe_key : subscribeKey<br \/>\n    });<\/p>\n<p>    \/\/ send data<br \/>\n    function publish(action) {<br \/>\n      var value = {&#8216;action&#8217;: action}; \/\/ action must be on or off<br \/>\n      pubnub.publish({<br \/>\n        channel : channel,<br \/>\n        message : value,<br \/>\n        callback: function(message){<br \/>\n          console.log(message);<br \/>\n        }<br \/>\n      });<br \/>\n    }<\/p>\n<p>    \/\/ event when on button is clicked<br \/>\n    $(&#8216;#on-button&#8217;).click(function(){<br \/>\n      publish(&#8216;on&#8217;);<br \/>\n    });<\/p>\n<p>    \/\/ event when off button is clicked<br \/>\n    $(&#8216;#off-button&#8217;).click(function(){<br \/>\n      publish(&#8216;off&#8217;);<br \/>\n    });<br \/>\n  });<\/p>\n<p>  &lt;\/script&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n  &lt;button id=&quot;on-button&quot;&gt;ON&lt;\/button&gt;<br \/>\n  &lt;button id=&quot;off-button&quot;&gt;OFF&lt;\/button&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n[\/javascript]<\/p>\n<p>\u4e0a\u306eHtml\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u304f\u3068\u3001\u300cON\u300d\u3068\u300cOFF\u300d\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u3001ON\u3092\u62bc\u3059\u3068\u77ac\u6642\u306bLED\u304c\u70b9\u706f\u3001OFF\u3092\u62bc\u3059\u3068\u77ac\u6642\u306bLED\u304c\u6d88\u706f\u3059\u308b\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29348 aligncenter\" src=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/04\/browser.png\" alt=\"browser\" width=\"715\" height=\"584\" srcset=\"https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/04\/browser.png 715w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/04\/browser-300x245.png 300w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/04\/browser-704x575.png 704w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/04\/browser-637x520.png 637w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/04\/browser-471x385.png 471w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/04\/browser-246x201.png 246w, https:\/\/blog.btrax.com\/jp\/wp-content\/uploads\/sites\/3\/2015\/04\/browser-624x510.png 624w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u3067\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u901a\u4fe1\u3092\u884c\u3046\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u3002\u74b0\u5883\u69cb\u7bc9\u4e2d\u306e\u5f85\u3061\u6642\u9593\u306e\u307b\u3046\u304c\u5b9f\u88c5\u3088\u308a\u3082\u9577\u304f\u304b\u304b\u3063\u305f\u3002\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u3064\u306a\u304c\u308b\u74b0\u5883\u3055\u3048\u3042\u308c\u3070\u3001\u4e16\u754c\u306e\u3069\u3053\u304b\u3089\u3067\u3082LED\u3092\u5236\u5fa1\u3067\u304d\u308b\u3002<\/p>\n<p><strong>PubNub\u3092\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081\u3001Android\u3084iOS\u304b\u3089\u64cd\u4f5c\u3059\u308b\u30a2\u30d7\u30ea\u3082\u7c21\u5358\u306b\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/strong>\u3002\u307e\u305f\u3001Raspberry Pi\u5074\u3082\u3001LED\u3092\u5149\u3089\u305b\u308b\u4ee3\u308f\u308a\u306b\u30e2\u30fc\u30bf\u30fc\u3092\u56de\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u3059\u308c\u3070\u3001\u3044\u308d\u3044\u308d\u3068\u5fdc\u7528\u304c\u3067\u304d\u3001\u53ef\u80fd\u6027\u306f\u7121\u9650\u5927\u3060\u3002\u307e\u3060\u307e\u3060IoT\u306e\u7b2c\u4e00\u6b69\u3060\u304c\u3001\u3053\u3053\u304b\u3089\u5fdc\u7528\u3057\u3066\u3044\u3051\u3070\u3001\u3044\u308d\u3044\u308d\u306a\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u304c\u4f5c\u308c\u308b\u3060\u308d\u3046\u3002\u4eca\u5f8c\u3082freshtrax\u3067\u69d8\u3005\u306a\u4e8b\u4f8b\u3092\u7d39\u4ecb\u3059\u308b\u4e88\u5b9a\u3067\u3042\u308b\u3002<\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fGitHub\u3067\u516c\u958b\u3057\u3066\u3044\u308b\u3002<a href=\"https:\/\/github.com\/btrax\/realtime-iot-sample\">\u3053\u3061\u3089<\/a><\/p>\n<h3>btrax\u3067\u306f\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u958b\u767a\u4e2d!\u30a8\u30f3\u30b8\u30cb\u30a2\u3082\u52df\u96c6<\/h3>\n<p>btrax\u3067\u306f\u3001IoT\u30c7\u30d0\u30a4\u30b9\u306e\u5e02\u5834\u8abf\u67fb\u3001UX\u7814\u7a76\u3092\u76ee\u7684\u306b\u3001IoT\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3002\u73fe\u5728\u9032\u884c\u3057\u3066\u3044\u308b\u306e\u306f\u793e\u5185\u306b\u53d6\u308a\u4ed8\u3051\u3089\u308c\u305f\u30df\u30e9\u30fc\u30dc\u30fc\u30eb\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3057\u69d8\u3005\u306a\u30c4\u30fc\u30eb\uff08Google Apps\u9023\u643a\u3001Slack\u9023\u643a\u306a\u3069\uff09\u304b\u3089\u9060\u9694\u3067\u64cd\u4f5c\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3002\u307e\u305f\u3001\u958b\u767a\u306e\u4e2d\u3067\u5f97\u3089\u308c\u305f\u30ce\u30a6\u30cf\u30a6\u306f\u3001freshtrax\u306e\u4e2d\u3067\u3082\u516c\u958b\u3057\u3066\u3044\u304f\u3002\u76f4\u8fd1\u3067\u306f\u3001Raspberry Pi\u3067\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u5236\u5fa1\u3084\u753b\u50cf\u8a8d\u8b58\u3092\u4e88\u77e5\u7d75\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u5c06\u6765\u7684\u306b\u306f\u3001\u7c73\u56fd\u3067\u30af\u30e9\u30a6\u30c9\u30d5\u30a1\u30f3\u30c7\u30a3\u30f3\u30b0\u3092\u5b9f\u65bd\u3057\u3001\u81ea\u793eIoT\u30c7\u30d0\u30a4\u30b9\u958b\u767a\u3092\u884c\u3046\u3053\u3068\u3082\u4e88\u5b9a\u3057\u3066\u3044\u308b\u3002\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u3001\u30b5\u30f3\u30d5\u30e9\u30f3\u30b7\u30b9\u30b3\u3067\u6700\u5148\u7aef\u306eIoT\u4e8b\u60c5\u3092\u5b66\u3073\u305f\u3044\u30a8\u30f3\u30b8\u30cb\u30a2\u3001\u7c73\u56fd\u5411\u3051\u306bIoT\u3092\u958b\u767a\u3057\u3001\u30d7\u30ed\u30c0\u30af\u30c8\u5316\u3092\u76ee\u6307\u3057\u305f\u3044\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u52df\u96c6\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>photo by <a href=\"https:\/\/www.pubnub.com\/\" target=\"_blank\" rel=\"noopener\">PubNub<\/a><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>btrax\u3067\u306f\u3001IoT\u30c7\u30d0\u30a4\u30b9\u306e\u5e02\u5834\u8abf\u67fb\u3001UX\u7814\u7a76\u3092\u76ee\u7684\u306b\u3001IoT\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3002\u73fe\u5728\u9032\u884c\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u793e\u5185\u306b\u53d6\u308a\u4ed8\u3051\u3089\u308c\u305f\u30df\u30e9\u30fc\u30dc\u30fc\u30eb\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3057\u69d8\u3005\u306a\u30c4\u30fc\u30eb\uff08Google Apps\u9023\u643a\u3001Sla [&hellip;]<\/p>\n","protected":false},"author":80,"featured_media":29038,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[230],"tags":[268],"class_list":["post-29004","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-iot"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/posts\/29004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/users\/80"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/comments?post=29004"}],"version-history":[{"count":30,"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/posts\/29004\/revisions"}],"predecessor-version":[{"id":55476,"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/posts\/29004\/revisions\/55476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/media\/29038"}],"wp:attachment":[{"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/media?parent=29004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/categories?post=29004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.btrax.com\/jp\/wp-json\/wp\/v2\/tags?post=29004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}