{"id":1031,"date":"2019-04-10T14:35:36","date_gmt":"2019-04-10T06:35:36","guid":{"rendered":"http:\/\/www.kevinkwmak.com\/?p=1031"},"modified":"2021-09-28T18:34:23","modified_gmt":"2021-09-28T10:34:23","slug":"%e5%90%91%e6%97%a5%e8%91%b58%e8%99%9f","status":"publish","type":"post","link":"https:\/\/kevinmak.net\/?p=1031","title":{"rendered":"\u5411\u65e5\u84758\u865f"},"content":{"rendered":"\n<p>Himawaripy puts near-realtime picture of Earth as your desktop background. In the readme it said &#8220;himawaripy is a Python 3 script that fetches near-realtime (10 minutes delayed) picture of Earth as its taken by <a href=\"https:\/\/en.wikipedia.org\/wiki\/Himawari_8\">Himawari 8 (\u3072\u307e\u308f\u308a8\u53f7)<\/a> and sets it as your desktop background.<\/p>\n\n\n\n<p>I tried and it became like this, it&#8217;d be nice if they have another satellite just above Hong Kong. But its good enough to watch nearly live image of earth, seeing all the clouds and movements.<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" src=\"https:\/\/www.kevinkwmak.com\/wp-content\/uploads\/2019\/04\/Screenshot_2019-04-10_14-31-48.png\" alt=\"\" data-id=\"1036\" data-link=\"https:\/\/www.kevinkwmak.com\/?attachment_id=1036\" class=\"wp-image-1036\"\/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>Hope i can at least see something at night, or it&#8217;ll just be a black solid wallpaper after sunset lol.<\/p>\n\n\n\n<p>Here&#8217;s the steps to set this up, as mentioned on github.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\ngit clone https:\/\/github.com\/boramalper\/himawaripy.git\n\n# install\nsudo python3 setup.py install\n\n# test whether it's working\nhimawaripy --auto-offset\n\n# Get the installation path of himawaripy by running the command\nwhich -- himawaripy\n\n# Set himawaripy to be called periodically\n\n    ## Either set up a cronjob\n        crontab -e\n\n        ### Add the line:\n        *\/10 * * * * &lt;INSTALLATION_PATH&gt; # command line arguments here\n\n    ## OR, alternatively use the provided systemd timer\n\n        ### Configure\n        vi systemd\/himawaripy.service\n        # Replace \"&lt;INSTALLATION_PATH&gt;\" with the output of the aforementioned command and command line arguments\n\n        ### Copy systemd configuration\n        cp systemd\/himawaripy.{service,timer} ~\/.config\/systemd\/user\/\n\n        ### Enable and start the timer\n        systemctl --user enable --now himawaripy.timer\n<\/code><\/pre>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Himawaripy is a Python 3 script that &hellip; <a href=\"https:\/\/kevinmak.net\/?p=1031\" class=\"more-link\"><span class=\"more-button\">Continue reading<span class=\"screen-reader-text\">\u5411\u65e5\u84758\u865f<\/span><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1040,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1031","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-daily-life"],"jetpack_featured_media_url":"https:\/\/kevinmak.net\/wp-content\/uploads\/2019\/04\/Screenshot_2019-04-10_14-04-45.resized.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kevinmak.net\/index.php?rest_route=\/wp\/v2\/posts\/1031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kevinmak.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kevinmak.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kevinmak.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kevinmak.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1031"}],"version-history":[{"count":4,"href":"https:\/\/kevinmak.net\/index.php?rest_route=\/wp\/v2\/posts\/1031\/revisions"}],"predecessor-version":[{"id":1542,"href":"https:\/\/kevinmak.net\/index.php?rest_route=\/wp\/v2\/posts\/1031\/revisions\/1542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kevinmak.net\/index.php?rest_route=\/wp\/v2\/media\/1040"}],"wp:attachment":[{"href":"https:\/\/kevinmak.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kevinmak.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kevinmak.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}