-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from chillibasket/development
Development
- Loading branch information
Showing
81 changed files
with
5,891 additions
and
12,528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.__pycache__ | ||
__pycache__ | ||
.sublime.project | ||
.sublime-workspace | ||
.local_config.py | ||
web_interface/local_config.py | ||
web_interface/__pycache__/wsgi.cpython-311.pyc | ||
web_interface/__pycache__/web_interface.cpython-311.pyc | ||
walle-webinterface.sublime-workspace | ||
walle-webinterface.sublime-project | ||
__pycache__/wsgi.cpython-311.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# Update | ||
echo "--------------------------------------------" | ||
echo "Installing Command Line Tools" | ||
echo "--------------------------------------------" | ||
sudo apt-get update | ||
|
||
# Install text to speech tools | ||
sudo apt-get install -y espeak-ng | ||
sudo apt-get install -y rubberband-cli | ||
|
||
# Install python libraries | ||
echo " " | ||
echo "--------------------------------------------" | ||
echo "Installing Python Libraries" | ||
echo "--------------------------------------------" | ||
sudo apt-get install -y python3-pygame | ||
sudo apt-get install -y python3-serial | ||
sudo apt-get install -y python3-flask | ||
sudo apt-get install -y python3-picamera2 | ||
sudo apt-get install -y python3-waitress | ||
|
||
# Modify the service file directory path | ||
echo " " | ||
echo "--------------------------------------------" | ||
echo "Setting Automatic Start of Web Interface" | ||
echo "--------------------------------------------" | ||
sudo cp ./web_interface/walle.service /etc/systemd/system/walle.service | ||
BASEDIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
USERNAME="$( logname )" | ||
sudo sed -i -e 's\username\'"$USERNAME"'\g' /etc/systemd/system/walle.service | ||
sudo sed -i -e 's\/path-to-directory\'"$BASEDIR"'\g' /etc/systemd/system/walle.service | ||
echo "Created systemd service file" | ||
|
||
# Set up the service to start on boot | ||
sudo chmod 644 /etc/systemd/system/walle.service | ||
sudo systemctl daemon-reload | ||
sudo systemctl enable walle.service | ||
sudo systemctl start walle.service | ||
echo "Started the service" | ||
|
||
echo " " | ||
echo "Installation complete - please check the logs above to see if there were any errors" | ||
echo "To view the webserver on the Raspberry Pi: http://localhost:5000" | ||
echo "From other computers on the same WiFi, the webserver can be accessed at: $( hostname -I | awk '{print $1;}' ):5000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,4 +105,4 @@ void drawSun() { | |
u8g2.drawLine(22,60,25,63); | ||
} | ||
|
||
#endif /* OLED */ | ||
#endif /* OLED */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.