Skip to content

Commit

Permalink
pin python dep for selenium compat; remove unused mouse and leds jobs…
Browse files Browse the repository at this point in the history
…; run usercode from /home/pi
  • Loading branch information
dbieber committed May 19, 2024
1 parent c54e102 commit 18f942a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ jobs:
# Add commands to the bash history for debugging purposes
cat << EOF >> /home/pi/.bash_history
sudo reboot now
sudo systemctl daemon-reload
sudo systemctl status uap0.service
sudo systemctl status dnsmasq.service
Expand All @@ -222,7 +223,9 @@ jobs:
cat /etc/sysctl.conf
cat /etc/dhcpcd.conf
cat /etc/dnsmasq.conf
cat /etc/wpa_supplicant/wpa_supplicant.conf
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
nano /home/pi/code/github/dbieber/GoNoteGo/gonotego/settings/secure_settings.py
/home/pi/code/github/dbieber/GoNoteGo/env/bin/python
/home/pi/code/github/dbieber/GoNoteGo/env/bin/supervisorctl -u go -p notego status
/home/pi/code/github/dbieber/GoNoteGo/env/bin/supervisorctl -u go -p notego restart all
Expand Down
19 changes: 4 additions & 15 deletions gonotego/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,10 @@ user=root

[program:command-center-GoNoteGo]
environment=XDG_RUNTIME_DIR="/run/user/1000"
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python gonotego/command_center/runner.py
directory=/home/pi/code/github/dbieber/GoNoteGo
user=pi

[program:leds-GoNoteGo]
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python gonotego/leds/runner.py
directory=/home/pi/code/github/dbieber/GoNoteGo
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python /home/pi/code/github/dbieber/GoNoteGo/gonotego/command_center/runner.py
directory=/home/pi
user=pi

[program:mouse-GoNoteGo]
environment=DISPLAY=":0.0",XAUTHORITY="/home/pi/.Xauthority"
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python gonotego/mouse/runner.py
directory=/home/pi/code/github/dbieber/GoNoteGo
user=root

[program:text-listener-GoNoteGo]
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python gonotego/text/runner.py
directory=/home/pi/code/github/dbieber/GoNoteGo
Expand All @@ -56,6 +45,6 @@ directory=/home/pi/code/github/dbieber/GoNoteGo
user=pi

[program:uploader-GoNoteGo]
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python gonotego/uploader/runner.py
directory=/home/pi/code/github/dbieber/GoNoteGo
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python /home/pi/code/github/dbieber/GoNoteGo/gonotego/uploader/runner.py
directory=/home/pi
user=pi
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ dependencies = [
'soundfile',
'supervisor',
'twython',
"urllib3==1.26.16", # For compatibility with selenium==3.141.0
]

[project.optional-dependencies]
Expand Down

0 comments on commit 18f942a

Please sign in to comment.