{"id":16656,"date":"2021-04-04T13:16:30","date_gmt":"2021-04-04T11:16:30","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=16656"},"modified":"2022-03-16T18:48:12","modified_gmt":"2022-03-16T17:48:12","slug":"wetter","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=16656","title":{"rendered":"Wetter Quickie von der Kommandozeile"},"content":{"rendered":"<p>Wer mal schnell das Wetter auf der Kommandozeile ausgeben will kann einfach<\/p>\n<p><strong>curl <a href=\"https:\/\/wttr.in\/langenhagen\" rel=\"noopener\" target=\"_blank\">http:\/\/wttr.in\/langenhagen<\/a><\/strong><\/p>\n<p>aufrufen (Ort ersetzen \ud83d\ude42<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/04\/wenzlaff.de-2021-04-04-um-13.13.02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/04\/wenzlaff.de-2021-04-04-um-13.13.02.png\" alt=\"\" width=\"2814\" height=\"1992\" class=\"aligncenter size-full wp-image-16657\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/04\/wenzlaff.de-2021-04-04-um-13.13.02.png 2814w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/04\/wenzlaff.de-2021-04-04-um-13.13.02-300x212.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/04\/wenzlaff.de-2021-04-04-um-13.13.02-1024x725.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/04\/wenzlaff.de-2021-04-04-um-13.13.02-768x544.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/04\/wenzlaff.de-2021-04-04-um-13.13.02-1536x1087.png 1536w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/04\/wenzlaff.de-2021-04-04-um-13.13.02-2048x1450.png 2048w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Oder mit deutscher Beschriftung, macht das Wetter aber auch nicht besser: &#8230;<!--more--><\/p>\n<p><strong>curl <a href=\"https:\/\/wttr.in\/langenhagen?lang=de\" rel=\"noopener\" target=\"_blank\">http:\/\/wttr.in\/langenhagen?lang=de<\/a><\/strong><\/p>\n<p>Und die ganze Anleitung:<\/p>\n<pre class=\"lang:default decode:true \" >curl http:\/\/wttr.in\/:help\r\nUsage:\r\n\r\n    $ curl wttr.in          # current location\r\n    $ curl wttr.in\/muc      # weather in the Munich airport\r\n\r\nSupported location types:\r\n\r\n    \/paris                  # city name\r\n    \/~Eiffel+tower          # any location (+ for spaces)\r\n    \/\u041c\u043e\u0441\u043a\u0432\u0430                 # Unicode name of any location in any language\r\n    \/muc                    # airport code (3 letters)\r\n    \/@stackoverflow.com     # domain name\r\n    \/94107                  # area codes\r\n    \/-78.46,106.79          # GPS coordinates\r\n\r\nMoon phase information:\r\n\r\n    \/moon                   # Moon phase (add ,+US or ,+France for these cities)\r\n    \/moon@2016-10-25        # Moon phase for the date (@2016-10-25)\r\n\r\nUnits:\r\n\r\n    m                       # metric (SI) (used by default everywhere except US)\r\n    u                       # USCS (used by default in US)\r\n    M                       # show wind speed in m\/s\r\n\r\nView options:\r\n\r\n    0                       # only current weather\r\n    1                       # current weather + today's forecast\r\n    2                       # current weather + today's + tomorrow's forecast\r\n    A                       # ignore User-Agent and force ANSI output format (terminal)\r\n    F                       # do not show the \"Follow\" line\r\n    n                       # narrow version (only day and night)\r\n    q                       # quiet version (no \"Weather report\" text)\r\n    Q                       # superquiet version (no \"Weather report\", no city name)\r\n    T                       # switch terminal sequences off (no colors)\r\n\r\nPNG options:\r\n\r\n    \/paris.png              # generate a PNG file\r\n    p                       # add frame around the output\r\n    t                       # transparency 150\r\n    transparency=...        # transparency from 0 to 255 (255 = not transparent)\r\n    background=...          # background color in form RRGGBB, e.g. 00aaaa\r\n\r\nOptions can be combined:\r\n\r\n    \/Paris?0pq\r\n    \/Paris?0pq&amp;lang=fr\r\n    \/Paris_0pq.png          # in PNG the file mode are specified after _\r\n    \/Rome_0pq_lang=it.png   # long options are separated with underscore\r\n\r\nLocalization:\r\n\r\n    $ curl fr.wttr.in\/Paris\r\n    $ curl wttr.in\/paris?lang=fr\r\n    $ curl -H \"Accept-Language: fr\" wttr.in\/paris\r\n\r\nSupported languages:\r\n\r\n    am ar af be ca da de el et fr fa hi hu ia id it nb nl oc pl pt-br ro ru tr th uk vi zh-cn zh-tw (supported)\r\n    az bg bs cy cs eo es eu fi ga hi hr hy is ja jv ka kk ko ky lt lv mk ml nl fy nn pt pt-br sk sl sr sr-lat sv sw te uz zh zu he (in progress)\r\n\r\nSpecial URLs:\r\n\r\n    \/:help                  # show this page\r\n    \/:bash.function         # show recommended bash function wttr()\r\n    \/:translation           # show the information about the translators<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Wer mal schnell das Wetter auf der Kommandozeile ausgeben will kann einfach curl http:\/\/wttr.in\/langenhagen aufrufen (Ort ersetzen \ud83d\ude42 Oder mit deutscher Beschriftung, macht das Wetter aber auch nicht besser: &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[220,1023,7],"tags":[946,853],"class_list":["post-16656","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-raspberry-pi","category-tools","tag-cmd","tag-wetter"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/16656","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=16656"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/16656\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16656"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}