commit ebdd43a1f50063e3e1aa478bb971406c8a5613ed
parent 5fb232a645749000f8a44ad082cfe5cc50a6ba4e
Author: rbckman <rob@tarina.org>
Date: Tue, 15 Oct 2024 17:21:42 +0100
show vumetermessage on browser app
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/srv/gonzopiserver.py b/srv/gonzopiserver.py
@@ -49,6 +49,7 @@ def usbfilmfolder():
home = os.path.expanduser('~')
menuold = []
+vumeterold = ''
#configfile = home + '/.gonzopi/config.ini'
#configdir = os.path.dirname(configfile)
#config = configparser.ConfigParser()
@@ -370,7 +371,7 @@ class films:
class api:
def GET(self):
- global menuold
+ global menuold, vumeterold
i=web.input(func=None,selected=None)
if i.func == 'record':
sendtocamera(ip,port,'RECORD')
@@ -420,8 +421,9 @@ class api:
menu=interface.readlines()
vumeter=open('/dev/shm/vumeter','r')
vumetermessage=vumeter.readlines()[0].rstrip('\n')
- if menu != menuold:
+ if menu != menuold or vumetermessage != vumeterold:
menuold=menu
+ vumeterold=vumetermessage
print(menu)
menudone=''
p=0