{"id":2298,"date":"2014-09-05T22:11:53","date_gmt":"2014-09-05T18:11:53","guid":{"rendered":"http:\/\/nayarweb.com\/blog\/?p=2298"},"modified":"2014-09-05T23:17:38","modified_gmt":"2014-09-05T19:17:38","slug":"schedule-downloads-at-night-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/nayarweb.com\/blog\/2014\/schedule-downloads-at-night-on-raspberry-pi\/","title":{"rendered":"Schedule Downloads at Night on Raspberry Pi"},"content":{"rendered":"<p>The best time to download heavy files is at night. Because during the day, you need the bandwidth to do your own work. A Raspberry Pi is ideal for downloading. It doesn&#8217;t consume lots of power. It can be plugged directly into your router&#8217;s USB port for power and Ethernet. You can also attach an external hard-drive to it.<\/p>\n<p><a href=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2014\/09\/CameraZOOM-20140905212531444.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2014\/09\/CameraZOOM-20140905212531444-219x300.jpg\" alt=\"CameraZOOM-20140905212531444\" width=\"219\" height=\"300\" class=\"aligncenter size-medium wp-image-2300\" srcset=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2014\/09\/CameraZOOM-20140905212531444-219x300.jpg 219w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2014\/09\/CameraZOOM-20140905212531444-748x1024.jpg 748w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2014\/09\/CameraZOOM-20140905212531444.jpg 1533w\" sizes=\"auto, (max-width: 219px) 100vw, 219px\" \/><\/a><\/p>\n<h2>wget<\/h2>\n<p><code>$ sudo apt-get install wget<\/code><\/p>\n<p>It is installed by default in Raspbian and lots of other Linux distros.<\/p>\n<h2>at<\/h2>\n<p><code>$ sudo apt-get install at<\/code><\/p>\n<p>at allows you to schedule a command at certain time.<\/p>\n<p>Let&#8217;s say we have to download Qt for Android 5.3.1 (Linux)<\/p>\n<p><code>$ ssh pi@192.168.1.x<br \/>\n$ echo 'wget -c http:\/\/download.qt-project.org\/official_releases\/qt\/5.3\/5.3.1\/qt-opensource-linux-x64-android-5.3.1.run' | at 02:00<\/code><\/p>\n<p>The -c argument tells wget that if an existing download was in place, resume it \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The best time to download heavy files is at night. Because during the day, you need the bandwidth to do your own work. A Raspberry Pi is ideal for downloading. It doesn&#8217;t consume lots of power. It can be plugged directly into your router&#8217;s USB port for power and Ethernet. You can also attach an &hellip; <a href=\"https:\/\/nayarweb.com\/blog\/2014\/schedule-downloads-at-night-on-raspberry-pi\/\" class=\"continue-reading\">Continue reading <span class=\"screen-reader-text\">Schedule Downloads at Night on Raspberry Pi<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[61,167],"class_list":["post-2298","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/comments?post=2298"}],"version-history":[{"count":4,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2298\/revisions"}],"predecessor-version":[{"id":2304,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2298\/revisions\/2304"}],"wp:attachment":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media?parent=2298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/categories?post=2298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/tags?post=2298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}