-
Notifications
You must be signed in to change notification settings - Fork 0
Manual Installation
git clone --recursive https://github.com/sflems/led-board-manager.git
cd led-board-manager
touch .secret.txt
chmod g+w .secret.txtsu
mkdir /etc/supervisor && cp /home/pi/led-board-manager/scoreboard/static/supervisor/supervisord.conf /etc/supervisor/supervisord.conf
chmod 644 /etc/supervisor/supervisord.conf
cp /home/pi/led-board-manager/scoreboard/static/supervisor/supervisord.service /etc/systemd/system/supervisord.service
chmod 644 /etc/systemd/system/supervisord.service
python3 -m pip install supervisor
systemctl unmask supervisord
systemctl enable supervisord
su pi
mv sample.supervisor-daemon.conf supervisor-daemon.confIf you have the MLB Board installed (in default location):
cp ~/led-board-manager/scoreboard/static/schema/mlb.config.schema.json ~/mlb-led-scoreboard/config.schema.jsonIf you have the NFL Board installed (in default location):
cp ~/led-board-manager/scoreboard/static/schema/nfl.config.schema.json ~/nfl-led-scoreboard/config.schema.jsonFollow either command with:
sudo supervisorctl reread && sudo supervisorctl reloadSample configurations can be found in the nhl-led-scoreboard-img project, by @falkyre.
sudo apt install python3-venv
python3 -m venv env
source env/bin/activateYour shell should have the (env) prepended if active:
(env) pi@raspberrypi:~/led-board-manager $ To exit the (env) at any time after installing and running the test step, enter the command deactivate in the terminal.
pip3 install -r requirements.txtOnce complete, we'll make, migrate and fill our sqlite3 database with the supplied teams data in the fixtures folder:
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py loaddata teams.json
python3 manage.py testSee also: Auto-Starting the Server
This project is still in development. Development of the NHL LED Scoreboard is similarly evolving. They both rely on the external NHL API which, at any time may be inaccessible or updated. This app does modify your configuration files. While these files are cloned during installation, please backup any prized configurations on your own accord. Remote access and network security are YOUR responsibility.