Skip to content

Selleo/ict-slot-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f8eb7ff · Jul 18, 2019

History

79 Commits
Jul 18, 2019
Jul 18, 2019
Sep 4, 2018
Jul 18, 2019
Jun 25, 2018
Jul 19, 2018
Jul 18, 2019
Jul 9, 2018
Jul 18, 2019
Sep 4, 2018
Sep 4, 2018
Jul 18, 2019

Repository files navigation

Slot machine

Services setup

/lib/systemd/system/kiosk-cursor.service

[Unit]
Description=Hide cursor
After=systemd-user-sessions.service

[Service]
ExecStart=/usr/bin/unclutter -idle 1
User=pi

[Install]
Alias=kiosk-cursor.service

/lib/systemd/system/kiosk.service

[Unit]
Description=Kiosk
After=systemd-user-sessions.service
Requires=redis.service

[Service]
WorkingDirectory=/home/pi/projects/oab/
ExecStart=/home/pi/projects/oab/start.sh
LimitNOFILE=4096
IgnoreSIGPIPE=false
Type=simple

[Install]
Alias=kiosk.service
WantedBy=multi-user.target

/lib/systemd/system/kiosk-uploader.service

[Unit]
Description=Kiosk Uploader
After=systemd-user-sessions.service
Requires=redis.service

[Service]
WorkingDirectory=/home/pi/services/
ExecStart=/home/pi/services/uploader --watch-dir /home/pi/services/data --log-file /home/pi/services/logs/uploader.log
IgnoreSIGPIPE=false
Type=simple

[Install]
Alias=kiosk-uploader.service
WantedBy=multi-user.target

Enable & start services:

systemctl --system daemon-reload # reload configs
systemctl enable kiosk
systemctl start kiosk
systemctl enable kiosk-cursor
systemctl start kiosk-cursor

~/.config/autostart/chromium.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=Kiosk
Exec=/usr/bin/chromium-browser --kiosk --incognito  http://localhost:3000

Reboot and check if services are working:

systemctl status kiosk

Releases

No releases published

Packages

No packages published