Installation Instructions
=========================

1. Place these files in the folder /home/pi/control and verify the script startup.sh can be executed by root

pi@ENG-HW-RBOX-HV:~/control $ ll
total 40K
drwxr-xr-x  6 pi   pi 4.0K Oct  6 15:42 ./
drwxr-xr-x 17 pi   pi 4.0K Oct  5 19:06 ../
drwxr-xr-x  2 pi   pi 4.0K Oct  6 08:49 backup/
drwxr-xr-x  3 pi   pi 4.0K Oct  6 08:48 include/
prw-r--r--  1 pi   pi    0 Oct  6 15:43 pwm_duty|
-rw-r--r--  1 pi   pi 1.6K Oct  6 15:43 README.txt
-rw-r--r--  1 pi   pi 5.8K Oct  6 10:04 server.py
-rwxrw-r--  1 root pi  755 Oct  6 08:39 startup.sh*
drwxr-xr-x  5 pi   pi 4.0K Oct  6 08:59 static/
drwxr-xr-x  2 pi   pi 4.0K Oct  6 08:52 templates/


2. If not already present, create the FIFO with 'mkfifo pwm_duty'


3. Open the root crontab with 'sudo crontab -e' and add the following line:

@reboot /home/pi/control/startup.sh


4. With 'sudo nano /boot/config.txt', check that the following lines are present:

dtparam=i2c_arm=on
dtoverlay=pwm,pin=12,func=4


5. Set the following properties using 'sudo raspi-config':

- 1 System Options
  - S5 Boot / Auto Login
    - B4 Desktop Autologin

- 2 Display Options (possibly not needed, see step 5)
  - D4 Screen Blanking
    - No


6. With 'sudo nano /etc/xdg/lxsession/LXDE-pi/autostart', enter the following:

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash

@unclutter
@xset s off
@xset s noblank
@xset -dpms

@/usr/bin/chromium-browser --check-for-update-interval=31536000 --incognito --kiosk http://localhost:5000

