Skip to content

Commit

Permalink
Merge pull request #38 from chillibasket/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
chillibasket authored Jun 9, 2024
2 parents 95d4019 + 2597227 commit 378573d
Show file tree
Hide file tree
Showing 81 changed files with 5,891 additions and 12,528 deletions.
11 changes: 11 additions & 0 deletions .gitignore
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
305 changes: 69 additions & 236 deletions README.md

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions raspi-setup.sh
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"
2 changes: 1 addition & 1 deletion wall-e/display.ino
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ void drawSun() {
u8g2.drawLine(22,60,25,63);
}

#endif /* OLED */
#endif /* OLED */
2 changes: 1 addition & 1 deletion wall-e/wall-e.ino
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void setup() {
displayLevel(100);
#endif

Serial.println(F("Sartup complete; entering main loop"));
Serial.println(F("Startup complete; entering main loop"));
}


Expand Down
Loading

0 comments on commit 378573d

Please sign in to comment.