{"id":7410,"date":"2016-10-25T21:29:41","date_gmt":"2016-10-25T19:29:41","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=7410"},"modified":"2018-09-07T16:26:40","modified_gmt":"2018-09-07T14:26:40","slug":"dump-tools","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=7410","title":{"rendered":"Raspberry Pi Flugstatistik mit collectd, rrd und dump1090-tool"},"content":{"rendered":"<p>Wer sch\u00f6ne Grafiken zum Thema Flug-Transponder-Empfang erstellen will, kann das sehr einfach machen. Es werden dann im Browser, z.B. solche Diagramme angezeigt:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.22.19.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.22.19.png\" alt=\"rrd flug statistik mit collectd\" width=\"2213\" height=\"1060\" class=\"aligncenter size-full wp-image-7413\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.22.19.png 2213w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.22.19-300x144.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.22.19-768x368.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.22.19-1024x490.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><br \/>\nEs gibt ein gutes <a href=\"https:\/\/github.com\/tedsluis\/dump1090-tools\">Install-Script <\/a> (Thanks <a href=\"https:\/\/github.com\/tedsluis\" target=\"_blank\">Ted Sluis<\/a>) mit dem geht die Installation auf einem Raspberry Pi Debian Jessie sehr einfach. Auch ein Install-Video ist auf der <a href=\"https:\/\/github.com\/tedsluis\/dump1090-tools\" target=\"_blank\">Seite<\/a> zu finden.<\/p>\n<p>Einfach diese Befehle absetzen:<!--more--><\/p>\n<pre class=\"lang:default decode:true \" ># zuerst in ein Temp-Vereichnis gehen\r\ncd \/tmp\r\n# das Script in das tmp Verzeichnis downlowden\r\nwget https:\/\/raw.githubusercontent.com\/tedsluis\/dump1090-tools\/master\/dump1090-tools-install.sh\r\n# die n\u00f6tigen Rechte zum ausf\u00fchren vergeben\r\nchmod +x dump1090-tools-install.sh\r\n# Script starten\r\n.\/dump1090-tools-install.sh\r\n# das kann ein paar Minuten (ca. 10) dauern, nach der installation ein paar Minuten warten, damit auch Daten in der DB landen k\u00f6nnen\r\n\r\n# (Optional) mit diesem ls Befehl kann kontrolliert werden ob Daten geschrieben werden.\r\nls -ll -R \/var\/lib\/collectd\/rrd\/* | grep rrd\r\n\r\n# (Optional) wenn nicht kann noch geschaut werden ob der Prozess l\u00e4uft\r\nps -ef | grep collectd\r\n# es muss dies ausgegeben werden:\r\n#root     26020     1  0 20:53 ?        00:00:00 \/usr\/sbin\/collectdmon -P \/var\/run\/collectd.pid -- -C \/etc\/collectd\/collectd.conf\r\n#root     26021 26020  0 20:53 ?        00:00:03 collectd -C \/etc\/collectd\/collectd.conf -f\r\n#pi       26960  1798  0 21:07 pts\/0    00:00:00 grep --color=auto collectd\r\n\r\n# (Optional) oder das Log-File nach Fehlern absuchen, ausgabe mit\r\ncat \/var\/log\/collectd.log\r\n\r\n# (Optional) den Graphen updaten mit\r\ncd \/home\/pi\/dump-tools\/collectd\/\r\n.\/graphs-crontabjob.sh\r\n# Ergebnis:\r\n#not expired   dump1090*1h.png   step=    8   expired=  266   expired_after=  300\r\n#not expired   dump1090*6h.png   step=   45   expired=  276   expired_after=  300\r\n#not expired  dump1090*24h.png   step=  180   expired=  270   expired_after=  600\r\n#not expired   dump1090*2d.png   step=  360   expired=  236   expired_after= 1200\r\n#not expired   dump1090*3d.png   step=  540   expired=  846   expired_after= 1800\r\n#not expired   dump1090*7d.png   step= 1260   expired= 2658   expired_after= 3600\r\n#not expired  dump1090*14d.png   step= 2520   expired= 6274   expired_after= 7200\r\n#not expired  dump1090*30d.png   step= 5400   expired= 5582   expired_after=14400\r\n#not expired  dump1090*90d.png   step=10800   expired=13473   expired_after=14400\r\n#not expired dump1090*365d.png   step=86400   expired=19986   expired_after=28800\r\n\r\n# (Optional) Checken ob die PNG Dateien erzeugt wurden mit\r\nls -la \/var\/www\/collectd\r\n\r\n# und zu guter letzt die URL im Browser aufrufen:\r\nhttp:\/\/(Pi-Adresse)\/collectd\/index.html\r\n<\/pre>\n<p>Hier noch ein Foto nach ca. einer Stunde:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.55.45.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.55.45.png\" alt=\"statistik nach einer stunde\" width=\"2214\" height=\"1070\" class=\"aligncenter size-full wp-image-7415\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.55.45.png 2214w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.55.45-300x145.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.55.45-768x371.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-10-25-um-21.55.45-1024x495.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Und die \u00dcbersicht nach 3 Tagen:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/3-tage.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/3-tage.png\" alt=\"3-tage\" width=\"2099\" height=\"1014\" class=\"aligncenter size-full wp-image-7418\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/3-tage.png 2099w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/3-tage-300x145.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/3-tage-768x371.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/3-tage-1024x495.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Die \u00dcbersicht nach einer Woche und angepasster index.html:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-04-um-07.26.36.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-04-um-07.26.36.png\" alt=\"bildschirmfoto-2016-11-04-um-07-26-36\" width=\"2099\" height=\"1048\" class=\"aligncenter size-full wp-image-7433\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-04-um-07.26.36.png 2099w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-04-um-07.26.36-300x150.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-04-um-07.26.36-768x383.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-04-um-07.26.36-1024x511.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Und nach 2 Wochen:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-09-um-19.19.30.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-09-um-19.19.30.png\" alt=\"2 Wochen Status in Hannover\" width=\"2089\" height=\"1008\" class=\"aligncenter size-full wp-image-7466\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-09-um-19.19.30.png 2089w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-09-um-19.19.30-300x145.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-09-um-19.19.30-768x371.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-09-um-19.19.30-1024x494.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Nach einem Monat:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-26-um-11.08.21.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-26-um-11.08.21.png\" alt=\"bildschirmfoto-2016-11-26-um-11-08-21\" width=\"2083\" height=\"1008\" class=\"aligncenter size-full wp-image-7507\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-26-um-11.08.21.png 2083w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-26-um-11.08.21-300x145.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-26-um-11.08.21-768x372.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/10\/Bildschirmfoto-2016-11-26-um-11.08.21-1024x496.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Was fehlt noch?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wer sch\u00f6ne Grafiken zum Thema Flug-Transponder-Empfang erstellen will, kann das sehr einfach machen. Es werden dann im Browser, z.B. solche Diagramme angezeigt: Es gibt ein gutes Install-Script (Thanks Ted Sluis) mit dem geht die Installation auf einem Raspberry Pi Debian Jessie sehr einfach. Auch ein Install-Video ist auf der Seite zu finden. Einfach diese Befehle &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=7410\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eRaspberry Pi Flugstatistik mit collectd, rrd und dump1090-tool\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220,2173,1023,1101],"tags":[2665,2664,913,2663,584,260,2376,923,2666,256],"class_list":["post-7410","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-debian","category-raspberry-pi","category-reisen","tag-collectd","tag-diagrame","tag-dump","tag-dump-tools","tag-flug","tag-png","tag-rrd","tag-status","tag-tedsluis","tag-tool"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/7410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7410"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/7410\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7410"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}