importerror cannot import name
Digital photo frames are absolutely nice to attending at, but they can be rather inflexible, and ancestors photos can be a little … well, boring. But if you add a awning to a Raspberry Pi, you can accomplish article absolutely unique, by overlaying photos from r/earthporn with “inspirational” quotes from r/showerthoughts (or any aggregate of your admired subreddits).
["407.4"]Want to accomplish your own dynamic, digital, Raspberry Pi-powered talking point? Read on.
You’ll charge to acquire the latest adaptation of Raspbian 5 Ways New Raspbian Jessie Makes Raspberry Pi Even Easier to Use 5 Ways New Raspbian Jessie Makes Raspberry Pi Even Easier to Use Following the absolution of Debian Jessie in July, the Raspberry Pi association has been adored with a new absolution of the Raspbian variant, based on the "parent" distro. Read More installed for this project, so if all-important download and address to your SD agenda How To Install An Operating System To Your Raspberry Pi How To Install An Operating System To Your Raspberry Pi Here's how to get a new OS installed and active on your Pi – and how to carbon your absolute bureaucracy for quick adversity recovery. Read More . Once you’ve done that, booty the time to bureaucracy wireless networking How to Bureaucracy Wi-Fi and Bluetooth on the Raspberry Pi 3 How to Bureaucracy Wi-Fi and Bluetooth on the Raspberry Pi 3 We assuredly got wireless and Bluetooth capabilities congenital on the Raspberry Pi 3, but how do you set it up? Read More and accredit SSH Setting Up Your Raspberry Pi For Headless Use With SSH Setting Up Your Raspberry Pi For Headless Use With SSH The Raspberry Pi can acquire SSH commands back affiliated to a bounded arrangement (either by Ethernet or Wi-Fi), enabling you to calmly set it up. The allowances of SSH go aloft abashing the circadian screening... Read More .
With all of this done and accurately configured, ensure that you acquire affiliated your Pi auspiciously to the advised display. This ability be an old laptop monitor, a anachronistic book or Kindle reader, or one of the displays advised for the Pi How to Bureaucracy Your Raspberry Pi Touchscreen How to Bureaucracy Your Raspberry Pi Touchscreen The Raspberry Pi comes with a array of advantageous add-ons, but one allotment of kit that has accepted decidedly accepted is the Raspberry Pi 7-inch Touchscreen Display. Here's how to set one up. Read More .
You should additionally booty the accomplish appropriate to aggrandize the Raspberry Pi filesystem. This can be done in raspi-config in the command band What You Charge to Apperceive About Getting Started with Raspberry Pi What You Charge to Apperceive About Getting Started with Raspberry Pi The Raspberry Pi computer is the latest in a band of compact, multi-function devices, alien as a barebones amalgamation so that end users can use the accouterments for around any accretion activity that comes to... Read More or in the Menu > Preferences > Raspberry Pi Configuration box on the desktop.
Rather than aeon through some photos stored on your Pi, you can use a Python calligraphy to find images from the web. The Reddit channels r/EarthPorn (beautiful, beauteous photos of the Earth, and absolutely safe for work!) and r/ShowerThoughts are abundant candidates, and you can download the cipher from this scul86’s Github page. Download ep_st.py, ep_st.config and template.html and save all three files into the aforementioned area on your Raspberry Pi (perhaps home/pi/Frame), afore alteration ep_st.config:
Here, attending for the argument headed [FILEPATHS] and change these to bout the area area you acquire adored the three files. If you’re not abiding what the abounding filepath should be, cd into the book in the command line, and blazon pwd.
["407.4"]Note that you can additionally acclimatize the subreddits from which the calligraphy pulls argument and images, admitting we’d advance abrogation them at the defaults for now.
When you’re done, hit Ctrl X, again Y to affirm the changes.
Next, you charge to install praw, a Python adhesive for the Reddit API. Install this with
Wait while this is done, and again about-face your absorption to giving the ep_st.py the all-important permissions:
You should again accomplish the book executable:
To analysis the slideshow, cd into the Frame agenda and run
In the GUI, browse to the Frame agenda and acquisition the newly-created ep_st.html. This is the aftereffect of the Python calligraphy and the settings you defined in the config file, so accessible this to see the results. The folio is set to automatically refresh, and should amend itself whenever a new adorning angel is created. If you’re afraid about bushing up your Pi drive amplitude with these, don’t be: the images aren’t absolutely downloaded, it’s aloof creating an HTML file that credibility to them accidentally (probably an IMGUR url) with a textual overlay.
["407.4"]At this stage, all that is larboard to do is set the slideshow to barrage automatically back you cossack your Raspberry Pi. To accomplish this happen, we charge the Python calligraphy to run, and the HTML book to open.
Begin by installing and configuring a browser. We’re activity to use Midori, but you can baddest and configure appealing abundant any Pi-compatible browser.
First, accessible sudo raspi-config and Disable Overscan. Then, install the browser:
Next, accessible nano to actualize a script:
Here, access the following:
Substitute [URL] with the webpage you ambition to amount at boot. For our ep_st.html file, adored in the /home/pi/Frame subdirectory, the band would read:
Save this with Ctrl X and affirm with Y.
Next, accomplish it executable with
You should again adapt the autostart file:
["407.4"]At the end of the book (you may acquire some curve in actuality already from the bureaucracy of your Pi’s touchscreen affectation How to Bureaucracy Your Raspberry Pi Touchscreen How to Bureaucracy Your Raspberry Pi Touchscreen The Raspberry Pi comes with a array of advantageous add-ons, but one allotment of kit that has accepted decidedly accepted is the Raspberry Pi 7-inch Touchscreen Display. Here's how to set one up. Read More ) add:
Save and exit, again adapt the rc.local file:
Here, add a new band aloft avenue 0:
Save and exit, again reboot.
By default, the Pi affectation — whatever affectation is affiliated — will be switched off afterwards a few account of inactivity. We can accord with this by abutting via SSH (or application the Terminal if you acquire a keyboard acquainted in) and alteration the lightdm.conf file.
Find [SeatDefaults] (the brackets are included; you’ll acquisition it appear the end of the file) and add this band beneath it:
Save and avenue with Ctrl X and reboot:
Let us apperceive in the comments how this activity went for you! Acquire you ashore with the defaults, or did you acquisition some added sub-reddits that assignment able-bodied together? Or did you run into problems? Whatever happened, whatever you’ve done with this project, acquaint us about it in the comments!
["407.4"]
["407.4"]
["407.4"]
["407.4"]
["407.4"]
["407.4"]
["407.4"]