gonzopi

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

commit b97170e2e4b5ad469392fe9549cdf69663b63ef3
parent 178e4fa57484c5a471bc17685f23caf5f5461c58
Author: rob <rob@tarina.org>
Date:   Fri, 24 May 2024 13:43:47 +0100

choose camera from browser app

Diffstat:
Mgonzopi.py | 4++++
Msrv/gonzopiserver.py | 2+-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gonzopi.py b/gonzopi.py @@ -1242,6 +1242,10 @@ def main(): else: pressed = 'record' print('exhausted from all beepings') + elif 'CAMERA:' in pressed: + newselected_maybe=int(pressed.split(':')[1]) + if len(cameras) > newselected_maybe: + newselected=newselected_maybe if pressed == 'record' and recordwithports==False or pressed == 'record_now' or pressed == 'retake_now' or pressed == 'retake' and recordwithports==False or reclenght != 0 and t > reclenght: overlay = removeimage(camera, overlay) if recording == False and recordable == True or recording == False and pressed == 'record_now' or recording == False and pressed == 'retake_now': diff --git a/srv/gonzopiserver.py b/srv/gonzopiserver.py @@ -249,7 +249,7 @@ class index: pingip+=1 pingtocamera(network[:-3]+str(pingip),port,'PING') elif i.func == 'record': - sendtocamera(ip,port,'REC') + sendtocamera(ip,port,'RECORD') elif i.func == 'retake': print('retake') elif i.func == 'up':