Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Step by Step Twitter to Eink inside a RPI case
- 1. clone from github after the PI is setup.
- git clone https://github.com/embeddedartists/gratis.git
- sudo apt-get install git
- 2. Confirm that the module is set
- sudo modprobe spi-bcm2708
- 3. Install dependancies
- sudo apt-get install libfuse-dev
- sudo apt-get install python-imaging
- 4. Build and install from inside /home/pi/gratis/PlatformWithOS
- COG_VERSION=V2 make rpi-epd_fuse
- sudo modprobe spi-bcm2708
- sudo mkdir /tmp/epd
- sudo ./driver-common/epd_fuse --panel=2.7 -o allow_other -o default_permissions /tmp/epd
- sudo COG_VERSION=V2 make rpi-install
- sudo service epd-fuse start ls -l /dev/epd
- 5. Test your configuration
- cat /tmp/epd/version
- cat /tmp/epd/panel
- COG_VERSION=V2 make rpi-epd_test
- 6. Setup apps Twitter account
- https://apps.twitter.com/
- 7. Rename the sample file
- mv tweepy_auth.py-SAMPLE tweepy_auth.py
- 8. Modify the demo file called tweepy_auth.py
- basic = False
- CONSUMER_KEY = ''
- CONSUMER_SECRET = ''
- ACCESS_TOKEN = ''
- ACCESS_TOKEN_SECRET = ''
- 9. Install Tweepy
- pip install tweepy
- 10. Run the file (‘linux’ is the name of a twitter feed)
- python demo/TwitterDemo.py linux
- 11. Optional modify your fonts inside TwitterDemo.py
- this line: possible_message_fonts = [
- '/usr/share/fonts/truetype/droid/DroidSans-Bold.ttf',
- and this line: y = y + 24
- 12. Start at boot
- Need to install the startup script in /etc/init.d and install the EPD FUSE program in /usr/sbin, there is a make target that does this.
- sudo COG_VERSION=V2 make rpi-install
- sudo service epd-fuse start ls -l /dev/epd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement