Skip to content

Commit 865deb3

Browse files
committed
Installation Guide finished and settings-parameter translated to english
1 parent 61177dc commit 865deb3

3 files changed

Lines changed: 42 additions & 21 deletions

File tree

README.md

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# WiP RaspberryPi Kiosk Slideshow
1+
# RaspberryPi Kiosk Slideshow
22
Use a RaspberryPi to show a full-screen Slideshow (Kiosk-mode)
33

44

55
## Installation TL;DR
6-
Use Raspbian, don't use midori
6+
Use Raspbian and chromium, don't use midori
77
```bash
88
sudo apt-get update
99
sudo apt-get upgrade
@@ -13,20 +13,13 @@ sudo apt-get install git vim ntpdate chromium-browser apache2 php libapache2-mod
1313
git clone git@github.com:timluedtke/raspberryPiKioskSlideshow.git
1414
cd raspberryPiKioskSlideshow
1515
mv -r ./system/lxde-pi_autostart /home/pi/.config/lxsession/LXDE-pi/autostart
16-
1716
```
1817

19-
## Prepare your RaspberryPi
18+
## Installation - step by step
2019
### Basic Setup
2120
For basic RaspberryPi setup you can use most of the available guides or this on:
2221
https://gist.github.com/blackjid/dfde6bedef148253f987
2322

24-
### APK packages needed
25-
RaspberryPi Kiosk Slideshow needs:
26-
- apache Server with PHP module (guide: https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md)
27-
- chromium-browser
28-
- ntpdate (sudo apt-get install ntpdate)
29-
3023
### HDMI Mode
3124
You may need to set the HDMI Mode on the raspi to ensure the hdmi resolution matches your screen exactly. Here is the official documentation:
3225
https://www.raspberrypi.org/documentation/configuration/config-txt/video.md
@@ -35,18 +28,45 @@ However I used this one:
3528

3629
(2,82) = 1920x1080 60Hz 1080p
3730

38-
### Autostart Slideshow on bootup
39-
To autostart this slideshow directly after bootup there is a precomiled file in this repo:
40-
/system/lxde-pi_autostart
31+
### Installation of base software
32+
- Install **chromium** for showing the slideshow in browser
33+
- Install **apache** Server with PHP module for rendering the slideshow (based on this guide: https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md)
34+
- Install **nptupdate** to keep your Raspi-clock set correctly
4135

4236
```bash
37+
sudo apt-get update
38+
sudo apt-get upgrade
39+
sudo apt-get dist-upgrade
40+
sudo apt-get install git vim ntpdate chromium-browser apache2 php libapache2-mod-php -y
41+
42+
git clone git@github.com:timluedtke/raspberryPiKioskSlideshow.git
43+
cd raspberryPiKioskSlideshow
4344
mv -r ./system/lxde-pi_autostart /home/pi/.config/lxsession/LXDE-pi/autostart
4445
```
4546

46-
Guide: http://www.raspberrypi-spy.co.uk/2014/05/how-to-autostart-apps-in-rasbian-lxde-desktop/
47+
### Autostart Slideshow on bootup
48+
To autostart this slideshow directly after bootup there is a precomiled file in this repo: **/system/lxde-pi_autostart**
4749

4850

49-
https://gist.github.com/blackjid/dfde6bedef148253f987
51+
With the following command you can move that file to a special directory where raspberryPi automatically executes it on bootup:
52+
```bash
53+
mv -r ./system/lxde-pi_autostart /home/pi/.config/lxsession/LXDE-pi/autostart
54+
```
5055

51-
## Prepare your Slideshow
56+
Based on this Guides:
57+
- http://www.raspberrypi-spy.co.uk/2014/05/how-to-autostart-apps-in-rasbian-lxde-desktop/
58+
- https://gist.github.com/blackjid/dfde6bedef148253f987
5259

60+
## Prepare your Slideshow
61+
Everything slideshow related happens in the /files folder.
62+
- Put some images to /files folder. Ideally with the same resultion of the screen (eg. 1920x1080px).
63+
- Edit the slideshow.txt
64+
- Every line starting with # is a comment line
65+
- Every line shall be either the filename (without path) OR a URL (eg: image.jpg OR https://timluedtke.de)
66+
- if you want you can set the transition delay in the comment-line: # setting-transition-delay=
67+
68+
## You are done now :)
69+
If everything is set up correctly, the RaspberryPi shall start chromium in fullscreen directly after bootup and after some seconds of showing the date&time (datetimenow.html) your slideshow shall start and loop.
70+
71+
## Feedback
72+
If you liked what we've done together feel free to give feedback (Gitlab Issues) or send me an photo of your RaspberryPiKiosk Setup. I would love that :) eMail: mail %aht% timluedtke %dot% de

files/slideshow.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Configuration file for RaspberryPi Kiosk Slideshow
33
# Project author: Tim Luedtke
44
#
5-
# Mit der folgenden Zeile kann die Wechselzeit zwischen den Übergängen (in Sekunden) festgelegt werden:
6-
# einstellung-wechselzeit-sekunden=7
5+
# With the following line you can set the transition delay between your slides:
6+
# setting-transition-delay=7
77
#
8-
# Folgend können Dateien oder URLs festgelegt werden, welche aufgerufen werden sollen:
9-
# Format: Dateiname oder vollständige URL (inkl. http/https)
8+
# You can either insert filenames (one in each line) or URL of websites:
9+
# Format: Filename or complete URL (incl. http/https)
1010
#######################################################################################################
1111
1.jpg
1212
2.jpg
@@ -15,6 +15,7 @@
1515
6.jpg
1616
7.jpg
1717
9.jpg
18+
https://timluedtke.de
1819
10.jpg
1920
11.jpg
2021
12.jpg

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}
5151
echo "urls[" . $outputSize . "] = '" . $enhancedUrl . "';\r\n";
5252
$outputSize++;
53-
} else if (substr($steuerungsinfos[$i], 0, 35) === "# einstellung-wechselzeit-sekunden=") {
53+
} else if (substr($steuerungsinfos[$i], 0, 35) === "# setting-transition-delay=") {
5454
$delayvalue = substr($steuerungsinfos[$i], 35);
5555
$delay = $delayvalue / 2 * 1000;
5656
}

0 commit comments

Comments
 (0)