tarina

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

commit 249230b18b541e06e3246d13d5090c84fb4e5fff
parent 0880c723babd7bbcd8c3758fad325b5cc6701afa
Author: rbckman <robinbackman@gmail.com>
Date:   Mon, 26 Nov 2018 08:41:56 +0200

cleaning up

Diffstat:
Mtarina.py | 16+---------------
1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -80,20 +80,6 @@ def loadsettings(filmfolder, filmname): #--------------Write the menu layer to dispmanx-------------- -def writemenu_old(menu,settings,selected,header): - menudone = '' - menudone += str(selected).zfill(3) - menudone += str(len(header)).zfill(3) + header - for i, s in zip(menu, settings): - menudone += str(len(i) + len(s)).zfill(3) - menudone += i + s - spaces = len(menudone) - 500 - menudone += spaces * ' ' - menudone += 'EOF' - f = open('/dev/shm/interface', 'w') - f.write(menudone) - f.close() - def writemenu(menu,settings,selected,header): menudone = '' menudone += str(selected) + '\n' @@ -1715,7 +1701,7 @@ def main(): settings = filmname, str(scene), str(shot), str(take), rectime, camerashutter, cameraiso, camerared, camerablue, str(camera.brightness), str(camera.contrast), str(camera.saturation), str(flip), str(beeps), str(reclenght), str(miclevel), str(headphoneslevel), diskleft + ' ' + delayerr, '', '', lens, serverstate, wifistate, '', '' writemenu(menu,settings,selected,'') #Rerender menu five times to be able to se picamera settings change - if rerendermenu < 10000: + if rerendermenu < 100000: rerendermenu = rerendermenu + 1 rendermenu = True else: