https://github.com/cncjs/cncjs-pendant-lcd
CNCjs Web Kiosk for Raspberry Pi Touch Displays
https://github.com/cncjs/cncjs-pendant-lcd
Last synced: 3 months ago
JSON representation
CNCjs Web Kiosk for Raspberry Pi Touch Displays
- Host: GitHub
- URL: https://github.com/cncjs/cncjs-pendant-lcd
- Owner: cncjs
- License: mit
- Created: 2017-05-14T21:30:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-14T22:18:06.000Z (about 8 years ago)
- Last Synced: 2024-05-01T11:27:14.390Z (about 1 year ago)
- Homepage:
- Size: 2.93 KB
- Stars: 5
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cncjs-pendant-lcd
CNCjs Web Kiosk Display on Raspberry Pi 320 X 480 TFT LCD Touch DisplayCreates a web kiosk for [CNCjs Tiny Web](https://github.com/cncjs/cncjs-pendant-tinyweb)
Hardware Options:
- HDMI Display w/ Mouse
- HDMI Display w/ Touch
- [Raspberry Pi 3.5inch HDMI LCD w/ Touch](http://www.spotpear.com/index.php/spotpear-raspberry-pi-lcd/raspberry-pi-3-5inch-hdmi-lcd)
- [3.5 Inch 320 X 480 TFT LCD Display Touch Board For Raspberry Pi 2/B+](https://www.banggood.com/3_5-Inch-320-X-480-TFT-LCD-Display-Touch-Board-For-Raspberry-Pi-BB-p-958458.html)
- [Geekcreit® 3.5 Inch 320 X 480 TFT LCD Display Touch Board For Raspberry Pi 3 Model B RPI 2B B+](https://www.banggood.com/3_5-Inch-320-X-480-TFT-LCD-Display-Touch-Board-For-Raspberry-Pi-2-Model-B-RPI-B-p-1023432.html)# Setup Guide:
## Setup your Screen
## Setup Web Kiosk (WIP - SUBJECT TO CHANGE)
```
# Next you should configure your pi to automatically log in using, Select “3 Boot Options” and then select “B2 Console Autologin”.
sudo raspi-config# # This will start the x server without mouse cursor, which is a nice touch as we use it as touch display.
# cat >> /home/pi/.bashrc << EOF
# if ! pgrep "xinit" > /dev/null
# then
# xinit -- -nocursor 2> /dev/null > /dev/null &
# fi
# EOF
# chmod 644 /home/pi/.bashrccat > /home/pi/.bash_profile << EOF
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec startx -- -nocursor
fi
EOF
#chmod 644 /home/pi/.bash_profile# If you have the normal Jessie image with x you have installed the lxde desktop. There the autostart file would be “/home/pi/.config/lxsession/LXDE-pi/autostart”. If you are using our pi image, the autostart file would be “/home/pi/.config/openbox/autostart” since we use openbox to reduce memory usage. Open the file with your favorite editor and add the following:
touch /home/pi/.config/openbox/autostart
cat > /home/pi/.config/openbox/autostart << EOF
# Uncomment the following 3 commands to have display always on
#xset s off # don't activate screensaver
#xset -dpms # disable DPMS (Energy Star) features.
#xset s noblank # don't blank the video devicechromium-browser --noerrdialogs --disable-suggestions-service --disable-translate --disable-save-password-bubble --disable-session-crashed-bubble --disable-infobars --touch-events=enabled --disable-gesture-typing --kiosk http://xcarve/tinyweb/#/
EOF
# Copy
#cp "/home/pi/.config/openbox/autostart" "/home/pi/.config/lxsession/LXDE-pi/autostart"# cat > /home/pi/.xinitrc << EOF
# #xset s off # don't activate screensaver
# #xset -dpms # disable DPMS (Energy Star) features.
# #xset s noblank # don't blank the video device
# exec openbox-session
# startx
# EOF
#
# chmod 755 /home/pi/.xinitrc# https://jackbarber.co.uk/blog/2017-02-16-hide-raspberry-pi-mouse-cursor-in-raspbian-kiosk
# Install Unclutter
sudo apt-get install -y unclutter# Edit LXDE Autostart Script, Turn the Cursor Off
nano ~/.config/lxsession/LXDE-pi/autostart
# add this line to the autostart script:
#@unclutter -idle 0# Reboot Raspberry Pi
sudo reboot
```