{"id":3004,"date":"2023-02-11T08:00:06","date_gmt":"2023-02-11T06:00:06","guid":{"rendered":"https:\/\/ways4.eu\/?p=3004"},"modified":"2023-02-12T12:02:47","modified_gmt":"2023-02-12T10:02:47","slug":"how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background","status":"publish","type":"post","link":"https:\/\/ways4.eu\/de\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/","title":{"rendered":"So legen Sie das Bild des Tages der NASA automatisch als Windows-Hintergrund fest"},"content":{"rendered":"<p>Hier ist ein Python-Skript, das das <a href=\"https:\/\/apod.nasa.gov\/apod\/astropix.html\" target=\"_blank\" rel=\"noopener\">NASA-Bild des Tages<\/a> herunterl\u00e4dt und es als Hintergrundbild in Windows einstellt:<br \/>\n<!--more--><\/p>\n<h3><a href=\"https:\/\/github.com\/smartDevel\/set_nasa_pic_as_background\" target=\"_blank\" rel=\"noopener\">Quellcode<\/a><\/h3>\n<p><script src=\"https:\/\/gist.github.com\/smartDevel\/f4eb7f2d3d0715bd0f6d57be218f321f.js\"><\/script><br \/>\nBeachten Sie, dass Sie \u201eYOUR_API_KEY\u201c in der URL durch Ihren eigenen NASA-API-Schl\u00fcssel ersetzen m\u00fcssen, den Sie von der NASA-API-Website ( <a href=\"https:\/\/api.nasa.gov\/\" target=\"_new\" rel=\"noopener\">https:\/\/api.nasa.gov\/<\/a> ) erhalten k\u00f6nnen.<\/p>\n<p>Das Skript stellt zun\u00e4chst eine Anfrage an die NASA-API, um die Daten f\u00fcr das Bild des Tages abzurufen. Anschlie\u00dfend werden die Daten analysiert und die URL des Bildes extrahiert. Das Bild wird dann heruntergeladen und als Image-File abgespeichert. Schlie\u00dflich legt das Skript das Bild mithilfe der Bibliothek <code>ctypes<\/code> als Windows-Desktophintergrund fest .<\/p>\n<div>\n<h3>Verwendung<\/h3>\n<div>\n<div>\n<div><\/div>\n<div>Sie k\u00f6nnen den Windows-Taskplaner verwenden, um das Skript zu einem bestimmten Zeitpunkt auszuf\u00fchren. Hier sind die Schritte dazu:<\/div>\n<div>\u00d6ffnen Sie den <strong>Windows-Taskplaner<\/strong> , indem Sie \u201eTaskplaner\u201c in die Suchleiste des Startmen\u00fcs eingeben und auf die App \u201eTaskplaner\u201c klicken.<\/div>\n<div>Klicken Sie im Taskplaner rechts im Bedienfeld \u201eAktionen\u201c auf <strong>\u201eBasisaufgabe erstellen\u2026\u201c .<\/strong><\/div>\n<div>Geben Sie im \u201eCreate Basic Task Wizard\u201c der Aufgabe einen Namen und eine Beschreibung (optional) und klicken Sie dann auf \u201eNext\u201c.<\/div>\n<div>W\u00e4hlen Sie aus, wann die Aufgabe ausgef\u00fchrt werden soll (z. B. t\u00e4glich, w\u00f6chentlich usw.), und klicken Sie dann auf \u201eWeiter\u201c.<\/div>\n<div>W\u00e4hlen Sie im n\u00e4chsten Schritt die Startzeit und das Datum f\u00fcr die Aufgabe aus und klicken Sie dann auf \u201eWeiter\u201c.<\/div>\n<div>W\u00e4hlen Sie im Schritt <strong>\u201eAktion\u201c<\/strong> \u201eProgramm starten\u201c und klicken Sie dann auf \u201eWeiter\u201c.<\/div>\n<div>Geben Sie im Feld <strong>\u201eProgramm\/Skript\u201c<\/strong> den Pfad zur ausf\u00fchrbaren Python-Datei ein (z. B. C:\\Python3x\\python.exe).<\/div>\n<div>Geben Sie im Feld <strong>\u201eArgumente hinzuf\u00fcgen (optional)\u201c<\/strong> den Pfad zu Ihrem Skript ein (z. B. C:\\scripts\\nasa_picture_of_the_day_background.py).<\/div>\n<div>Klicken Sie auf <strong>\u201eFertigstellen\u201c<\/strong> , um die Aufgabe zu erstellen.<\/div>\n<div>\n<p>Jetzt wird das Skript automatisch zur angegebenen Zeit mit dem Windows-Taskplaner ausgef\u00fchrt. Beachten Sie, dass Sie <strong>den Taskplaner m\u00f6glicherweise so konfigurieren m\u00fcssen, dass er mit Administratorrechten ausgef\u00fchrt wird<\/strong> , damit er den Desktophintergrund \u00e4ndern kann.<\/p>\n<\/div>\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3>Herunterladen<\/h3>\n<p>Sie k\u00f6nnen den Quellcode herunterladen und weitere Details in <a href=\"https:\/\/github.com\/smartDevel\/set_nasa_pic_as_background\" target=\"_blank\" rel=\"noopener\">meinem Github-Repository<\/a> finden :<br \/>\n<a href=\"https:\/\/github.com\/smartDevel\/set_nasa_pic_as_background\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/smartDevel\/set_nasa_pic_as_background<\/a><\/p>\n<div style='text-align:left' class='yasr-auto-insert-overall'><\/div><div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p class=\"qtranxs-available-languages-message qtranxs-available-languages-message-de\">Leider ist der Eintrag nur auf <a href=\"https:\/\/ways4.eu\/en\/wp-json\/wp\/v2\/posts\/3004\" class=\"qtranxs-available-language-link qtranxs-available-language-link-en\" title=\"English\">Amerikanisches Englisch<\/a> verf\u00fcgbar.<\/p>\n","protected":false},"author":1,"featured_media":2996,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_oct_exclude_from_cache":false,"_mi_skip_tracking":false,"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","_wpoai_wizard_id":""},"categories":[115,23,97],"tags":[304,302,305,299,303],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>(English) How to Automatically Set NASA&#039;s Picture of the Day as Your Windows Background<\/title>\n<meta name=\"description\" content=\"(English) Automatically set NASA&#039;s Picture of the Day as your Windows background image with this Python script.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[:en]How to Automatically Set NASA&#039;s Picture of the Day as Your Windows Background[:]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/\" \/>\n<meta property=\"og:site_name\" content=\"Streng vertraulich !\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-11T06:00:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-12T10:02:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ways4.eu\/wp-content\/uploads\/2023\/02\/wp-1675991345928.png\" \/>\n\t<meta property=\"og:image:width\" content=\"409\" \/>\n\t<meta property=\"og:image:height\" content=\"409\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"pathfinder\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sabhe011\" \/>\n<meta name=\"twitter:site\" content=\"@sabhe011\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"pathfinder\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/\"},\"author\":{\"name\":\"pathfinder\",\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81\"},\"headline\":\"So legen Sie das Bild des Tages der NASA automatisch als Windows-Hintergrund fest\",\"datePublished\":\"2023-02-11T06:00:06+00:00\",\"dateModified\":\"2023-02-12T10:02:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/\"},\"wordCount\":780,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81\"},\"keywords\":[\"Background\",\"NASA\",\"Picture of the Day\",\"Python\",\"Windows\"],\"articleSection\":[\"Coding\",\"Computers and IT\",\"Start\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/\",\"url\":\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/\",\"name\":\"[:en]How to Automatically Set NASA's Picture of the Day as Your Windows Background[:]\",\"isPartOf\":{\"@id\":\"https:\/\/ways4.eu\/#website\"},\"datePublished\":\"2023-02-11T06:00:06+00:00\",\"dateModified\":\"2023-02-12T10:02:47+00:00\",\"description\":\"{:en}Automatically set NASA's Picture of the Day as your Windows background image with this Python script.{:}\",\"breadcrumb\":{\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ways4.eu\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Automatically Set NASA&#8217;s Picture of the Day as Your Windows Background\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ways4.eu\/#website\",\"url\":\"https:\/\/ways4.eu\/\",\"name\":\"Streng vertraulich !\",\"description\":\"Nicht weitersagen...\",\"publisher\":{\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ways4.eu\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81\",\"name\":\"pathfinder\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-1674746983690.jpg?fit=702%2C841&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-1674746983690.jpg?fit=702%2C841&ssl=1\",\"width\":702,\"height\":841,\"caption\":\"pathfinder\"},\"logo\":{\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/ways4.eu\",\"https:\/\/twitter.com\/sabhe011\"],\"url\":\"https:\/\/ways4.eu\/de\/blog\/author\/pathfinder\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"(English) How to Automatically Set NASA's Picture of the Day as Your Windows Background","description":"(English) Automatically set NASA's Picture of the Day as your Windows background image with this Python script.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/","og_locale":"de_DE","og_type":"article","og_title":"[:en]How to Automatically Set NASA's Picture of the Day as Your Windows Background[:]","og_url":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/","og_site_name":"Streng vertraulich !","article_published_time":"2023-02-11T06:00:06+00:00","article_modified_time":"2023-02-12T10:02:47+00:00","og_image":[{"width":409,"height":409,"url":"https:\/\/ways4.eu\/wp-content\/uploads\/2023\/02\/wp-1675991345928.png","type":"image\/png"}],"author":"pathfinder","twitter_card":"summary_large_image","twitter_creator":"@sabhe011","twitter_site":"@sabhe011","twitter_misc":{"Verfasst von":"pathfinder","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/#article","isPartOf":{"@id":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/"},"author":{"name":"pathfinder","@id":"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81"},"headline":"So legen Sie das Bild des Tages der NASA automatisch als Windows-Hintergrund fest","datePublished":"2023-02-11T06:00:06+00:00","dateModified":"2023-02-12T10:02:47+00:00","mainEntityOfPage":{"@id":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/"},"wordCount":780,"commentCount":0,"publisher":{"@id":"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81"},"keywords":["Background","NASA","Picture of the Day","Python","Windows"],"articleSection":["Coding","Computers and IT","Start"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/","url":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/","name":"[:en]How to Automatically Set NASA's Picture of the Day as Your Windows Background[:]","isPartOf":{"@id":"https:\/\/ways4.eu\/#website"},"datePublished":"2023-02-11T06:00:06+00:00","dateModified":"2023-02-12T10:02:47+00:00","description":"{:en}Automatically set NASA's Picture of the Day as your Windows background image with this Python script.{:}","breadcrumb":{"@id":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ways4.eu\/blog\/2023\/02\/11\/how-to-automatically-set-nasas-picture-of-the-day-as-your-windows-background\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ways4.eu\/"},{"@type":"ListItem","position":2,"name":"How to Automatically Set NASA&#8217;s Picture of the Day as Your Windows Background"}]},{"@type":"WebSite","@id":"https:\/\/ways4.eu\/#website","url":"https:\/\/ways4.eu\/","name":"Streng vertraulich !","description":"Nicht weitersagen...","publisher":{"@id":"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ways4.eu\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81","name":"pathfinder","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/ways4.eu\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-1674746983690.jpg?fit=702%2C841&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-1674746983690.jpg?fit=702%2C841&ssl=1","width":702,"height":841,"caption":"pathfinder"},"logo":{"@id":"https:\/\/ways4.eu\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/ways4.eu","https:\/\/twitter.com\/sabhe011"],"url":"https:\/\/ways4.eu\/de\/blog\/author\/pathfinder\/"}]}},"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/posts\/3004"}],"collection":[{"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/comments?post=3004"}],"version-history":[{"count":8,"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/posts\/3004\/revisions"}],"predecessor-version":[{"id":3027,"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/posts\/3004\/revisions\/3027"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/media\/2996"}],"wp:attachment":[{"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/media?parent=3004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/categories?post=3004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ways4.eu\/de\/wp-json\/wp\/v2\/tags?post=3004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}