Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775
{"id":1205,"date":"2021-07-03T17:10:47","date_gmt":"2021-07-03T08:10:47","guid":{"rendered":"https:\/\/craft-gogo.com\/?p=1205"},"modified":"2021-07-05T14:44:51","modified_gmt":"2021-07-05T05:44:51","slug":"raspberry-pi-webiopi","status":"publish","type":"post","link":"https:\/\/craft-gogo.com\/raspberry-pi-webiopi\/","title":{"rendered":"WebIOPi\u3092\u4f7f\u3063\u3066\u30b9\u30de\u30db\u304b\u3089Raspberry Pi\u3092\u9060\u9694\u64cd\u4f5c"},"content":{"rendered":"\n

\u30bf\u30fc\u30df\u30ca\u30eb\u30bd\u30d5\u30c8\u304b\u3089SSH\u3067Raspberry Pi\u3092\u9060\u9694\u64cd\u4f5c\u51fa\u6765\u307e\u3059\u304c\u3001\u30b9\u30de\u30db\u304b\u3089\u30b3\u30de\u30f3\u30c9\u5165\u529b\u306f\u5927\u5909\u3067\u3059\u3088\u306d\u3002\u305d\u3093\u306a\u4e0d\u4fbf\u3055\u3092\u89e3\u6d88\u3057\u3066\u304f\u308c\u308b\u306e\u304cWebIOPi\u3067\u3059\u3002<\/p>\n\n\n\n

\u4eca\u56de\u306f\u3001WebIOPi\u3092\u4f7f\u3063\u3066\u30b9\u30de\u30db(Web\u30d6\u30e9\u30a6\u30b6\u4e0a)\u304b\u3089Raspberry Pi\u3092\u9060\u9694\u64cd\u4f5c\u3057\u3066\u3001GPIO\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

WebIOPi\u3068\u306f<\/h2>\n\n\n\n

Web\u30d6\u30e9\u30a6\u30b6\u4e0a\u304b\u3089Raspberry Pi\u306eGPIO\u51fa\u529b\u3092\u64cd\u4f5c\u3067\u304d\u308b\u30c4\u30fc\u30eb\u30ad\u30c3\u30c8\u3067\u3059\u3002Python\u306e\u77e5\u8b58\u304c\u6709\u308c\u3070\u3001\u81ea\u5206\u3067GPIO\u64cd\u4f5c\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002\u307e\u305f\u3001HTML\/Javascript\u306e\u77e5\u8b58\u304c\u6709\u308c\u3070\u3001Web\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u62e1\u5145\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n

WebIOPi\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n\n\n\n

WebIOPi<\/a>\u306e\u958b\u767a\u306f\u6b62\u307e\u3063\u3066\u304a\u308a\u30012015\u5e74\u304b\u3089\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f0.7.1\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u65b0\u3057\u3044Raspberry Pi\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u304a\u3089\u305a\u3001\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0\u306fGitHub\u3088\u308a\u53d6\u5f97\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n

\u30ea\u30f3\u30af\u5148<\/a>\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u5f93\u3063\u3066\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u9806\u306b\u6253\u3064\u3068WebIOPi\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ wget http:\/\/sourceforge.net\/projects\/webiopi\/files\/WebIOPi-0.7.1.tar.gz\n$ tar xvzf WebIOPi-0.7.1.tar.gz\n$ cd WebIOPi-0.7.1\n$ wget https:\/\/raw.githubusercontent.com\/doublebind\/raspi\/master\/webiopi-pi2bplus.patch\n$ patch -p1 -i webiopi-pi2bplus.patch\n$ sudo .\/setup.sh<\/code><\/pre><\/div>\n\n\n\n

WebIOPi\u306e\u74b0\u5883\u8a2d\u5b9a<\/h2>\n\n\n\n

WebIOPi\u306e\u74b0\u5883\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001\/etc\/webiopi\/config\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304d\u3001\u5185\u5bb9\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n\n\n\n

\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306f\u4f55\u3067\u3082\u826f\u3044\u3067\u3059\u304c\u3001\u81ea\u5206\u306fnano\u3092\u611b\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

sudo nano \/etc\/webiopi\/config<\/code><\/pre><\/div>\n\n\n\n

config\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n

\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306e\u5909\u66f4<\/h3>\n\n\n\n

\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001[HTTP]\u30bb\u30af\u30b7\u30e7\u30f3\u306edoc-root \u90e8\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

doc-root = \/home\/pi\/WebIOPi-0.7.1\/htdocs<\/code><\/pre><\/div>\n\n\n\n

\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\u306e\u7701\u7565\u5316<\/h3>\n\n\n\n

\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001WebIOPi\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u7701\u529b\u3057\u305f\u3044\u5834\u5408\u306f\u3001[HTTP]\u30bb\u30af\u30b7\u30e7\u30f3\u306epasswd-file = \/etc\/webiopi\/passwd\u306e\u982d\u306b#\u3092\u4ed8\u3051\u3066\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

#passwd-file = \/etc\/webiopi\/passwd<\/code><\/pre><\/div>\n\n\n\n

\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u304b\u3089Raspberry Pi\u306eGPIO\u3092\u64cd\u4f5c<\/h2>\n\n\n\n

WebIOPi\u306e\u8d77\u52d5\/\u505c\u6b62<\/h3>\n\n\n\n

WebIOPi\u3092\u8d77\u52d5\u3059\u308b\u306b\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u307e\u3059\u3002<\/p>\n\n\n\n

sudo service webiopi start<\/code><\/pre><\/div>\n\n\n\n

\u505c\u6b62\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n

sudo service webiopi stop<\/code><\/pre><\/div>\n\n\n\n

WebIOPi\u3067GPIO\u51fa\u529b\u306e\u64cd\u4f5c<\/h3>\n\n\n\n

Web\u30d6\u30e9\u30a6\u30b6\u304b\u3089http:\/\/<Raspberry Pi\u306eIP\u30a2\u30c9\u30ec\u30b9>:8000\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067<\/p>\n\n\n\n

  • \u30e6\u30fc\u30b6\u30fc\u540d: webiopi<\/li>
  • \u30d1\u30b9\u30ef\u30fc\u30c9: raspberry<\/li><\/ul>\n\n\n\n

    \u3067\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n

    WebIOPi\u306e\u30e1\u30a4\u30f3\u30e1\u30cb\u30e5\u30fc\u30da\u30fc\u30b8\u304c\u7acb\u3061\u4e0a\u304c\u308a\u307e\u3059\u3002GPIO\u51fa\u529b\u3092\u64cd\u4f5c\u3059\u308b\u306b\u306f\u3001GPIO Header\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    GPIO Header\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    IN\/OUT\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\"\"\u21d4\"\"\u3068\u8868\u793a\u304c\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002\"\"\u306b\u5207\u308a\u66ff\u3048\u305f\u5f8c\u3001\u30d4\u30f3\u756a\u53f7\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u30d4\u30f3\u756a\u53f7\u306e\u8272\u3092\u9ed2\u304b\u3089\u9ec4\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\u9ed2\u304c\u51fa\u529b\u30aa\u30d5(0V)\u3001\u9ec4\u8272\u304c\u51fa\u529bON(+3.3V)\u3067\u3059\u3002<\/p>\n\n\n\n

    \u307e\u3068\u3081<\/h2>\n\n\n\n

    WebIOPi\u3092\u4f7f\u3063\u3066\u30b9\u30de\u30db(Web\u30d6\u30e9\u30a6\u30b6\u4e0a)\u304b\u3089Raspberry Pi\u3092\u9060\u9694\u64cd\u4f5c\u3057\u3066\u3001GPIO\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

    \u884c\u3063\u305f\u3053\u3068\u306f<\/p>\n\n\n\n

    • WebIOPi\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>
    • WebIOPi\u306e\u74b0\u5883\u8a2d\u5b9a<\/li>
    • WebIOPi\u306e\u30e1\u30a4\u30f3\u30e1\u30cb\u30e5\u30fc\u3092Web\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3057\u3001GPIO\u51fa\u529b\u306e\u5236\u5fa1<\/li><\/ul>\n\n\n\n

      \u3067\u3059\u3002<\/p>\n\n\n\n

      \u30bf\u30fc\u30df\u30ca\u30eb\u30bd\u30d5\u30c8\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3092\u6253\u305f\u306a\u304f\u3066\u3082\u3001Web\u30d6\u30e9\u30a6\u30b6\u304b\u3089GPIO\u30d4\u30f3\u756a\u53f7\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067GPIO\u51fa\u529b\u3092\u5236\u5fa1\u51fa\u6765\u307e\u3059\u3002WebIOPi\u3092\u4f7f\u3048\u3070\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u306a\u3044\u30b9\u30de\u30db\u3067\u3082Raspberry Pi\u306e\u5236\u5fa1\u304c\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n\n\n\n

      \u4eca\u56de\u306f\u3001WebIOPi\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30e1\u30a4\u30f3\u30e1\u30cb\u30e5\u30fc\u304b\u3089GPIO\u3092\u5236\u5fa1\u3057\u307e\u3057\u305f\u304c\u3001HTML\/CSS\u3001JavaScript\u3001Python\u306e\u77e5\u8b58\u304c\u6709\u308c\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u62e1\u5145\u3084\u30d7\u30ed\u30b0\u30e9\u30e0\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n

      \u4eca\u5f8c\u3001WebIOPi\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

      \u30bf\u30fc\u30df\u30ca\u30eb\u30bd\u30d5\u30c8\u304b\u3089SSH\u3067Raspberry Pi\u3092\u9060\u9694\u64cd\u4f5c\u51fa\u6765\u307e\u3059\u304c\u3001\u30b9\u30de\u30db\u304b\u3089\u30b3\u30de\u30f3\u30c9\u5165\u529b\u306f\u5927\u5909\u3067\u3059\u3088\u306d\u3002\u305d\u3093\u306a\u4e0d\u4fbf\u3055\u3092\u89e3\u6d88\u3057\u3066\u304f\u308c\u308b\u306e\u304cWebIOPi\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001WebIOPi\u3092\u4f7f\u3063\u3066\u30b9\u30de\u30db(Web\u30d6\u30e9\u30a6\u30b6\u4e0a […]<\/p>\n","protected":false},"author":1,"featured_media":1255,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/1205"}],"collection":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/comments?post=1205"}],"version-history":[{"count":19,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/1205\/revisions"}],"predecessor-version":[{"id":1267,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/1205\/revisions\/1267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media\/1255"}],"wp:attachment":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media?parent=1205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/categories?post=1205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/tags?post=1205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}