{"id":3759,"date":"2020-08-22T11:42:09","date_gmt":"2020-08-22T19:42:09","guid":{"rendered":"http:\/\/www.hi-alex.com\/?p=3759"},"modified":"2020-08-25T22:56:58","modified_gmt":"2020-08-26T06:56:58","slug":"%e6%8a%98%e8%85%beraspberry-pi%ef%bc%9a%e5%ae%89%e8%a3%85piaware","status":"publish","type":"post","link":"http:\/\/www.hi-alex.com\/?p=3759","title":{"rendered":"\u6298\u817eRaspberry Pi\uff1a\u5b89\u88c5PiAware"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">PiAware\u662f\u4ec0\u4e48\u9b3c\uff1f<\/h2>\n\n\n\n<p>\u5b98\u65b9\u89e3\u91ca\uff1a<\/p>\n\n\n\n<p>\u60a8\u7684\u5730\u9762\u7ad9\u53ef\u4ee5\u8fd0\u884c FlightAware \u7684 PiAware \u8f6f\u4ef6\uff0c\u7528\u4e8e\u8ddf\u8e2a\u5728 100-300 miles \uff08\u89c6\u7ebf\u5185\uff0c\u53d6\u51b3\u4e8e\u5929\u7ebf\u7684\u5b89\u88c5\u8303\u56f4\uff09 \u5185\u7684\u98de\u884c\uff0c\u5e76\u81ea\u52a8\u5c06\u6570\u636e\u4f20\u9001\u7ed9 FlightAware\u3002 \u60a8\u53ef\u4ee5\u76f4\u63a5\u4ece\u60a8\u7684 PiAware \u8bbe\u5907\u6216\u901a\u8fc7 FlightAware.com \u8ddf\u8e2a\u822a\u73ed\u3002\u4e3a\u4e86\u8868\u8fbeFlightAware\u7684\u8c22\u610f\uff0c\u53d1\u9001ADS-B\u6570\u636e\u7684\u7528\u6237\u5c06\u4eab\u53d7\u4ee5\u4e0b\u4f18\u5f85\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>flightaware.com\u4e0a\u7684\u5b9e\u65f6\u6570\u636e\uff08\u5b58\u5728\u6700\u591a\u4e24\u5206\u949f\u7684\u6807\u51c6\u6570\u636e\u5904\u7406\u5ef6\u8fdf\uff09<\/li><li>\u8bbf\u95ee\u672c\u5730\u8bbe\u5907\u6700\u8fd1\u4e00\u79d2\u63a5\u6536\u7684\u6700\u65b0\u5b9e\u65f6\u6570\u636e\uff08\u53ef\u901a\u8fc7\u672c\u5730\u7f51\u7edc\u8fde\u63a5\u5728\u7edf\u8ba1\u4fe1\u606f\u9875\u9762\u8bbf\u95ee\uff09<\/li><li>\u6765\u81ea\u672c\u5730\u8bbe\u5907\u7684\u6570\u636e\u5728FlightAware\u822a\u8ff9\u4e0a\u7a81\u51fa\u663e\u793a<\/li><li>\u7ad9\u70b9\u6027\u80fd\u8be6\u7ec6\u7edf\u8ba1<\/li><li>\u4e00\u4e2a\u514d\u8d39<a href=\"https:\/\/zh.flightaware.com\/commercial\/premium\">Enterprise Account<\/a>&nbsp;(\u4ef7\u503c\u6bcf\u670889.95\u7f8e\u5200)<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5\u8fc7\u7a0b\uff1a<\/h2>\n\n\n\n<p>\u786c\u4ef6\uff1a<\/p>\n\n\n\n<p>\u5c06amazon\u8d2d\u4e70\u7684<a rel=\"noreferrer noopener\" href=\"https:\/\/www.amazon.com\/NooElec-NESDR-Mini-Receiver-RTL2832U\/dp\/B00VZ1AWQA\/ref=sr_1_8?crid=37SYX2JJNOBE5&#038;dchild=1&#038;keywords=ads-b+usb+dongle&#038;qid=1598125853&#038;sprefix=ads-b%2Caps%2C233&#038;sr=8-8\" target=\"_blank\">ADS-B\u63a5\u6536\u5668<\/a>\u8fde\u4e0a\u5929\u7ebf\uff0c\u5e76\u63d2\u5165RasPi\u7684USB\u53e3\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"2560\" src=\"http:\/\/www.hi-alex.com\/wp-content\/uploads\/2020\/08\/img_2783-scaled.jpg\" alt=\"\" class=\"wp-image-3839\" srcset=\"http:\/\/www.hi-alex.com\/wp-content\/uploads\/2020\/08\/img_2783-scaled.jpg 1920w, http:\/\/www.hi-alex.com\/wp-content\/uploads\/2020\/08\/img_2783-225x300.jpg 225w, http:\/\/www.hi-alex.com\/wp-content\/uploads\/2020\/08\/img_2783-768x1024.jpg 768w, http:\/\/www.hi-alex.com\/wp-content\/uploads\/2020\/08\/img_2783-1152x1536.jpg 1152w, http:\/\/www.hi-alex.com\/wp-content\/uploads\/2020\/08\/img_2783-1536x2048.jpg 1536w, http:\/\/www.hi-alex.com\/wp-content\/uploads\/2020\/08\/img_2783-624x832.jpg 624w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/figure>\n\n\n\n<p>\u8f6f\u4ef6\uff1a<\/p>\n\n\n\n<p><code>wget https:\/\/flightaware.com\/adsb\/piaware\/files\/packages\/pool\/piaware\/p\/piaware-support\/piaware-repository_3.8.1_all.deb<br \/>sudo dpkg -i piaware-repository_3.8.1_all.deb<\/code><\/p>\n\n\n\n<p><code>sudo apt-get update<br \/>sudo apt-get install piaware<\/code><\/p>\n\n\n\n<p><code>sudo piaware-config allow-auto-updates yes<br \/>sudo piaware-config allow-manual-updates yes<\/code><\/p>\n\n\n\n<p><code>sudo apt-get install dump1090-fa<\/code><\/p>\n\n\n\n<p><code>sudo reboot<\/code><\/p>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u767b\u5f55flighwaware\u7f51\u7ad9\u6fc0\u6d3b\u521a\u5b89\u88c5\u5b8c\u6bd5\u7684\u5ba2\u6237\u7aef<\/p>\n\n\n\n<p><a href=\"https:\/\/flightaware.com\/adsb\/piaware\/claim\">https:\/\/flightaware.com\/adsb\/piaware\/claim<\/a><\/p>\n\n\n\n<p>\u6fc0\u6d3b\u4ee5\u540e\uff0c\u5c31\u80fd\u5728\u672c\u5730\u5c40\u57df\u7f51\u770b\u5230\u672c\u5730\u5730\u56fe\u4ee5\u53ca\u6b63\u5728\u8ffd\u8e2a\u7684\u98de\u673a\u4e86\u3002<\/p>\n\n\n\n<p>\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u7531\u4e8e\u6211\u8fd9\u4e2aRasPi\uff0c\u4e4b\u524d\u5df2\u7ecf\u5b89\u88c5\u4e86Apache\u8fd0\u884cwordpress\u548cpiwigo\u76f8\u518c\uff0c\u800cPiAware\u9ed8\u8ba4\u4f7f\u7528\u7684\u662flighttpd\u670d\u52a1\u5668\uff0c\u4e24\u8005(Apache\u548clighttpd)\u540c\u65f6\u8fd0\u884c\uff0c\u4f1a\u9020\u6210\u7aef\u53e3\u76d1\u542c\u51b2\u7a81\uff0c\u540c\u65f6\u4e5f\u4f1a\u52a0\u91cd\u4e3b\u673a\u7684\u8d1f\u8377\uff0c\u6240\u4ee5\u6211\u53c8\u591a\u505a\u4e86\u51e0\u4e2a\u6b65\u9aa4\uff0c\u628adump1090-fa\u7684\u670d\u52a1\u8fc1\u79fb\u5230\u4e86Apache\u4e0a\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u6b65\u9aa4\u5f88\u7b80\u7b54\uff0c\u53ea\u9700\u8981\u6539\u52a8\u4e24\u4e2a\u6587\u4ef6\uff1a<\/p>\n\n\n\n<p>\u7b2c\u4e00\u4e2a\u662f\u5728\/etc\/apache2\/ports.conf\u4e2d\u52a0\u5165\u5bf98080\u7aef\u53e3\u7684\u76d1\u542c :<\/p>\n\n\n\n<p><code>Listen 8080<\/code><\/p>\n\n\n\n<p>\u5176\u6b21\uff0c\u5c068080\u7aef\u53e3\u7684\u670d\u52a1\u52a0\u5165\u5230\/etc\/apache2\/sites-available\/000-default.conf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:8080&gt;\n        ServerAdmin webmaster@localhost\n       DocumentRoot \/usr\/share\/dump1090-fa\/html\/\n       Alias  \"\/dump1090-fa\/data\/\" \"\/run\/dump1090-fa\/\"\n       Alias  \"\/data\/\" \"\/run\/dump1090-fa\/\"\n       Alias  \"\/dump1090-fa\/\" \"\/usr\/share\/dump1090-fa\/html\/\"\n       Alias  \"^\/dump1090-fa$\" \"\/dump1090-fa\/\"\n        #SetEnvIf Request_URI \"\/dump1090-fa\/data\/.*\\.json$\" Header set \"Access-Control-Allow-Origin\" \"*\"\n        &lt;Directory \"\/usr\/share\/dump1090-fa\/html\/\"&gt;\n        Require all granted\n        Options All\n        AllowOverride All\n        SetEnvIf Request_URI \"\/dump1090-fa\/data\/.*\\.json$\" Header set \"Access-Control-Allow-Origin\" \"*\"\n        &lt;\/Directory&gt;\n        &lt;Directory \"\/run\/dump1090-fa\/\"&gt;\n        Require all granted\n        Options All\n        AllowOverride All\n        SetEnvIf Request_URI \"\/dump1090-fa\/data\/.*\\.json$\" Header set \"Access-Control-Allow-Origin\" \"*\"\n        &lt;\/Directory&gt;\n        ErrorLog ${APACHE_LOG_DIR}\/error.log\n        CustomLog ${APACHE_LOG_DIR}\/access.log combined\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p><br \/>\u91cd\u542fApache\u670d\u52a1<\/p>\n\n\n\n<p><code>sudo service apache2 restart<\/code><\/p>\n\n\n\n<p>\u7981\u7528lighttpd<\/p>\n\n\n\n<p><code>sudo systemctl disable lighttpd<\/code><\/p>\n\n\n\n<p><code>sudo update-rc.d -f lighttpd remove<\/code><\/p>\n\n\n\n<p>\u5c06Apache\u670d\u52a1\u8bbe\u4e3a\u81ea\u52a8\u542f\u52a8<\/p>\n\n\n\n<p><code>sudo systemctl enable --now apache2<br \/><\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9e\u9645\u8fd0\u884c\u6548\u679c\uff1a<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"wp-content\/uploads\/2020\/08\/PiAware-1-1024x793.jpg\" alt=\"\" class=\"wp-image-3772\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0b\u4e00\u6b65\uff1a<\/h2>\n\n\n\n<p>Amazon\u4e70\u7684ADS-B\u81ea\u5e26\u7684\u5929\u7ebf\u4fe1\u53f7\u6709\u70b9\u5f31\uff0c\u53ea\u80fd\u63a5\u6536\u5230\u5468\u56f425NM\u5de6\u53f3\u7684\u8303\u56f4\uff0c\u63a5\u4e0b\u6765\u53ef\u80fd\u53e6\u5916\u4e70\u4e00\u4e2a\u4fe1\u53f7\u5f3a\u4e00\u70b9\u7684\u5929\u7ebf\uff0c\u540c\u65f6\u9700\u8981\u8c03\u6574\u4e00\u4e0b\u6446\u653e\u4f4d\u7f6e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003\u8d44\u6599\uff1a<\/h2>\n\n\n\n<p><a href=\"https:\/\/flightaware.com\/adsb\/piaware\/install\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/flightaware.com\/adsb\/piaware\/install<\/a><br \/><a rel=\"noreferrer noopener\" href=\"https:\/\/discussions.flightaware.com\/t\/migrate-dump1090-fa-to-apache\/34053\/11\" target=\"_blank\">https:\/\/discussions.flightaware.com\/t\/migrate-dump1090-fa-to-apache\/34053\/11<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PiAware\u662f\u4ec0\u4e48\u9b3c\uff1f \u5b98\u65b9\u89e3\u91ca\uff1a \u60a8\u7684\u5730\u9762\u7ad9\u53ef\u4ee5\u8fd0\u884c FlightAware \u7684 PiAware \u8f6f\u4ef6\uff0c\u7528\u4e8e\u8ddf\u8e2a\u5728 100-300 miles \uff08\u89c6\u7ebf\u5185\uff0c\u53d6\u51b3\u4e8e\u5929\u7ebf\u7684\u5b89\u88c5\u8303\u56f4\uff09 \u5185\u7684\u98de\u884c\uff0c\u5e76\u81ea\u52a8\u5c06\u6570\u636e\u4f20\u9001\u7ed9 FlightAware\u3002 \u60a8\u53ef\u4ee5\u76f4\u63a5\u4ece\u60a8\u7684 PiAware \u8bbe\u5907\u6216\u901a\u8fc7 FlightAware.com \u8ddf\u8e2a\u822a\u73ed\u3002\u4e3a\u4e86\u8868\u8fbeFlightAware\u7684\u8c22\u610f\uff0c\u53d1\u9001ADS-B\u6570\u636e\u7684\u7528\u6237\u5c06\u4eab\u53d7\u4ee5\u4e0b\u4f18\u5f85\uff1a flightaware.com\u4e0a\u7684\u5b9e\u65f6\u6570\u636e\uff08\u5b58\u5728\u6700\u591a\u4e24\u5206\u949f\u7684\u6807\u51c6\u6570\u636e\u5904\u7406\u5ef6\u8fdf\uff09 \u8bbf\u95ee\u672c\u5730\u8bbe\u5907\u6700\u8fd1\u4e00\u79d2\u63a5\u6536\u7684\u6700\u65b0\u5b9e\u65f6\u6570\u636e\uff08\u53ef\u901a\u8fc7\u672c\u5730\u7f51\u7edc\u8fde\u63a5\u5728\u7edf\u8ba1\u4fe1\u606f\u9875\u9762\u8bbf\u95ee\uff09 \u6765\u81ea\u672c\u5730\u8bbe\u5907\u7684\u6570\u636e\u5728FlightAware\u822a\u8ff9\u4e0a\u7a81\u51fa\u663e\u793a \u7ad9\u70b9\u6027\u80fd\u8be6\u7ec6\u7edf\u8ba1 \u4e00\u4e2a\u514d\u8d39Enterprise Account&nbsp;(\u4ef7\u503c\u6bcf\u670889.95\u7f8e\u5200) \u5b89\u88c5\u8fc7\u7a0b\uff1a \u786c\u4ef6\uff1a \u5c06amazon\u8d2d\u4e70\u7684ADS-B\u63a5\u6536\u5668\u8fde\u4e0a\u5929\u7ebf\uff0c\u5e76\u63d2\u5165RasPi\u7684USB\u53e3\u3002 \u8f6f\u4ef6\uff1a wget https:\/\/flightaware.com\/adsb\/piaware\/files\/packages\/pool\/piaware\/p\/piaware-support\/piaware-repository_3.8.1_all.debsudo dpkg -i piaware-repository_3.8.1_all.deb sudo apt-get updatesudo apt-get install piaware sudo piaware-config allow-auto-updates yessudo piaware-config allow-manual-updates yes sudo apt-get install dump1090-fa sudo reboot \u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u767b\u5f55flighwaware\u7f51\u7ad9\u6fc0\u6d3b\u521a\u5b89\u88c5\u5b8c\u6bd5\u7684\u5ba2\u6237\u7aef https:\/\/flightaware.com\/adsb\/piaware\/claim \u6fc0\u6d3b\u4ee5\u540e\uff0c\u5c31\u80fd\u5728\u672c\u5730\u5c40\u57df\u7f51\u770b\u5230\u672c\u5730\u5730\u56fe\u4ee5\u53ca\u6b63\u5728\u8ffd\u8e2a\u7684\u98de\u673a\u4e86\u3002 \u8fd8\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u7531\u4e8e\u6211\u8fd9\u4e2aRasPi\uff0c\u4e4b\u524d\u5df2\u7ecf\u5b89\u88c5\u4e86Apache\u8fd0\u884cwordpress\u548cpiwigo\u76f8\u518c\uff0c\u800cPiAware\u9ed8\u8ba4\u4f7f\u7528\u7684\u662flighttpd\u670d\u52a1\u5668\uff0c\u4e24\u8005(Apache\u548clighttpd)\u540c\u65f6\u8fd0\u884c\uff0c\u4f1a\u9020\u6210\u7aef\u53e3\u76d1\u542c\u51b2\u7a81\uff0c\u540c\u65f6\u4e5f\u4f1a\u52a0\u91cd\u4e3b\u673a\u7684\u8d1f\u8377\uff0c\u6240\u4ee5\u6211\u53c8\u591a\u505a\u4e86\u51e0\u4e2a\u6b65\u9aa4\uff0c\u628adump1090-fa\u7684\u670d\u52a1\u8fc1\u79fb\u5230\u4e86Apache\u4e0a\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-3759","post","type-post","status-publish","format-standard","hentry","category-20"],"_links":{"self":[{"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=\/wp\/v2\/posts\/3759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3759"}],"version-history":[{"count":2,"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=\/wp\/v2\/posts\/3759\/revisions"}],"predecessor-version":[{"id":3840,"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=\/wp\/v2\/posts\/3759\/revisions\/3840"}],"wp:attachment":[{"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3759"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hi-alex.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}