{"id":7462,"date":"2023-09-21T17:58:13","date_gmt":"2023-09-21T15:58:13","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=7462"},"modified":"2023-09-21T17:58:15","modified_gmt":"2023-09-21T15:58:15","slug":"das-wetter-unter-linux-am-terminal-mit-curl-anzeigen-lassen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/21\/das-wetter-unter-linux-am-terminal-mit-curl-anzeigen-lassen\/","title":{"rendered":"Das Wetter unter Linux am Terminal mit Curl anzeigen lassen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Mit der Software Curl l\u00e4sst sich unter Linux auf dem <a rel=\"noreferrer noopener\" href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?f=9&amp;t=3\" target=\"_blank\">Terminal<\/a> hervorragend das Wetter anzeigen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Curl installieren<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software ganz einfach \u00fcber die <a rel=\"noreferrer noopener\" href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?f=10&amp;t=10\" target=\"_blank\">Paket-Verwaltung<\/a> durch das Paket &#8222;<strong>curl<\/strong>&#8222;.<br><br>Das Wetter mit Curl auf dem Terminal anzeigen<br><br>Die einfachste Version ist einfach folgenden Befehl aufzurufen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl http:\/\/wttr.in<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hiermit nutzt der Dienst einfach Ihren Internet-Provider, um ein passendes Ergebnis anzuzeigen:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/curlwetter.jpg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/curlwetter-1024x576.jpg\" alt=\"\" class=\"wp-image-7464\" title=\"curlwetter.jpg (263.48 KiB) 838 mal betrachtet\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/curlwetter-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/curlwetter-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/curlwetter-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/curlwetter-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/curlwetter-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/curlwetter.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Um ein genaueres Ergebnis zu erhalten, geben Sie die n\u00e4chste gr\u00f6\u00dfere Stadt ein &#8211; einfach versuchen &#8211; etwa:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl http:\/\/wttr.in\/graz<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Erg\u00e4nzung aus dem Forum<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Beitrag von Josef_K, So 29. Aug 2021, 16:54<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wenn man aber die Ausgabe in deutscher Sprache haben will, dann sollte man es mit<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -H 'Accept-Language: de' http:\/\/wttr.in\/xxx<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">machen.<br>xxx durch die n\u00e4chstliegende Stadt ersetzen.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hyyxyVa.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"611\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hyyxyVa-1024x611.png\" alt=\"\" class=\"wp-image-7467\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hyyxyVa-1024x611.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hyyxyVa-300x179.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hyyxyVa-150x90.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hyyxyVa-768x459.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hyyxyVa.png 1432w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Leider stimmt dieser Wetterbericht selten.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Erstver\u00f6ffentlichung: Sa 28. Aug 2021, 20:31<\/strong><\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"7462\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"7462\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Mit der Software Curl l\u00e4sst sich unter Linux auf dem Terminal hervorragend das Wetter anzeigen. Curl installieren Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software ganz einfach \u00fcber die Paket-Verwaltung durch das Paket &#8222;curl&#8222;. Das Wetter mit Curl auf dem Terminal anzeigen Die einfachste Version ist einfach folgenden Befehl aufzurufen: Hiermit nutzt der Dienst [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,101],"tags":[],"class_list":["post-7462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","category-tipps"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=7462"}],"version-history":[{"count":3,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7462\/revisions"}],"predecessor-version":[{"id":7469,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7462\/revisions\/7469"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/7468"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=7462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=7462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=7462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}