{"id":2542,"date":"2015-03-26T14:15:14","date_gmt":"2015-03-26T18:15:14","guid":{"rendered":"http:\/\/antipaucity.com\/?p=2542"},"modified":"2015-03-26T14:15:14","modified_gmt":"2015-03-26T18:15:14","slug":"ifttt-box-drive-my-desktop-backgrounds-with-a-little-cron-happiness","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=2542","title":{"rendered":"ifttt &#038; box drive my desktop backgrounds &#8230; with a little cron happiness"},"content":{"rendered":"<p>I love that {{OS X}} lets me change my background on a schedule (I use every 30 minutes now).<\/p>\n<p>But I don&#8217;t like having to find pictures to populate my desktop menagerie with.<\/p>\n<p>Enter completely SFW backgrounds via RSS feeds!<\/p>\n<p>Using <a href=\"http:\/\/ifttt.com\">IFTTT<\/a>, I watch for new items from a variety of daily photo feeds, and upload the new items to a folder in my <a href=\"http:\/\/box.com\">Box<\/a>\u00a0account. I have that folder set to be the source for my desktop backgrounds, and bingo bango we have automated new images coming to enjoy!<\/p>\n<p>The recipe I&#8217;m using is available for you to <a href=\"https:\/\/ifttt.com\/recipes\/273417-put-new-images-from-science360-to-box\">grab here<\/a>. (I have several running, but you can use any RSS feed you&#8217;d like.)<\/p>\n<p>Also, to ensure I don&#8217;t end up with duplicate images (eg from the Bing images <a href=\"http:\/\/feeds.feedburner.com\/bingimages\">feed<\/a>), I have the following running as a cron job (thanks to <a href=\"http:\/\/unix.stackexchange.com\/q\/192701\/6388\">Unix.SE<\/a> for helping me figure it out):<\/p>\n<p><code>md5 -r * | sort | awk 'BEGIN{lasthash = \"\"} $1 == lasthash {print $2} {lasthash = $1}' | xargs rm<\/code><\/p>\n<p>That script removes any files with duplicate MD5 sums from the folder I keep the images in (note &#8211; you should put the\u00a0<em>actual<\/em> path to\u00a0<em>your<\/em> folder in your cron job).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I love that {{OS X}} lets me change my background on a schedule (I use every 30 minutes now). But I don&#8217;t like having to find pictures to populate my desktop menagerie with. Enter completely SFW backgrounds via RSS feeds! Using IFTTT, I watch for new items from a variety of daily photo feeds, and &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=2542\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">ifttt &#038; box drive my desktop backgrounds &#8230; with a little cron happiness<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[16,41],"tags":[121,390,399,400,644],"keyring_services":[],"class_list":["post-2542","post","type-post","status-publish","format-standard","hentry","category-fun","category-technical","tag-automation","tag-how-to","tag-ifttt","tag-images","tag-rss"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/2542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2542"}],"version-history":[{"count":0,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/2542\/revisions"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2542"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=2542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}