Git Product home page Git Product logo

cncjs-pendant-lcd's Introduction

cncjs-pendant-lcd

CNCjs Web Kiosk Display on Raspberry Pi 320 X 480 TFT LCD Touch Display

Creates a web kiosk for CNCjs Tiny Web

Hardware Options:

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/.bashrc


cat > /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 device

chromium-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

cncjs-pendant-lcd's People

Contributors

austinsaintaubin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.