add picture
This commit is contained in:
parent
55f2a0ef2f
commit
5f72c9f9d5
15
README.md
15
README.md
@ -33,9 +33,23 @@ sudo apt-get install -y git chromium-browser
|
||||
|
||||
git clone https://github.com/jr-k/reclame.git
|
||||
cd reclame && pip3 install -r requirements.txt && cp data/slideshow.json.dist data/slideshow.json
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
### Cli mode
|
||||
```bash
|
||||
./reclame.py
|
||||
```
|
||||
|
||||
### Forever with systemctl
|
||||
```bash
|
||||
sudo cp reclame.service /etc/systemd/system/reclame.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable reclame.service
|
||||
sudo systemctl start reclame.service
|
||||
```
|
||||
|
||||
## Prepare your Slideshow
|
||||
Everything slideshow-related happens in the ./data/uploads folder.
|
||||
- Put some images into the /data/uploads folder. Ideally with the same resultion of the screen (eg. 1920x1080px).
|
||||
@ -43,3 +57,4 @@ Everything slideshow-related happens in the ./data/uploads folder.
|
||||
|
||||
## You are done now :)
|
||||
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 (default.html) your slideshow shall start and loop endlessly.
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
[
|
||||
{"location":"https://ffmpeg.org","delay":10,"type":"url"},
|
||||
{"location":"https://unix.org","delay":20,"type":"url"},
|
||||
{"location":"https://unix.org","delay":20,"type":"url"}
|
||||
]
|
||||
@ -25,7 +25,7 @@ xenv_presets = f"""
|
||||
@xset s noblank
|
||||
@unclutter -display :0 -noevents -grab
|
||||
@sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium/Default/Preferences
|
||||
@chromium-browser --disable-features=Translate --autoplay-policy=no-user-gesture-required --start-maximized --allow-running-insecure-content --remember-cert-error-decisions --disable-restore-session-state --noerrdialogs --kiosk --incognito --window-position=0,0 --display=:0 http://localhost:{port}
|
||||
@chromium-browser --disable-features=Translate --ignore-certificate-errors --disable-web-security --disable-restore-session-state --autoplay-policy=no-user-gesture-required --start-maximized --allow-running-insecure-content --remember-cert-error-decisions --disable-restore-session-state --noerrdialogs --kiosk --incognito --window-position=0,0 --display=:0 http://localhost:{port}
|
||||
"""
|
||||
with open(destination_path, 'w') as file:
|
||||
file.write(xenv_presets)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user