diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f30629 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +apiout.log diff --git a/apiout.log b/apiout.log index a39055c..ee3d5a9 100644 --- a/apiout.log +++ b/apiout.log @@ -273,3 +273,56 @@ ConnectionResetError: [Errno 104] Connection reset by peer ---------------------------------------- Listening on http://0.0.0.0:8080 Config: commands.json +nohup: Eingabe wird ignoriert +Traceback (most recent call last): + File "/home/till/IrSender2/script-api.py", line 497, in + main() + File "/home/till/IrSender2/script-api.py", line 490, in main + server = ThreadingHTTPServer((CONFIG["host"], int(CONFIG["port"])), ApiHandler) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.11/socketserver.py", line 456, in __init__ + self.server_bind() + File "/usr/lib/python3.11/http/server.py", line 136, in server_bind + socketserver.TCPServer.server_bind(self) + File "/usr/lib/python3.11/socketserver.py", line 472, in server_bind + self.socket.bind(self.server_address) +OSError: [Errno 98] Address already in use +nohup: Eingabe wird ignoriert +Traceback (most recent call last): + File "/home/till/IrSender2/script-api.py", line 497, in + main() + File "/home/till/IrSender2/script-api.py", line 490, in main + server = ThreadingHTTPServer((CONFIG["host"], int(CONFIG["port"])), ApiHandler) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.11/socketserver.py", line 456, in __init__ + self.server_bind() + File "/usr/lib/python3.11/http/server.py", line 136, in server_bind + socketserver.TCPServer.server_bind(self) + File "/usr/lib/python3.11/socketserver.py", line 472, in server_bind + self.socket.bind(self.server_address) +OSError: [Errno 98] Address already in use +nohup: Eingabe wird ignoriert +Traceback (most recent call last): + File "/home/till/IrSender2/script-api.py", line 497, in + main() + File "/home/till/IrSender2/script-api.py", line 490, in main + server = ThreadingHTTPServer((CONFIG["host"], int(CONFIG["port"])), ApiHandler) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.11/socketserver.py", line 456, in __init__ + self.server_bind() + File "/usr/lib/python3.11/http/server.py", line 136, in server_bind + socketserver.TCPServer.server_bind(self) + File "/usr/lib/python3.11/socketserver.py", line 472, in server_bind + self.socket.bind(self.server_address) +OSError: [Errno 98] Address already in use +nohup: Eingabe wird ignoriert +Listening on http://0.0.0.0:8082 +Config: commands.json +192.168.178.158 [23/Jun/2026 15:50:58] "GET / HTTP/1.1" 200 - +192.168.178.158 [23/Jun/2026 15:50:59] "GET /favicon.ico HTTP/1.1" 404 - +request_id=6ad99837-415a-436c-8dff-abedcf1375f6 command_id=mainLightOn command=['python3', 'ir_send.py', '/home/till/IrSender2/mainLightOn.json'] +192.168.178.158 [23/Jun/2026 15:51:22] "POST /web/run/mainLightOn HTTP/1.1" 200 - +192.168.178.158 [23/Jun/2026 15:52:38] "GET / HTTP/1.1" 200 - +request_id=2c8ba209-c128-4b52-91ef-4a711547b9dd command_id=mainLightOn command=['python3', 'ir_send.py', '/home/till/IrSender2/mainLightOn.json'] +192.168.178.158 [23/Jun/2026 15:52:44] "POST /web/run/mainLightOn HTTP/1.1" 200 - +192.168.178.158 [23/Jun/2026 15:52:55] "GET / HTTP/1.1" 200 - diff --git a/commands.json b/commands.json index 03916cd..29ac8d9 100644 --- a/commands.json +++ b/commands.json @@ -1,6 +1,6 @@ { "host": "0.0.0.0", - "port": 8080, + "port": 8082, "max_body_bytes": 65536, "commands": { diff --git a/script-api.py b/script-api.py index 02d9237..8582f64 100755 --- a/script-api.py +++ b/script-api.py @@ -20,7 +20,7 @@ def load_config(): cfg = json.load(f) cfg.setdefault("host", "0.0.0.0") - cfg.setdefault("port", 8080) + cfg.setdefault("port", 8082) cfg.setdefault("max_body_bytes", 65536) cfg.setdefault("commands", {})