{"id":5004,"date":"2015-01-18T02:22:19","date_gmt":"2015-01-18T01:22:19","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=5004"},"modified":"2021-11-22T17:15:06","modified_gmt":"2021-11-22T16:15:06","slug":"raspberry-pi-twflug-ermoeglicht-nun-die-summer-aller-flugzeuge-am-tag-via-fhem","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=5004","title":{"rendered":"Raspberry Pi: TWFlug erm\u00f6glicht nun die Summe aller Flugzeuge am Tag via Fhem"},"content":{"rendered":"<p>Habe gerade eine fix f\u00fcr <a href=\"http:\/\/blog.wenzlaff.de\/?s=twflug\" title=\"twflug\">TWFlug<\/a> hochgeladen, der auch eine neue Funktion hat.<\/p>\n<p>Es kann jetzt in Fhem die <strong>Summe<\/strong> aller Flugzeuge <strong>pro Tag<\/strong> angezeigt werden. Wird ein Flugzeug zwei oder mehrmals am Tag empfangen, wird es nur einmal in der Summe pro Tag ber\u00fccksichtigt.<br \/>\nEs wird einmal am Tag kurz vor Mitternacht ein Eintrag in folgender Form geschrieben:<\/p>\n<pre class=\"lang:default decode:true \" >2015-01-05_23:59:41 flugdaten summe-pro-tag: 1296<\/pre>\n<p>Fix in Time Funktion, jetzt mit neuer 1.8 Time Api, LocalDateTime &#8230;<\/p>\n<p>7700 Alarm Ausgabe in Konsole<\/p>\n<p>In Fhem kann dann diese Grafik ausgegeben werden:<br \/>\n<figure id=\"attachment_5008\" aria-describedby=\"caption-attachment-5008\" style=\"width: 1416px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/01\/Bildschirmfoto-2015-01-17-um-21.09.43.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/01\/Bildschirmfoto-2015-01-17-um-21.09.43.png\" alt=\"Flugzeuge pro Tag\" width=\"1416\" height=\"960\" class=\"size-full wp-image-5008\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/01\/Bildschirmfoto-2015-01-17-um-21.09.43.png 1416w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/01\/Bildschirmfoto-2015-01-17-um-21.09.43-300x203.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/01\/Bildschirmfoto-2015-01-17-um-21.09.43-1024x694.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/01\/Bildschirmfoto-2015-01-17-um-21.09.43-900x610.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption id=\"caption-attachment-5008\" class=\"wp-caption-text\">Flugzeuge pro Tag<\/figcaption><\/figure><\/p>\n<p>Hier der n\u00f6tige Eintrag in der <code>twflug.cfg<\/code> Datei:<\/p>\n<pre class=\"lang:default decode:true \" >\r\n# die Grafik mit der Logdatei verbinden f\u00fcr die Anzahl Flugzeuge pro Tag\r\ndefine FlugdatenProTag_SVG SVG FileLog_Flugdaten:myFlugProTag:CURRENT\r\nattr FlugdatenProTag_SVG room Flugdaten\r\n<\/pre>\n<p>Die <code>myFlugProTag.gplot<\/code> Datei:<\/p>\n<pre class=\"lang:default decode:true \" >\r\n\/*\r\n   myFlugProTag.gplot Version 1.0 vom 06.01.2015\r\n\r\n   Dieses GNU-Plot Script zeigt die Flugdaten von den empfangenen Transpondern pro Tag an.\r\n\r\n   Copyright (C) 2015 Thomas Wenzlaff http:\/\/www.wenzlaff.de\r\n\r\n   This program is free software: you can redistribute it and\/or modify\r\n   it under the terms of the GNU General Public License as published by\r\n   the Free Software Foundation, either version 3 of the License, or\r\n   (at your option) any later version.\r\n\r\n   This program is distributed in the hope that it will be useful,\r\n   but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n   GNU General Public License for more details.\r\n\r\n   You should have received a copy of the GNU General Public License\r\n   along with this program.  If not, see {http:\/\/www.gnu.org\/licenses\/}.\r\n*\/\r\n\r\n# Die Logdatei sieht wie folgt aus:\r\n\r\n# 2015-01-05_23:54:43 flugdaten anzahl: 4\r\n# 2015-01-05_23:59:41 flugdaten summe-pro-tag: 1296\r\n\r\nset terminal png transparent size &lt;SIZE&gt; crop\r\nset output '&lt;OUT&gt;.png'\r\nset xdata time\r\nset timefmt \"%Y-%m-%d_%H:%M:%S\"\r\nset xlabel \" \"\r\nset title 'Summe aller empfangene Flugzeuge pro Tag'\r\nset ytics \r\nset y2tics \r\nset grid ytics y2tics\r\nset ylabel \"Anzahl Flugzeuge\"\r\nset y2label \"Anzahl Flugzeuge\"\r\n\r\n#FileLog 4:summe-pro-tag\\x3a:0:\r\n\r\nplot \"&lt;IN&gt;\" using 1:2 axes x1y2 title 'Summe aller Flugzeuge pro Tag' ls l2fill lw 2 with lines <\/pre>\n<p>Welche Funktionen brauch ihr noch?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Habe gerade eine fix f\u00fcr TWFlug hochgeladen, der auch eine neue Funktion hat. Es kann jetzt in Fhem die Summe aller Flugzeuge pro Tag angezeigt werden. Wird ein Flugzeug zwei oder mehrmals am Tag empfangen, wird es nur einmal in der Summe pro Tag ber\u00fccksichtigt. Es wird einmal am Tag kurz vor Mitternacht ein Eintrag &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=5004\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eRaspberry Pi: TWFlug erm\u00f6glicht nun die Summe aller Flugzeuge am Tag via Fhem\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,852,1023,1101],"tags":[1921,693,584,1919,878,1920,1832,1918],"class_list":["post-5004","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-heimautomatisierung","category-raspberry-pi","category-reisen","tag-cfg","tag-fhem","tag-flug","tag-flugzeuge-pro-tag","tag-gplot","tag-tag","tag-twflug","tag-version-0-1-0"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/5004","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=5004"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/5004\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5004"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}