Skip to content

Commit

Permalink
Add user we execution of eyesy_norns service
Browse files Browse the repository at this point in the history
  • Loading branch information
Lcchy committed Nov 20, 2020
1 parent 0a81b6f commit a26141b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions engines/python/sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ def recv() :
else:
# get audio from alsa
l,data = inp.read()
ldata = audioop.tomono(data, 2, 1, 0)
rdata = audioop.tomono(data, 2, 0, 1)
if l > 0:
ldata = audioop.tomono(data, 2, 1, 0)
rdata = audioop.tomono(data, 2, 0, 1)
peak = 0
# try :
for i in range(0,100) :
Expand Down
1 change: 0 additions & 1 deletion run_norns.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#/bin/bash
echo starting Eyesy
cd ~/sidekick/patches/Eyesy

# make sure the log file exists
touch /tmp/video.log
Expand Down
3 changes: 2 additions & 1 deletion systemd/eyesy_norns-python.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[Unit]
Description=Python Pygame Video Engine

[Service]
[Service]
User=we
Type=simple
WorkingDirectory=/home/we/sidekick/patches/Eyesy/engines/python
ExecStart=nohup python -u main.py -aout norns
Expand Down

0 comments on commit a26141b

Please sign in to comment.