{"id":21322,"date":"2022-10-27T00:00:03","date_gmt":"2022-10-26T16:00:03","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=21322"},"modified":"2026-05-18T13:55:49","modified_gmt":"2026-05-18T05:55:49","slug":"%e7%94%a8raspberry-pi%e5%92%8c%e4%bc%a0%e6%84%9f%e5%99%a8%e5%88%b6%e4%bd%9c%e5%8f%af%e8%87%aa%e5%8a%a8%e8%90%a5%e9%80%a0%e8%88%92%e9%80%82%e7%a9%ba%e9%97%b4%e7%9a%84%e8%a3%85%e7%bd%ae-3","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-04\/","title":{"rendered":"\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u56db\u90e8\u5206\u2022\u5267\u7ec8\u7bc7"},"content":{"rendered":"<p>\u7b2c1\u56de\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-01\/\">\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u4e00\u90e8\u5206<\/a><br \/>\n\u7b2c2\u56de\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-02\/\">\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u4e8c\u90e8\u5206<\/a><br \/>\n\u7b2c3\u56de\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-03\/\">\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u4e09\u90e8\u5206<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u5409\u7530\uff01<br \/>\n\u521b\u4f5c\u4e00\u6b3e\u8ba9\u5bb6\u4e2d\u66f4\u8212\u9002\u3001\u8ba9\u5728\u5bb6\u529e\u516c\u66f4\u9ad8\u6548\u7684\u8bbe\u5907\uff0c\u8fd9\u4e2a\u9879\u76ee\u7ec8\u4e8e\u8fce\u6765\u4e86\u5267\u7ec8\u7bc7\u3002\u8fd9\u6b21\u6211\u4eec\u5c06\u4f1a\u518d\u589e\u52a0\u4e00\u4e9b\u529f\u80fd\uff0c\u4ee5\u5b8c\u6210\u8fd9\u4e2a\u9879\u76ee\u3002\u6211\u4eec\u4f1a\u6dfb\u52a0\u4e00\u4e2a\u6839\u636e\u5929\u6c14\u9884\u62a5\u4fe1\u606f\u548c\u5929\u6c14\u60c5\u51b5\u63d0\u793a\u4e3b\u4eba\u884c\u52a8\u7684\u529f\u80fd\uff0c\u6700\u7ec8\u521b\u4f5c\u5b8c\u6210\u8fd9\u4e2a\u53ef\u4ee5\u8425\u9020\u8212\u9002\u73af\u5883\u7684\u8bbe\u5907\uff0c\u8ba9\u60a8\u5373\u4f7f\u5728\u5bb6\u529e\u516c\u4e5f\u53ef\u4ee5\u8212\u9002\u5730\u5de5\u4f5c\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30117\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/001.jpg\" alt=\"raspberrypi-comfortable-space-device-04-1\" width=\"745\" height=\"395\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u672c\u90e8\u5206\u6240\u9700\u90e8\u4ef6<\/h2>\n<h3><a href=\"https:\/\/www.amazon.co.jp\/%E3%83%A9%E3%82%BA%E3%83%99%E3%83%AA%E3%83%BC%E3%83%91%E3%82%A4-%E9%96%8B%E7%99%BA%E3%83%9C%E3%83%BC%E3%83%89-LAN%EF%BC%8DRaspberry-Model-%E3%80%90%E6%AD%A3%E8%A6%8F%E5%93%81%E3%80%91\/dp\/B07K4DN1SJ\/ref=sr_1_3?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=Raspberry+Pi+3+B%2B&amp;qid=1591084366&amp;s=computers&amp;sr=1-3\" target=\"_blank\" rel=\"noopener\">Raspberry Pi 3 B+<\/a> \u6216 <a href=\"https:\/\/amzn.to\/2M3qH5e\" target=\"_blank\" rel=\"noopener\">Raspberry Pi 4 Model B<\/a><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30118 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/002.png\" alt=\"raspberrypi-comfortable-space-device-03-2\" width=\"412\" height=\"310\" \/><\/p>\n<p class=\"wp-caption-text\">Raspberry Pi 3 B+<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30119 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/003.png\" alt=\"raspberrypi-comfortable-space-device-03-3\" width=\"474\" height=\"334\" \/><\/p>\n<p class=\"wp-caption-text\">Raspberry Pi 4 Model B<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/amzn.to\/2XFu5Jb\" target=\"_blank\" rel=\"noopener\">Raspberry Pi\u7528\u6db2\u6676\u663e\u793a\u5668<\/a> \u6216 <a href=\"https:\/\/amzn.to\/3eRFdtv\" target=\"_blank\" rel=\"noopener\">\u89e6\u63a7\u663e\u793a\u5668<\/a><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30120 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/004.jpg\" alt=\"raspberrypi-comfortable-space-device-03-6\" width=\"476\" height=\"370\" \/><\/p>\n<p class=\"wp-caption-text\">Raspberry Pi\u7528\u6db2\u6676\u663e\u793a\u5668<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30121 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/005.jpg\" alt=\"raspberrypi-comfortable-space-device-04-2\" width=\"380\" height=\"364\" \/><\/p>\n<p class=\"wp-caption-text\">\u89e6\u63a7\u663e\u793a\u5668<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/jp.rs-online.com\/web\/p\/sensor-development-kits\/1812214?sra=pmpn\" target=\"_blank\" rel=\"noopener\">\u7f57\u59c6SensorMedal<\/a>(SensorMedal-EVK-002)<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30122\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/006.jpg\" alt=\"raspberrypi-comfortable-space-device-03-4\" width=\"416\" height=\"298\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gM-09002\/\" target=\"_blank\" rel=\"noopener\">\u70ed\u91ca\u7535\u7ea2\u5916\u7ebf\u4f20\u611f\u5668<\/a> (SB412A)<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30123\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/007.jpg\" alt=\"raspberrypi-comfortable-space-device-03-5\" width=\"370\" height=\"390\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/amzn.to\/3f6Pjqz\" target=\"_blank\" rel=\"noopener\">\u5c0f\u578b\u626c\u58f0\u5668<\/a><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30124\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/008.jpg\" alt=\"raspberrypi-comfortable-space-device-04-3\" width=\"226\" height=\"190\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/amzn.to\/3c60duK\" target=\"_blank\" rel=\"noopener\">\u624b\u673a\u7535\u6c60<\/a><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30125\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/009.jpg\" alt=\"6\" width=\"400\" height=\"331\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>USB\u8bbe\u5907<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30126\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/010.jpg\" alt=\"7-2\" width=\"745\" height=\"240\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u672c\u90e8\u5206\u7684\u6d41\u7a0b<\/h2>\n<ol>\n<li>\u6839\u636e\u4f20\u611f\u5668\u7684\u503c\u63a7\u5236\u786c\u4ef6<\/li>\n<li>\u5173\u8054\u5929\u6c14\u4fe1\u606f\u548c\u4e92\u8054\u7f51\u4fe1\u606f<\/li>\n<li>\u5b8c\u6210\u8fd9\u6b3e\u53ef\u4ee5\u8425\u9020\u8212\u9002\u73af\u5883\u7684\u88c5\u7f6e<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>1. \u6839\u636e\u4f20\u611f\u5668\u7684\u503c\u63a7\u5236\u786c\u4ef6<\/h2>\n<p>\u5728<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-02\/\">\u7b2c\u4e8c\u90e8\u5206<\/a>\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528SensorMedal\u6d4b\u91cf\u4e86\u6e29\u5ea6\u548c\u6e7f\u5ea6\uff1b\u5728<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-03\/\">\u7b2c\u4e09\u90e8\u5206<\/a>\u4e2d\uff0c\u6211\u4eec\u6dfb\u52a0\u4e86\u4eba\u4f53\u4f20\u611f\u5668\u3002\u6700\u521d\uff0c\u6211\u4eec\u4e5f\u662f\u6253\u7b97\u5229\u7528\u4f20\u611f\u5668\u7684\u503c\u6765\u5b9e\u73b0\u4e0b\u9762\u8fd9\u4e9b\u529f\u80fd\u7684\uff0c\u6240\u4ee5\u8ba9\u6211\u4eec\u6765\u628a\u5b83\u4eec\u53d8\u4e3a\u73b0\u5b9e\u5427\u3002<\/p>\n<table>\n<tbody>\n<tr bgcolor=\"#e0ffff\">\n<td>\u7f16\u53f7<\/td>\n<td>\u68c0\u6d4b\u529f\u80fd<\/td>\n<td>\u68c0\u6d4b\u540e\u5e0c\u671b\u5177\u5907\u7684\u529f\u80fd<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>\u68c0\u6d4b\u623f\u95f4\u7684\u6e29\u5ea6<\/td>\n<td>\u6839\u636e\u5ba4\u6e29\u63a7\u5236\u98ce\u6247\u7b49<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u68c0\u6d4b\u623f\u95f4\u7684\u8212\u9002\u5ea6\uff08\u4f8b\u5982\u6e7f\u5ea6\uff09<\/td>\n<td>\u5982\u679c\u6e7f\u5ea6\u9ad8\uff0c\u5c06\u7a7a\u8c03\u8bbe\u7f6e\u4e3a\u9664\u6e7f\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u68c0\u6d4b\u5750\u5728\u6905\u5b50\u4e0a\u7684\u65f6\u95f4<\/td>\n<td>\u68c0\u6d4b\u5230\u5750\u7684\u65f6\u95f4\u592a\u4e45\uff08\u4e45\u5750\u4e0d\u52a8\uff09\uff0c\u7763\u4fc3\u4e3b\u4eba\u7ad9\u8d77\u6765\u6d3b\u52a8\u6d3b\u52a8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u9996\u5148\u662f\u68c0\u6d4b\u5b8c\u6e29\u5ea6\u540e\uff0c\u5982\u679c\u5ba4\u6e29\u9ad8\u4e8e\u4e00\u5b9a\u6c34\u5e73\uff0c\u9700\u8981\u81ea\u52a8\u6253\u5f00\u98ce\u6247\u4fdd\u6301\u51c9\u723d\u3002\u5728Raspberry Pi\u4e0a\u63d2\u5165USB\u8ff7\u4f60\u98ce\u6247\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30127\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/011.jpg\" alt=\"raspberrypi-comfortable-space-device-04-4\" width=\"745\" height=\"270\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u8981\u60f3\u8ba9\u98ce\u6247\u6839\u636e\u5ba4\u6e29\u60c5\u51b5\u6253\u5f00\u6216\u5173\u95ed\uff0c\u9700\u8981\u4f7f\u7528<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-02\/\">\u7b2c\u4e8c\u90e8\u5206<\/a>\u4e2d\u7528\u8fc7\u7684hub-ctrl\u547d\u4ee4\u6765\u63a7\u5236Raspberry Pi\u7684USB\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u5f53\u5ba4\u6e29\u8d85\u8fc726\u2103\u65f6\uff0c\u7ed9USB\u901a\u7535\u8ba9\u98ce\u6247\u8f6c\u8d77\u6765\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5f53\u4f7f\u7528\u4eba\u4f53\u4f20\u611f\u5668\u6d4b\u5f97\u60a8\u5728\u5de5\u4f5c\u53f0\u5468\u56f4\u505c\u7559\u8d85\u8fc7\u67d0\u4e00\u65f6\u957f\uff08\u4e45\u5750\uff09\u65f6\uff0c\u8ba9Raspberry Pi\u53d1\u51fa\u58f0\u97f3\u6765\u63d0\u9192\u60a8\u53ef\u80fd\u4f1a\u5f88\u6709\u8da3\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u8ff7\u4f60\u626c\u58f0\u5668\u63d2\u5165Raspberry Pi\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30128\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/012.jpg\" alt=\"raspberrypi-comfortable-space-device-04-5\" width=\"502\" height=\"604\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u83b7\u53d6\u540d\u4e3a\u201cAquesTalkPi\u201d\u7684\u53ef\u4ee5\u6717\u8bfb\u7684\u8bed\u97f3\u5408\u6210\u8f6f\u4ef6\uff0c\u5728Programs\u4e0b\u89e3\u538b\u3002<\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">$ cd ~\/Programs\r\n$ wget http:\/\/www.a-quest.com\/download\/package\/aquestalkpi-20130827.tgz\r\n$ sudo tar zxvf aquestalkpi-20130827.tgz\r\n$ cd aquestalkpi\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u7136\u540e\uff0c\u6211\u4eec\u5c1d\u8bd5\u8ba9\u5b83\u64ad\u653e\u201c\u8be5\u4f11\u606f\u4e86\u201d\u4e4b\u7c7b\u7684\u58f0\u97f3\u3002<\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">$ .\/AquesTalkPi \"\u4f11\u61a9\u3057\u307e\u3057\u3087\u3046\uff01\" | aplay\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u8981\u5b9e\u73b0\u8fd9\u4e9b\u529f\u80fd\uff0c\u9700\u8981\u5728<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-03\/\">\u7b2c\u4e09\u90e8\u5206<\/a>\u4e2d\u4f7f\u7528\u8fc7\u7684ble_lcd.py\u7a0b\u5e8f\u4e2d\uff0c\u6dfb\u52a0\u4e0b\u9762\u7684\u7b2c2\u884c\u3001\u7b2c29\u301c36\u884c\uff08\u6e29\u6e7f\u5ea6\u63a7\u5236\uff09\u548c\u7b2c4\u301c6\u884c\u3001\u7b2c12\u301c17\u884c\u3001\u7b2c38\u301c43\u884c\uff08\u4eba\u4f53\u4f20\u611f\u5668\u63a7\u5236\uff09\u7684\u5185\u5bb9\u3002<\/p>\n<p><strong>[ble_lcd.py]<\/strong><\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">\u2026\r\nimport os\r\n\r\nhuman_count = 0\r\nhuman_check = 30\r\naquest_path = \"\/home\/pi\/Programs\/aquestalkpi\/\"\r\n\r\nscanner = btle.Scanner()\r\nwhile True:\r\n\u2026\r\n\r\n    human = GPIO.input(human_pin)\r\n    if human == 1:\r\n      human_count+=1\r\n    else:\r\n      human_count=0\r\n    print('HCount:'+str(human_count))\r\n\r\n    ...\r\n\r\n    # \u9488\u5bf9\u63a5\u6536\u5230\u7684\u6570\u636e\uff0c\u5bf9\u6bcf\u4e00\u4e2aBLE\u8bbe\u5907\u8fdb\u884c\u5904\u7406\r\n    for dev in devices:\r\n    ...\r\n                '''\r\n                for key, value in sorted(sensors.items(), key=lambda x:x[0]):\r\n                    print('    ',key,'=',value)\r\n                '''\r\n\r\n                temp  = sensors['Temperature']\r\n                humid = sensors['Humidity']\r\n                if temp &gt; 26 or humid &gt; 60:\r\n                    temp_msg = \"Hot!\"\r\n                    os.system(\"sudo hub-ctrl -b 1 -d 2 -P 2 -p 1\")\r\n                else:\r\n                    temp_msg = \"Not bad\"\r\n                    os.system(\"sudo hub-ctrl -b 1 -d 2 -P 2 -p 0\")\r\n\r\n                human_msg = str(human_count)\r\n                if human_count &gt; human_check:\r\n                    human_msg += ' Take Rest!'\r\n                    os.system(aquest_path+'AquesTalkPi \"\u4f11\u61a9\u3057\u307e\u3057\u3087\u3046\uff01\" | aplay')\r\n                else:\r\n                    human_msg += ' Work Hard!'\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30129\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/013.jpg\" alt=\"raspberrypi-comfortable-space-device-04-6\" width=\"745\" height=\"320\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>2. \u5173\u8054\u5929\u6c14\u4fe1\u606f\u548c\u4e92\u8054\u7f51\u4fe1\u606f<\/h2>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece\u7f51\u4e0a\u83b7\u53d6\u5929\u6c14\u9884\u62a5\u7b49\u4fe1\u606f\uff0c\u8fd9\u6837\u4f1a\u5f88\u65b9\u4fbf\u3002\u5982\u679c\u8981\u4e0b\u96e8\uff0c\u6700\u597d\u8ba9\u5b83\u5927\u58f0\u6717\u8bfb\u5e76\u63d0\u9192\u4e3b\u4eba\u91c7\u53d6\u5fc5\u8981\u7684\u884c\u52a8\u3002<\/p>\n<table>\n<tbody>\n<tr bgcolor=\"#e0ffff\">\n<td>\u7f16\u53f7<\/td>\n<td>\u68c0\u6d4b\u529f\u80fd<\/td>\n<td>\u68c0\u6d4b\u540e\u5e0c\u671b\u5177\u5907\u7684\u529f\u80fd<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u786e\u8ba4\u5929\u6c14<\/td>\n<td>\u5982\u679c\u5929\u6c14\u9884\u62a5\u6709\u96e8\uff0c\u63d0\u9192\u4e3b\u4eba\u5c06\u6652\u5728\u5916\u9762\u7684\u8863\u7269\u6536\u56de\u6765<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u540d\u4e3a\u201cOpenWeatherMap\u201d\u7684\u670d\u52a1\u6765\u83b7\u53d6\u5929\u6c14\u9884\u62a5\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u8be5\u7f51\u7ad9\u662f\u82f1\u6587\u7684\uff0c\u4f46\u662f\u4ece\u4e0a\u9762\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u65e5\u672c\u56fd\u5185\u5929\u6c14\uff0c\u6240\u4ee5\u6211\u4eec\u5c06\u4f7f\u7528\u8fd9\u91cc\u63d0\u4f9b\u7684API\u3002<br \/>\n<a href=\"https:\/\/openweathermap.org\/api\" target=\"_blank\" rel=\"noopener\">https:\/\/openweathermap.org\/api<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30130\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/014.png\" alt=\"raspberrypi-comfortable-space-device-04-7\" width=\"902\" height=\"546\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u4ece\u8be5\u9875\u9762\u7684\u53f3\u4e0a\u65b9\u521b\u5efa\u4e00\u4e2a\u5e10\u6237\u5e76\u767b\u5f55\u3002<br \/>\n\u7136\u540e\u8fdb\u5165\u79f0\u4e3a\u201cAPI Keys\u201d\u7684\u9875\u9762\uff0c\u786e\u8ba4Key\uff08\u79d8\u94a5\uff09\u5e76\u590d\u5236\u6b64\u5bc6\u94a5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30131\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/015.png\" alt=\"raspberrypi-comfortable-space-device-04-8\" width=\"902\" height=\"290\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u53ef\u4ee5\u83b7\u53d6\u5929\u6c14\u9884\u62a5\u7684\u7a0b\u5e8f\u3002\u9996\u5148\uff0c\u8981\u5b89\u88c5\u4ee5\u4e0b\u5e93\u6587\u4ef6\u3002<\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">$ sudo pip3 install pytz requests\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cforecast.py\u201d\u7684\u793a\u4f8b\u7a0b\u5e8f\u3002\u5c06\u521a\u521a\u590d\u5236\u7684\u5bc6\u94a5\u8f93\u5165API_KEY\u90e8\u5206\u3002\u53e6\u5916\uff0c\u9700\u8981\u5728ZIP\u90e8\u5206\u8f93\u5165\u60a8\u7684\u90ae\u653f\u7f16\u7801\uff0c\u5e76\u6dfb\u52a0\u56fd\u5bb6\u4ee3\u7801\u201cJP\u201d\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u8ba9\u521a\u521a\u7684Aquestalk\u8f6f\u4ef6\u4e5f\u80fd\u591f\u64ad\u62a5\u5929\u6c14\u5427\u3002<\/p>\n<p><strong>[forecast.py]<\/strong><\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">#! \/usr\/bin\/python3\r\n# -*- coding: utf-8 -*-\r\nimport json\r\nimport datetime\r\nimport os\r\nimport requests\r\nimport sys\r\n\r\nfrom pytz import timezone\r\n\r\nAPI_KEY = \"XXX\"\r\nZIP = \"123-4567,JP\"\r\nAPI_URL = \"http:\/\/api.openweathermap.org\/data\/2.5\/forecast?zip={0}&amp;units=metric&amp;lang=ja&amp;APPID={1}\"\r\n\r\ndef getWeatherForecast():\r\n    url = API_URL.format(ZIP, API_KEY)\r\n    response = requests.get(url)\r\n    forecastData = json.loads(response.text)\r\n\r\n    if not ('list' in forecastData):\r\n            print('error')\r\n            return\r\n\r\n    for item in forecastData['list']:\r\n        forecastDatetime = timezone(\r\n            'Asia\/Tokyo').localize(datetime.datetime.fromtimestamp(item['dt']))\r\n        weatherDescription = item['weather'][0]['description']\r\n        temperature = item['main']['temp']\r\n        rainfall = 0\r\n        if 'rain' in item and '3h' in item['rain']:\r\n            rainfall = item['rain']['3h']\r\n        break\r\n\r\n    print('Date:{0} Weather:{1} Temp:{2} C Rain:{3}mm'.format(\r\n        forecastDatetime, weatherDescription, temperature, rainfall))\r\n\u3000return forecastDatetime, weatherDescription, temperature, rainfall\r\n\r\nforecastDatetime, weatherDescription, temperature, rainfall = getWeatherForecast()\r\n\r\nos.system(\u201c\/home\/pi\/aquestalkpi\/AquesTalkPi \u201c + weatherDescription + \u201c | aplay\u201d)\r\n<\/pre>\n<p>\u5982\u4e0b\u6240\u793a\uff0c\u8fd0\u884c\u8be5\u7a0b\u5e8f\u65f6\uff0c\u5c06\u4f1a\u8fd4\u56de\u6307\u5b9a\u5730\u533a\u7684\u5929\u6c14\u9884\u62a5\u3002\u4e8e\u662f\uff0cRaspberry Pi\u5c31\u4f1a\u5411\u60a8\u64ad\u62a5\u4eca\u5929\u7684\u5929\u6c14\u9884\u62a5\u4e86\uff0c\u6bd4\u5982\u201c\u591a\u4e91\u201d\u3002<\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">$ python3 forecast.py \r\nDate:2020-06-05 00:00:00+09:00 Weather:\u591a\u4e91 Temp:23.29 C Rain:0mm\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h2>3. \u5b8c\u6210\u8fd9\u6b3e\u53ef\u4ee5\u8425\u9020\u8212\u9002\u73af\u5883\u7684\u88c5\u7f6e<\/h2>\n<p>\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u6db2\u6676\u663e\u793a\u5668\u3001\u626c\u58f0\u5668\u3001\u4eba\u4f53\u4f20\u611f\u5668\u548cUSB\u8bbe\u5907\u90fd\u8fde\u63a5\u5230Raspberry Pi\uff0c\u4ee5\u5b8c\u6210\u8be5\u8bbe\u5907\u3002<\/p>\n<p>SensorMedal\u53ef\u4ee5\u653e\u7f6e\u5728BLE\u8303\u56f4\u5185\u7684\u4efb\u4f55\u4f4d\u7f6e\uff0c\u56e0\u6b64\u53ef\u4ee5\u5c06\u5176\u653e\u7f6e\u5728\u60a8\u684c\u5b50\u5468\u56f4\u6216\u7a97\u6237\u9644\u8fd1\u3002\u5f53\u7136\uff0c\u60a8\u4e5f\u53ef\u4ee5\u5c06\u5b83\u653e\u5728\u7535\u8111\u9644\u8fd1\u6216\u6302\u5728\u5899\u4e0a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30132\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/016.jpg\" alt=\"raspberrypi-comfortable-space-device-04-9\" width=\"600\" height=\"446\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u4e0b\u9762\u662f\u8be5\u8bbe\u5907\u7684\u6700\u7ec8\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u8ba9\u8bbe\u5907\u6839\u636eSensorMedal\u3001\u4eba\u4f53\u4f20\u611f\u5668\u548c\u5929\u6c14\u9884\u62a5\u7b49\u4fe1\u606f\u6267\u884c\u4efb\u52a1\u3002\u7a0b\u5e8f\u4ec5\u4f9b\u53c2\u8003\u3002<\/p>\n<p><strong>[ble_lcd.py]<\/strong><\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">#!\/usr\/bin\/env python3\r\n# coding: utf-8\r\n\r\nimport dothat\r\nimport dothat.backlight as backlight\r\nimport dothat.lcd as lcd\r\n\r\ninterval = 10 # \u52d5\u4f5c\u9593\u9694\r\n\r\nfrom datetime import datetime\r\nfrom bluepy import btle\r\nfrom sys import argv\r\nimport getpass\r\nfrom time import sleep\r\n\r\nimport os\r\nimport RPi.GPIO as GPIO\r\nhuman_pin = 13\r\nGPIO.setmode(GPIO.BCM)\r\nGPIO.setup(human_pin, GPIO.IN)\r\nhuman_count = 0\r\nhuman_check = 3\r\n\r\nimport json\r\nimport requests\r\nimport sys\r\nfrom pytz import timezone\r\n\r\nAPI_KEY = \"xxx\" #WeatherMap API Key\r\nZIP = \"123-4567,JP\" #Your address\r\nAPI_URL = \"http:\/\/api.openweathermap.org\/data\/2.5\/forecast?zip={0}&amp;units=metric&amp;lang=ja&amp;APPID={1}\"\r\naquest_path = \"\/home\/pi\/Programs\/aquestalkpi\/\" #AquesTalkPi path\r\n\r\ndef getWeatherForecast():\r\n    url = API_URL.format(ZIP, API_KEY)\r\n    response = requests.get(url)\r\n    forecastData = json.loads(response.text)\r\n    if not ('list' in forecastData):\r\n            print('error')\r\n            return                        \r\n    #print(forecastData)\r\n    for item in forecastData['list']:\r\n        forecastDatetime = timezone('Asia\/Tokyo').localize(datetime.fromtimestamp(item['dt']))\r\n        weatherDescription = item['weather'][0]['description']\r\n        temperature = item['main']['temp']\r\n        rainfall = 0\r\n        if 'rain' in item and '3h' in item['rain']:\r\n            rainfall = item['rain']['3h']\r\n        break\r\n    print('Date:{0} Weather:{1} Temp:{2} C Rain:{3}mm'.format(forecastDatetime, weatherDescription, temperature, rainfall))\r\n    return forecastDatetime, weatherDescription, temperature, rainfall\r\n\r\ndef payval(num, bytes=1, sign=False):\r\n    global val\r\n    a = 0\r\n    for i in range(0, bytes):\r\n        a += (256 ** i) * int(val[(num - 2 + i) * 2 : (num - 1 + i) * 2],16)\r\n    if sign:\r\n        if a &gt;= 2 ** (bytes * 8 - 1):\r\n            a -= 2 ** (bytes * 8)\r\n    return a\r\n\r\nscanner = btle.Scanner()\r\nwhile True:\r\n    now = datetime.now()\r\n    d = '{0:0&gt;4d}\/{1:0&gt;2d}\/{2:0&gt;2d}({3})'.format(now.year, now.month, now.day, now.strftime('%a'))\r\n    t = '{0:0&gt;2d}:{1:0&gt;2d}:{2:0&gt;2d}'.format(now.hour, now.minute, now.second)\r\n    forecastDatetime, weatherDescription, temperature, rainfall = getWeatherForecast()\r\n\r\n    lcd.clear()\r\n    lcd.set_cursor_position(0, 0)\r\n    lcd.write('{}'.format(d))\r\n    lcd.set_cursor_position(2, 1)\r\n    lcd.write('{}'.format(t))\r\n    lcd.set_cursor_position(0, 2)\r\n    lcd.write('W:{0}C {1}mm'.format(round(temperature,0), rainfall))\r\n    if rainfall &gt; 0:\r\n          print(weatherDescription, rainfall)\r\n          os.system(aquest_path+'AquesTalkPi '+weatherDescription+' | aplay')\r\n          \r\n    human = GPIO.input(human_pin)\r\n    if human == 1:\r\n      human_count+=1\r\n    else:\r\n      human_count=0\r\n    print('HCount:'+str(human_count))\r\n\r\n    try:\r\n        devices = scanner.scan(interval)\r\n    except Exception as e:\r\n        print(\"ERROR\",e)\r\n        if getpass.getuser() != 'root':\r\n            print('\u4f7f\u7528\u65b9\u6cd5: sudo', argv[0])\r\n            exit()\r\n        sleep(interval)\r\n        continue\r\n\r\n    # \u53d7\u4fe1\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066BLE\u30c7\u30d0\u30a4\u30b9\u6bce\u306e\u51e6\u7406\r\n    for dev in devices:\r\n        print(\"\\nDevice %s (%s), RSSI=%d dB\" % (dev.addr, dev.addrType, dev.rssi))\r\n        isRohmMedal = False\r\n        sensors = dict()\r\n        for (adtype, desc, val) in dev.getScanData():\r\n            print(\"  %s = %s\" % (desc, val))\r\n            if desc == 'Short Local Name' and val[0:10] == '极悦娱乐Medal2':\r\n                isRohmMedal = True\r\n            if isRohmMedal and desc == 'Manufacturer':\r\n                # \u30bb\u30f3\u30b5\u5024\u3092\u8f9e\u66f8\u578b\u5909\u6570sensors\u3078\u4ee3\u5165\r\n                sensors['ID'] = hex(payval(2,2))\r\n                sensors['Temperature'] = -45 + 175 * payval(4,2) \/ 65536\r\n                sensors['Humidity'] = 100 * payval(6,2) \/ 65536\r\n                sensors['Pressure'] = payval(22,3) \/ 2048\r\n                sensors['Illuminance'] = payval(25,2) \/ 1.2\r\n                sensors['Battery Level'] = payval(30)\r\n                sensors['RSSI'] = dev.rssi\r\n\r\n                # \u753b\u9762\u3078\u8868\u793a\r\n                print('    ID            =',sensors['ID'])\r\n                print('    Temperature   =',round(sensors['Temperature'],2),'\u2103')\r\n                print('    Humidity      =',round(sensors['Humidity'],2),'%')\r\n                print('    Pressure      =',round(sensors['Pressure'],3),'hPa')\r\n                print('    Illuminance   =',round(sensors['Illuminance'],1),'lx')\r\n                print('    Battery Level =',sensors['Battery Level'],'%')\r\n                print('    RSSI          =',sensors['RSSI'],'dB')\r\n\r\n                '''\r\n                for key, value in sorted(sensors.items(), key=lambda x:x[0]):\r\n                    print('    ',key,'=',value)\r\n                '''\r\n\r\n                temp  = sensors['Temperature']\r\n                humid = sensors['Humidity']\r\n                lcd.clear()\r\n                dothat.backlight.set_graph(0.5) # 50%\r\n                backlight.rgb(0, 0, 0)\r\n                if temp &gt; 28 or humid &gt; 80:\r\n                    temp_msg = \"Hot!\"\r\n                    backlight.rgb(255, 0, 0) #Red\r\n                else:\r\n                    temp_msg = \"Not bad\"\r\n          \r\n                illum = sensors['Illuminance']\r\n                if illum &lt; 200:\r\n                    illum_msg = \"Dark!\"\r\n                    os.system(\"sudo hub-ctrl -b 1 -d 2 -P 2 -p 1\")\r\n                    backlight.rgb(255, 255, 255)\r\n                else:\r\n                    illum_msg = \"Bright\"\r\n                    os.system(\"sudo hub-ctrl -b 1 -d 2 -P 2 -p 0\")\r\n                    backlight.rgb(0, 0, 255) #Blue\r\n\r\n                human_msg = str(human_count)\r\n                dothat.backlight.off()\r\n                for led in range(human_count):\r\n                    backlight.graph_set_led_state(led, 0.2)\r\n                if human_count &gt; human_check:\r\n                    human_msg += ' Take Rest!'\r\n                    backlight.rgb(0, 255, 0) #Green\r\n                    os.system(aquest_path+'AquesTalkPi \"\u4f11\u61a9\u3057\u307e\u3057\u3087\u3046\uff01\" | aplay')\r\n                else:\r\n                    human_msg += ' Work Hard!'\r\n                    backlight.rgb(0, 255, 255) #Lightblue\r\n\r\n                lcd.clear()\r\n                lcd.set_cursor_position(0, 0)\r\n                lcd.write('T:{0:1.0f}C {1:1.0f}% {2}'.format(temp,humid,temp_msg))\r\n                lcd.set_cursor_position(0, 1)\r\n                lcd.write('I:{0:1.0f} Lx {1}'.format(illum,illum_msg))\r\n                lcd.set_cursor_position(0, 2)\r\n                lcd.write('H:{}'.format(human_msg))\r\n                sleep(interval)\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u8ba9\u8fd9\u4e2a\u7a0b\u5e8f\u80fd\u591f\u81ea\u52a8\u542f\u52a8\u5427\u3002\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2ashell\u7a0b\u5e8f\u6765\u8fd0\u884cPython\u7a0b\u5e8f\u3002\u9700\u8981\u8fdb\u884c\u670d\u52a1\u8bbe\u7f6e\uff0c\u4ee5\u4f7f\u542f\u52a8\u8be5shell\u7a0b\u5e8f\u65f6\u80fd\u591f\u6267\u884cPython\u7a0b\u5e8f\u3002<\/p>\n<p><strong>[blelcd.sh]<\/strong><\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">#!\/bin\/sh\r\nsudo \/usr\/bin\/python3 \/home\/pi\/Programs\/ble_lcd.py\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>[blelcd.service]<\/strong><\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">Description=极悦娱乐 MEDAL BLE to LCD\r\n\r\n[Service]\r\nExecStart=\/bin\/bash \/home\/pi\/Programs\/blelcd.sh\r\nWorkingDirectory=\/home\/pi\/Programs\r\nUser=pi\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u73b0\u5728\uff0c\u5f53\u60a8\u91cd\u65b0\u542f\u52a8\u5b83\u65f6\uff0cRaspberry Pi\u5c06\u4f1a\u663e\u793a\u4f20\u611f\u5668\u7684\u503c\uff0c\u6307\u793a\u706f\u5f00\u59cb\u95ea\u70c1\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30133\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/017.jpg\" alt=\"raspberrypi-comfortable-space-device-04-10\" width=\"600\" height=\"476\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>4. \u603b\u7ed3<\/h2>\n<p>\u5728\u8fd9\u4e2a\u8fde\u8f7d\u7cfb\u5217\u4e2d\uff0c\u6211\u4eec\u9488\u5bf9\u5728\u5bb6\u529e\u516c\u65f6\u95f4\u589e\u52a0\u7684\u60c5\u51b5\uff0c\u521b\u4f5c\u4e86\u4e00\u4e2a\u53ef\u4ee5\u68c0\u6d4b\u529e\u516c\u73af\u5883\u5e76\u6539\u5584\u73af\u5883\u7684\u8bbe\u5907\u3002<\/p>\n<p>\u5728<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-01\/\">\u7b2c\u4e00\u90e8\u5206<\/a>\u4e2d\uff0c\u6211\u4eec\u601d\u8003\u5e76\u5217\u4e3e\u4e86\u5e0c\u671b\u5b9e\u73b0\u7684\u76ee\u6807\uff0c\u4e5f\u4e86\u89e3\u4e86\u7528\u7f57\u59c6\u7684SensorMedal\u53ef\u4ee5\u6d4b\u5f97\u591a\u79cd\u503c\u3002<\/p>\n<p>\u5728<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-02\/\">\u7b2c\u4e8c\u90e8\u5206<\/a>\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u5b9e\u9645\u901a\u8fc7Raspberry Pi\u548cBLE\u8fde\u63a5SensorMedal\u7528\u7684\u7a0b\u5e8f\u3002<\/p>\n<p>\u5728<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-03\/\">\u7b2c\u4e09\u90e8\u5206<\/a>\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4eba\u4f53\u4f20\u611f\u5668\uff0c\u5b9e\u73b0\u4e86\u68c0\u6d4b\u662f\u5426\u6709\u4eba\uff08\u662f\u5426\u4e45\u5750\u4e0d\u52a8\uff09\u7684\u529f\u80fd\u3002\u6b64\u5916\uff0c\u8fd8\u7528\u6db2\u6676\u663e\u793a\u5668\u6210\u529f\u663e\u793a\u4e86\u6e29\u6e7f\u5ea6\u548c\u4eae\u5ea6\u7b49\u4fe1\u606f\u3002<\/p>\n<p>\u5728\u7b2c\u56db\u90e8\u5206\uff0c\u4e5f\u5c31\u662f\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u589e\u52a0\u4e86\u5929\u6c14\u9884\u62a5\u7b49\u529f\u80fd\uff0c\u5b8c\u6210\u4e86\u8fd9\u4e2a\u7528\u8d77\u6765\u975e\u5e38\u65b9\u4fbf\u7684\u8bbe\u5907\u3002\u5f53\u60a8\u6253\u5f00Raspberry Pi\u7684\u7535\u6e90\u65f6\uff0c\u5b83\u4f1a\u81ea\u52a8\u542f\u52a8\u5e76\u6267\u884c\u81ea\u52a8\u68c0\u6d4b\u548c\u63d0\u9192\u7b49\u4efb\u52a1\u3002<\/p>\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u5b83\u73b0\u5728\u6bcf\u5929\u90fd\u5728\u6211\u5bb6\u5de5\u4f5c\uff0c\u5b83\u4f1a\u544a\u8bc9\u6211\u5468\u56f4\u7684\u4eae\u5ea6\uff0c\u5e76\u63d0\u9192\u6211\u522b\u5fd8\u4e86\u6536\u56de\u6652\u5728\u5916\u9762\u7684\u8863\u670d\uff01<\/p>\n<p>\u9f13\u52b1\u5927\u5bb6\u4e5f\u5c1d\u8bd5\u5236\u4f5c\u65b9\u4fbf\u60a8\u5c45\u5bb6\u751f\u6d3b\u548c\u5728\u5bb6\u529e\u516c\u7684\u8bbe\u5907\uff01<\/p>\n<div class=\"product_link_box\"><span style=\"font-size: 12pt;\"><strong>\u76f8\u5173\u8fde\u8f7d\u4e00\u89c8<\/strong><\/span>\u7b2c1\u90e8\u5206\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-01\/\">\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u4e00\u90e8\u5206<\/a><br \/>\n\u7b2c2\u90e8\u5206\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-02\/\">\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u4e8c\u90e8\u5206<\/a><br \/>\n\u7b2c3\u90e8\u5206\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-03\/\">\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u4e09\u90e8\u5206<\/a><br \/>\n\u7b2c4\u90e8\u5206\uff1a\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u56db\u90e8\u5206\u2022\u5267\u7ec8\u7bc7\uff08\u672c\u7ae0\uff09<\/p>\n<\/div>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30047\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/Yoshiken.png\" alt=\"\" width=\"83\" height=\"90\" \/><\/div>\n<div class=\"desc-wrapper\">\n<h5>\u5409\u7530\u3000\u663e\u4e00\uff08Yoshiken\uff09<\/h5>\n<div class=\"desc\">\n<p>\u5728\u666e\u901a\u516c\u53f8\u5de5\u4f5c\u7684\u4e0a\u73ed\u65cf\uff0c\u975e\u5e38\u559c\u6b22\u521b\u4f5c\u7684\u5468\u672b\u521b\u5ba2\uff0c\u51fa\u7248\u4e86\u7535\u5b50\u4e66MESHBOOK\uff0c\u5e73\u65f6\u4e5f\u5199\u5199\u535a\u5ba2\u3002<br \/>\nhttp:\/\/blog.ktrips.net<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u7b2c1\u56de\uff1a\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u4e00\u90e8\u5206 \u7b2c2\u56de\uff1a\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d \u7b2c\u4e8c\u90e8\u5206 \u7b2c3\u56de\uff1a\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c [&hellip;]","protected":false},"author":4,"featured_media":21332,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1132],"tags":[],"class_list":["post-21322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry"],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/21322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/comments?post=21322"}],"version-history":[{"count":9,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/21322\/revisions"}],"predecessor-version":[{"id":30134,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/21322\/revisions\/30134"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/21332"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=21322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=21322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=21322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}