Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Fixed install.sh and updated requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
riffnshred committed Feb 23, 2024
1 parent 026b479 commit e3ac19a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
Empty file added config/.default/firstrun
Empty file.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ephem
fastjsonschema>=2.14.4
geocoder>=1.38.1
gpiozero==1.6.2
nhl-api-py
nhl-api-py>=2.4.0
noaa-sdk>=0.1.18
pyowm>=3.0.0
python-tsl2591==0.2.0
Expand Down
23 changes: 22 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo "$(tput setaf 6)Installing required dependencies. This may take some time (
sudo scripts/aptfile apt-requirements

#Install all pip3 requirements using the requirements.txt filer
sudo pip3 install -r requirements.txt
sudo pip3 install -U -r requirements.txt

# Pull submodule and ignore changes from script
git submodule update --init --recursive
Expand All @@ -32,6 +32,27 @@ sudo make install-python PYTHON="$(command -v python3)"

cd ../../../ || exit

# Blacklist the snd_bcm2835 sounds module
sudo tee /etc/modprobe.d/blacklist-rgbmatrix.conf <<TEXT1
## Make sure the sound module does not load as it causes issues with the timing for the rgb matrix library
blacklist snd_bcm2835
# The next time the loading of the module is attempted, the /bin/false
# will be executed instead. This will prevent the module from being
# loaded on-demand.
install snd_bcm_2835 /bin/false
TEXT1

# Unload the sound module
sudo modprobe -r snd_bcm2835

# Rebuild module dependacy
sudo depmod -a

sudo sed -i 's/$/ isolcpus=3/' /boot/cmdline.txt

git reset --hard
git fetch origin --prune
git pull
Expand Down

0 comments on commit e3ac19a

Please sign in to comment.