gonzopi

git clone https://git.tarina.org/gonzopi
Log | Files | Refs | README | LICENSE

commit 40c641885e24626381f3a4d544e27051178eb30e
parent 55441006357de2b5f86ba2c6d664f83501996a38
Author: rbckman <rob@tarina.org>
Date:   Sat, 13 Jul 2024 20:01:59 +0100

make menu in pygame for raspi4 support and for better future dev

Diffstat:
Mgonzopi.py | 3++-
Mgui/gonzopi_menu.py | 0
Msrv/templates/filmpage.html | 4+++-
Mstartinterface.sh | 4+++-
4 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gonzopi.py b/gonzopi.py @@ -61,7 +61,7 @@ while probei2c < 3: bus = smbus.SMBus(3) # Rev 2 Pi uses 1 else: os.system('sudo modprobe i2c-dev') - bus = smbus.SMBus(11) # Rev 2 Pi uses 1 + bus = smbus.SMBus(22) # Rev 2 Pi uses 1 DEVICE = 0x20 # Device address (A0-A2) IODIRB = 0x0d # Pin pullups B-side IODIRA = 0x00 # Pin pullups A-side 0x0c @@ -5208,6 +5208,7 @@ def stopinterface(camera): os.system('pkill arecord') os.system('pkill startinterface') os.system('pkill tarinagui') + os.system('sudo pkill -9 -f gonzopi_menu.py') #run_command('sudo systemctl stop apache2') return camera diff --git a/gui/gonzopi_menu.py b/gui/gonzopi_menu.py diff --git a/srv/templates/filmpage.html b/srv/templates/filmpage.html @@ -37,7 +37,9 @@ $else: $if film == '': <h1>FILMS</h1> $for i in films: - <a href="$i"><h2>$i</h2></a> + <a href="$i"><h1>$i</h1></a> + $ thumbnail_url = '/'+filmfolder + i + '/scene' + str(1).zfill(3) + '/shot' + str(1).zfill(3) + '/take' + str(1).zfill(3) + '.jpeg' + <a href="$i"><img style="vertical-align:middle; width:80%; max-width:500px;" src="$thumbnail_url?$randhash"/></a><br> <br> $ t=0 diff --git a/startinterface.sh b/startinterface.sh @@ -1,5 +1,7 @@ #!/bin/bash echo "Have fun!" > /dev/shm/vumeter echo "For the lulz" > /dev/shm/interface +#cd ./gui +#./tarinagui.bin cd ./gui -./tarinagui.bin +sudo python3 gonzopi_menu.py