Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

Start SlideShow automatically

no-261 au-03

Slideshow

A Slideshow is a presentation of a series of still images on a projection screen or electronic display device typically in a prearranged sequence. In this article, a slideshow will start when you start your Raspberry Pi.

Install needed programs

You must install only one program firstly.

  1. Install feh for the slideshow

sudo apt-get install feh

Download the Python Script

We’ve created a python script for you to use it.

1. Please download the script below link:

https://drive.google.com/file/d/1NgbNRkxbMN4rFt4YS1sWV-ea8S3A1RPE/view?usp=sharing

2. Copy the script under /home/pi directory

Edit the script

You must change the permission of script to run it.

1) Change the permission of Slideshow.py

chmod 777 Diashow.py

Edit LXDE autostart file

You have to add the script directory into the autostart file to start automatically.

1) Open autostart file with Gedit editor.

sudo gedit /etc/xdg/lxsession/LXDE-pi/autostart

1) Add below line into autostart file

@lxterminal -e “/home/pi/Diashow.py”

2) Click Save button and wait.
3) Close the file

Copy images

You can copy your images for slideshow.

  1. Go to directory /home/pi/Pictures
  2. Create slideshow folder under /home/pi/Pictures and copy your images into slideshow.

Reboot your Raspberry Pi.

You can stop slideshow pressing ESC key.

If you want to start slideshow manually, double click Diashow.py, then click Execute.

Slideshow will not start, if there are no images under /home/pi/Pictures/slideshow directory.

Inhaltsverzeichnis