Skip to content

Latest commit

 

History

History
33 lines (31 loc) · 1.5 KB

README.md

File metadata and controls

33 lines (31 loc) · 1.5 KB

ttleagueterminal

This project will run on a battery powered device (RaspberryPi Zero W) to be able to send game points to a running node.js app acting as server

Dependencies

Some of these packages and system tools are already included in the full raspian distrobution, but i'm always using the lite images

  • Git
    • Install via sudo apt-get install git
  • Python-Dev
    • Install via sudo apt-get install python-dev
  • Python-Pip
    • Install via sudo apt-get install python-pip
  • SPI-Py - https://github.com/lthiery/SPI-Py
    • Clone git repository: git clone https://github.com/lthiery/SPI-Py.git
    • Change into the directory cd SPI-Py
    • Install via sudo python setup.py install
    • Make sure you have SPI enabled in your /boot/config.txt
      • dtparam=spi=on
  • MFRC522 - https://github.com/mxgxw/MFRC522-python
    • Because i had to patch it, it is included in code
  • Python package requirements could be installed via sudo pip install -r requirements.txt
    • socketIO-client
    • evdev
    • adafruit-charlcd

Config

  • Clone git repository to /home/pi
  • Install dependencies
  • Config backend and LCD
    • See options in file config.default.json (needs to be edited and saved as config.json)
    • LCD connection needs to be configured (HD44780 controller compatible)
  • To boot into "app" add a line su - pi -c '/home/pi/ttleagueterminal/startup.sh &' into file /etc/rc.local before the exit instruction
    • this command changes into a shell for user pi and starts the terminal