{"id":3109,"date":"2023-03-04T11:36:56","date_gmt":"2023-03-04T02:36:56","guid":{"rendered":"https:\/\/okamoto3.com\/?p=3109"},"modified":"2023-03-04T11:43:42","modified_gmt":"2023-03-04T02:43:42","slug":"chatgpt-lircd","status":"publish","type":"post","link":"https:\/\/okamoto3.com\/index.php\/2023\/03\/04\/chatgpt-lircd\/3109\/","title":{"rendered":"ChatGPT\u3055\u307e\u3001Raspberry Pi\u306eLIRC\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u30ea\u30e2\u30b3\u30f3\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u8fbc\u3080\u65b9\u6cd5\u3092\u6559\u3048\u3066\u4e0b\u3055\u3044\u3002"},"content":{"rendered":"<h2 class=\"wp-block-heading\">\u8cea\u554f<\/h2><p>Raspberry Pi OS\u3067SONY\u306e\u30d6\u30eb\u30fc\u30ec\u30a4\u30ec\u30b3\u30fc\u30c0\u30fc\u306e\u30ea\u30e2\u30b3\u30f3\u3092Python\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f5c\u308a\u305f\u3044\u3002\u65e2\u306b\u3001LIRC\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u3002lircd.conf\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u5168\u3066\u306e\u30ea\u30e2\u30b3\u30f3\u30dc\u30bf\u30f3\u306e\u30ea\u30e2\u30b3\u30f3\u4fe1\u53f7\u3092\u5b9a\u7fa9\u3057\u305f\u3044\u304c\u3001irrecord\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u305b\u305a\u3001\u76f4\u63a5\u30ea\u30e2\u30b3\u30f3\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u8fbc\u307f\u305f\u3044\u3002\u3069\u306e\u3088\u3046\u306blircd.conf\u3092\u7de8\u96c6\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/p><h2 class=\"wp-block-heading\">\u304a\u7b54\u3048<\/h2><p>LIRC\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001lircd.conf\u30d5\u30a1\u30a4\u30eb\u306b\u30ea\u30e2\u30b3\u30f3\u4fe1\u53f7\u3092\u76f4\u63a5\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u3001lircd.conf\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u5168\u3066\u306e\u30ea\u30e2\u30b3\u30f3\u30dc\u30bf\u30f3\u306e\u30ea\u30e2\u30b3\u30f3\u4fe1\u53f7\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><ol class=\"wp-block-list\"><li>lircd.conf\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u524d\u306b\u3001lircd\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li><\/ol><pre class=\"wp-block-preformatted\"><code class=\"!whitespace-pre hljs language-vbnet\">sudo systemctl stop lircd<\/code><br><\/pre><ol class=\"wp-block-list\" start=\"2\"><li>lircd.conf\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li><\/ol><pre class=\"wp-block-preformatted\"><code class=\"!whitespace-pre hljs language-php-template\">begin remote<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  name  &lt;REMOTE_NAME&gt;<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  flags RAW_CODES<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  eps            30<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  aeps          100<\/code><br><br><code class=\"!whitespace-pre hljs language-php-template\">  ptrail          0<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  repeat     0     0<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  gap    299716<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  toggle_bit_mask 0x0<\/code><br><br><code class=\"!whitespace-pre hljs language-php-template\">  frequency    38400<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  duty_cycle   50<\/code><br><br><code class=\"!whitespace-pre hljs language-php-template\">  # Add your buttons here<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  begin raw_codes<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">      name &lt;BUTTON_NAME_1&gt;<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">          &lt;CODE_1&gt; &lt;CODE_2&gt; ...<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">      name &lt;BUTTON_NAME_2&gt;<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">          &lt;CODE_1&gt; &lt;CODE_2&gt; ...<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">      ...<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">  end raw_codes<\/code><br><code class=\"!whitespace-pre hljs language-php-template\">end remote<\/code><br><\/pre><ul class=\"wp-block-list\"><li>&lt;REMOTE_NAME&gt;\uff1a\u30ea\u30e2\u30b3\u30f3\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n<li>&lt;BUTTON_NAME&gt;\uff1a\u30dc\u30bf\u30f3\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n<li>&lt;CODE&gt;\uff1a\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u306e\u30ea\u30e2\u30b3\u30f3\u4fe1\u53f7\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li><\/ul><ol class=\"wp-block-list\" start=\"3\"><li>\u7de8\u96c6\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001lircd.conf\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u307e\u3059\u3002<\/li>\n\n<li>lircd\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li><\/ol><pre class=\"wp-block-preformatted\"><code class=\"!whitespace-pre hljs language-sql\">sudo systemctl start lircd<\/code><br><\/pre><p>\u4ee5\u4e0a\u306e\u624b\u9806\u3067\u3001lircd.conf\u30d5\u30a1\u30a4\u30eb\u306b\u30ea\u30e2\u30b3\u30f3\u4fe1\u53f7\u3092\u76f4\u63a5\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001irrecord\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u306a\u304f\u3066\u3082\u3001\u5fc5\u8981\u306a\u30ea\u30e2\u30b3\u30f3\u4fe1\u53f7\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><p><a class=\"underline\" rel=\"noreferrer noopener\" href=\"https:\/\/help.openai.com\/en\/articles\/6825453-chatgpt-release-notes\" target=\"_blank\">ChatGPT Feb 13 Version<\/a>. Free Research Preview. Our goal is to make AI systems more natural and safe to interact with. Your feedback will help us improve.<\/p><h2 class=\"wp-block-heading\">\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u306f\u5206\u304b\u3089\u3093\u3068\u3044\u308f\u308c\u3001\u6559\u3048\u3066\u304f\u308c\u306a\u304b\u3063\u305f\u30022023\/3\/4<\/h2><figure class=\"wp-block-embed is-type-wp-embed is-provider-sgg-039-s wp-block-embed-sgg-039-s\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"jWReKjpYAk\"><a href=\"https:\/\/okamoto3.com\/index.php\/2023\/03\/03\/chatgpt-ir-led-python\/3099\/\">ChatGPT\u3055\u307e\u3001raspberry pi os\u3067gpio0\u306b\u63a5\u7d9a\u3057\u305f\u8d64\u5916\u7ddaLED\u309238Khz\u3067\u5909\u8abf\u3057\u3066SONY\u306e\u30c6\u30ec\u30d3\u306e\u96fb\u6e90\u3092\u30aa\u30f3\u306b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092python\u3067\u6559\u3048\u3066\u4e0b\u3055\u3044\u3002<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;ChatGPT\u3055\u307e\u3001raspberry pi os\u3067gpio0\u306b\u63a5\u7d9a\u3057\u305f\u8d64\u5916\u7ddaLED\u309238Khz\u3067\u5909\u8abf\u3057\u3066SONY\u306e\u30c6\u30ec\u30d3\u306e\u96fb\u6e90\u3092\u30aa\u30f3\u306b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092python\u3067\u6559\u3048\u3066\u4e0b\u3055\u3044\u3002&#8221; &#8212; sGG&#039;s\" src=\"https:\/\/okamoto3.com\/index.php\/2023\/03\/03\/chatgpt-ir-led-python\/3099\/embed\/#?secret=eWONhmQGPW#?secret=jWReKjpYAk\" data-secret=\"jWReKjpYAk\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure><p class=\"has-text-align-left\">\u4ee5\u4e0a<\/p><hr class=\"wp-block-separator has-css-opacity\"\/><div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-thumbnail\"><a href=\"https:\/\/youtube.com\/user\/hishigeki3\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=150%2C150&#038;ssl=1\" alt=\"\" class=\"wp-image-658\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=100%2C100&amp;ssl=1 100w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><figcaption class=\"wp-element-caption\">\u3088\u308d\u3057\u3051\u308c\u3070\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u7533\u3057\u4e0a\u3052\u307e\u3059\uff01<\/figcaption><\/figure><\/div><hr class=\"wp-block-separator has-css-opacity\"\/>","protected":false},"excerpt":{"rendered":"<p>\u8cea\u554f Raspberry Pi OS\u3067SONY\u306e\u30d6\u30eb\u30fc\u30ec\u30a4\u30ec\u30b3\u30fc\u30c0\u30fc\u306e\u30ea\u30e2\u30b3\u30f3\u3092Python\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f5c\u308a\u305f\u3044\u3002\u65e2\u306b\u3001LIRC\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u3002lircd.conf\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u5168\u3066\u306e\u30ea\u30e2\u30b3\u30f3\u30dc\u30bf\u30f3&hellip; <a class=\"more-link\" href=\"https:\/\/okamoto3.com\/index.php\/2023\/03\/04\/chatgpt-lircd\/3109\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">ChatGPT\u3055\u307e\u3001Raspberry Pi\u306eLIRC\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u30ea\u30e2\u30b3\u30f3\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u8fbc\u3080\u65b9\u6cd5\u3092\u6559\u3048\u3066\u4e0b\u3055\u3044\u3002<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3114,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[219,220,23,213],"tags":[],"class_list":["post-3109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-chatgpt","category-raspberry-pi","category-all-articles","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/03\/IMG_20230303_184329-1.jpg?fit=433%2C216&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/3109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/comments?post=3109"}],"version-history":[{"count":3,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/3109\/revisions"}],"predecessor-version":[{"id":3116,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/3109\/revisions\/3116"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/media\/3114"}],"wp:attachment":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/media?parent=3109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/categories?post=3109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/tags?post=3109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}