forked from TillRepo/IrSender
setup working
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
apiout.log
|
||||||
+53
@@ -273,3 +273,56 @@ ConnectionResetError: [Errno 104] Connection reset by peer
|
|||||||
----------------------------------------
|
----------------------------------------
|
||||||
Listening on http://0.0.0.0:8080
|
Listening on http://0.0.0.0:8080
|
||||||
Config: commands.json
|
Config: commands.json
|
||||||
|
nohup: Eingabe wird ignoriert
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "/home/till/IrSender2/script-api.py", line 497, in <module>
|
||||||
|
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 <module>
|
||||||
|
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 <module>
|
||||||
|
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 -
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"host": "0.0.0.0",
|
"host": "0.0.0.0",
|
||||||
"port": 8080,
|
"port": 8082,
|
||||||
"max_body_bytes": 65536,
|
"max_body_bytes": 65536,
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ def load_config():
|
|||||||
cfg = json.load(f)
|
cfg = json.load(f)
|
||||||
|
|
||||||
cfg.setdefault("host", "0.0.0.0")
|
cfg.setdefault("host", "0.0.0.0")
|
||||||
cfg.setdefault("port", 8080)
|
cfg.setdefault("port", 8082)
|
||||||
cfg.setdefault("max_body_bytes", 65536)
|
cfg.setdefault("max_body_bytes", 65536)
|
||||||
cfg.setdefault("commands", {})
|
cfg.setdefault("commands", {})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user