This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Kiosk Mode
defeirst edited this page Oct 24, 2022
·
7 revisions
Kiosk mode is an optional mode that can be enabled for continuous use. This prevents damage to the servos and the power board inside the Moab. This requires a small basket or cup to catch the ping-pong ball when it's dropped off the plate.
# Usage: python3 menu.py --kiosk --kiosk-timeout <seconds> --kiosk-dump-location <clock hour position>
To quickly test kiosk mode from command line, have it balance for 5 seconds then dropping the ball at the 2 o'clock position (with the joystick representing 6 o'clock (timeout is in seconds, location is [0..12] o'clock)
cd moab/sw
python3 menu.py --kiosk --kiosk-timeout 5 --kiosk-dump-location 2
To make your Moab boot up in kiosk mode, you will need to edit a line in menu.service
which is located in
https://github.com/microsoft/moabian/blob/main/os/services/menu.service#L10
Before:
ExecStart=/usr/bin/python3 menu.py --debug --verbose --reset
After:
ExecStart=/usr/bin/python3 menu.py --debug --verbose --reset --kiosk --kiosk-timeout 5 --kiosk-dump-location 2
Follow these steps on the command line:
cd ~/moab/os/services
nano menu.service
# make the change above and save the file
sudo systemctl restart menu.service