Anleitungen erstellt und Bildrate einstellbar

This commit is contained in:
2026-05-25 17:09:31 +02:00
parent 3207b58772
commit 023017d1fb
10 changed files with 663 additions and 36 deletions
@@ -11,6 +11,7 @@ import os
import socketserver
import threading
import time
import urllib.parse
import urllib.request
DELAY_FILE = '/tmp/exomy_delay.txt'
@@ -93,8 +94,11 @@ class ReusableTCPServer(socketserver.ThreadingTCPServer):
class Handler(http.server.BaseHTTPRequestHandler):
def normalized_path(self):
return urllib.parse.urlsplit(self.path).path
def do_GET(self):
if self.path != '/stream.mjpg':
if self.normalized_path() != '/stream.mjpg':
self.send_error(404)
return
self.send_response(200)