This commit is contained in:
2026-08-23 20:16:17 +02:00
parent 6efdd836a6
commit 0e8847a134
8 changed files with 18813 additions and 104 deletions
+166
View File
@@ -0,0 +1,166 @@
{
"carrier": 38000,
"repeat": 1,
"signal": [
{
"type": "mark",
"duration": 2664
},
{
"type": "space",
"duration": 895
},
{
"type": "mark",
"duration": 407
},
{
"type": "space",
"duration": 935
},
{
"type": "mark",
"duration": 404
},
{
"type": "space",
"duration": 487
},
{
"type": "mark",
"duration": 408
},
{
"type": "space",
"duration": 485
},
{
"type": "mark",
"duration": 406
},
{
"type": "space",
"duration": 921
},
{
"type": "mark",
"duration": 869
},
{
"type": "space",
"duration": 460
},
{
"type": "mark",
"duration": 406
},
{
"type": "space",
"duration": 486
},
{
"type": "mark",
"duration": 406
},
{
"type": "space",
"duration": 488
},
{
"type": "mark",
"duration": 405
},
{
"type": "space",
"duration": 488
},
{
"type": "mark",
"duration": 406
},
{
"type": "space",
"duration": 488
},
{
"type": "mark",
"duration": 881
},
{
"type": "space",
"duration": 908
},
{
"type": "mark",
"duration": 406
},
{
"type": "space",
"duration": 488
},
{
"type": "mark",
"duration": 405
},
{
"type": "space",
"duration": 466
},
{
"type": "mark",
"duration": 428
},
{
"type": "space",
"duration": 487
},
{
"type": "mark",
"duration": 406
},
{
"type": "space",
"duration": 466
},
{
"type": "mark",
"duration": 428
},
{
"type": "space",
"duration": 487
},
{
"type": "mark",
"duration": 862
},
{
"type": "space",
"duration": 489
},
{
"type": "mark",
"duration": 397
},
{
"type": "space",
"duration": 937
},
{
"type": "mark",
"duration": 405
},
{
"type": "space",
"duration": 462
},
{
"type": "mark",
"duration": 433
},
{
"type": "space",
"duration": 16405
}
]
}
-66
View File
@@ -1,66 +0,0 @@
{
"carrier": 38000,
"repeat": 1,
"signal": [
{ "type": "mark", "duration": 2666 },
{ "type": "space", "duration": 893 },
{ "type": "mark", "duration": 410 },
{ "type": "space", "duration": 934 },
{ "type": "mark", "duration": 405 },
{ "type": "space", "duration": 463 },
{ "type": "mark", "duration": 431 },
{ "type": "space", "duration": 485 },
{ "type": "mark", "duration": 406 },
{ "type": "space", "duration": 921 },
{ "type": "mark", "duration": 868 },
{ "type": "space", "duration": 458 },
{ "type": "mark", "duration": 410 },
{ "type": "space", "duration": 484 },
{ "type": "mark", "duration": 407 },
{ "type": "space", "duration": 487 },
{ "type": "mark", "duration": 406 },
{ "type": "space", "duration": 486 },
{ "type": "mark", "duration": 409 },
{ "type": "space", "duration": 485 },
{ "type": "mark", "duration": 883 },
{ "type": "space", "duration": 905 },
{ "type": "mark", "duration": 408 },
{ "type": "space", "duration": 484 },
{ "type": "mark", "duration": 409 },
{ "type": "space", "duration": 486 },
{ "type": "mark", "duration": 409 },
{ "type": "space", "duration": 484 },
{ "type": "mark", "duration": 408 },
{ "type": "space", "duration": 486 },
{ "type": "mark", "duration": 409 },
{ "type": "space", "duration": 486 },
{ "type": "mark", "duration": 883 },
{ "type": "space", "duration": 458 },
{ "type": "mark", "duration": 408 },
{ "type": "space", "duration": 932 },
{ "type": "mark", "duration": 406 },
{ "type": "space", "duration": 488 },
{ "type": "mark", "duration": 406 },
{ "type": "space", "duration": 21217 }
]
}
+158
View File
@@ -0,0 +1,158 @@
{
"carrier": 38000,
"repeat": 1,
"signal": [
{
"type": "mark",
"duration": 2663
},
{
"type": "space",
"duration": 892
},
{
"type": "mark",
"duration": 408
},
{
"type": "space",
"duration": 931
},
{
"type": "mark",
"duration": 409
},
{
"type": "space",
"duration": 485
},
{
"type": "mark",
"duration": 408
},
{
"type": "space",
"duration": 485
},
{
"type": "mark",
"duration": 416
},
{
"type": "space",
"duration": 912
},
{
"type": "mark",
"duration": 890
},
{
"type": "space",
"duration": 439
},
{
"type": "mark",
"duration": 409
},
{
"type": "space",
"duration": 484
},
{
"type": "mark",
"duration": 408
},
{
"type": "space",
"duration": 488
},
{
"type": "mark",
"duration": 405
},
{
"type": "space",
"duration": 487
},
{
"type": "mark",
"duration": 407
},
{
"type": "space",
"duration": 486
},
{
"type": "mark",
"duration": 882
},
{
"type": "space",
"duration": 908
},
{
"type": "mark",
"duration": 405
},
{
"type": "space",
"duration": 486
},
{
"type": "mark",
"duration": 407
},
{
"type": "space",
"duration": 487
},
{
"type": "mark",
"duration": 407
},
{
"type": "space",
"duration": 485
},
{
"type": "mark",
"duration": 407
},
{
"type": "space",
"duration": 488
},
{
"type": "mark",
"duration": 861
},
{
"type": "space",
"duration": 928
},
{
"type": "mark",
"duration": 407
},
{
"type": "space",
"duration": 484
},
{
"type": "mark",
"duration": 408
},
{
"type": "space",
"duration": 494
},
{
"type": "mark",
"duration": 891
},
{
"type": "space",
"duration": 15941
}
]
}
+158
View File
@@ -0,0 +1,158 @@
{
"carrier": 38000,
"repeat": 1,
"signal": [
{
"type": "mark",
"duration": 2664
},
{
"type": "space",
"duration": 881
},
{
"type": "mark",
"duration": 417
},
{
"type": "space",
"duration": 911
},
{
"type": "mark",
"duration": 431
},
{
"type": "space",
"duration": 458
},
{
"type": "mark",
"duration": 435
},
{
"type": "space",
"duration": 461
},
{
"type": "mark",
"duration": 1333
},
{
"type": "space",
"duration": 1311
},
{
"type": "mark",
"duration": 429
},
{
"type": "space",
"duration": 461
},
{
"type": "mark",
"duration": 432
},
{
"type": "space",
"duration": 463
},
{
"type": "mark",
"duration": 430
},
{
"type": "space",
"duration": 463
},
{
"type": "mark",
"duration": 435
},
{
"type": "space",
"duration": 459
},
{
"type": "mark",
"duration": 904
},
{
"type": "space",
"duration": 881
},
{
"type": "mark",
"duration": 433
},
{
"type": "space",
"duration": 461
},
{
"type": "mark",
"duration": 435
},
{
"type": "space",
"duration": 459
},
{
"type": "mark",
"duration": 432
},
{
"type": "space",
"duration": 464
},
{
"type": "mark",
"duration": 433
},
{
"type": "space",
"duration": 458
},
{
"type": "mark",
"duration": 888
},
{
"type": "space",
"duration": 911
},
{
"type": "mark",
"duration": 427
},
{
"type": "space",
"duration": 458
},
{
"type": "mark",
"duration": 435
},
{
"type": "space",
"duration": 458
},
{
"type": "mark",
"duration": 434
},
{
"type": "space",
"duration": 461
},
{
"type": "mark",
"duration": 433
},
{
"type": "space",
"duration": 22099
}
]
}
+18067
View File
File diff suppressed because it is too large Load Diff
Regular → Executable
+1 -1
View File
@@ -17,7 +17,7 @@ from pathlib import Path
# === Anpassbare Pfade ===
DEVICE = "/dev/lirc1"
IR_SENDER_DIR = Path("/home/till/IrSender2")
CONFIG_FILE = IR_SENDER_DIR / "config.json" # ggf. anpassen
CONFIG_FILE = IR_SENDER_DIR / "commands.json" # ggf. anpassen
IR_SEND_SCRIPT = IR_SENDER_DIR / "ir_send.py"
CARRIER = 38000
REPEAT = 1
+33 -35
View File
@@ -2,11 +2,8 @@
"host": "0.0.0.0",
"port": 8082,
"max_body_bytes": 65536,
"api_key": "change-this-global-api-key",
"commands": {
"mainLightOn": {
"description": "Send IR command mainLightOn.json",
"web_title": "Mainlight On",
@@ -18,7 +15,6 @@
"/home/till/IrSender2/mainLightOn.json"
]
},
"mainLightOff": {
"description": "Send IR command mainLightOff.json",
"web_title": "Mainlight Off",
@@ -30,7 +26,6 @@
"/home/till/IrSender2/mainLightOff.json"
]
},
"MainLightDark": {
"description": "Send IR command MainLightDark",
"web_title": "Mainlight Dark",
@@ -42,7 +37,6 @@
"/home/till/IrSender2/mainLightDark.json"
]
},
"MainLightBright": {
"description": "Send IR command MainLightBright",
"web_title": "Mainlight Bright",
@@ -54,8 +48,6 @@
"/home/till/IrSender2/mainLightBright.json"
]
},
"hektagonSwitch": {
"description": "Send IR command HektagonOn",
"web_title": "Hektagon On/Off Switch",
@@ -67,8 +59,6 @@
"/home/till/IrSender2/hektagonOn.json"
]
},
"hektagonChangeColor": {
"description": "Send IR command hektagonChangeColor",
"web_title": "Hektagon Change Color",
@@ -80,8 +70,6 @@
"/home/till/IrSender2/hektagonChangeColor.json"
]
},
"hektagonRed": {
"description": "Send IR command hektagonRed",
"web_title": "Hektagon Red",
@@ -93,8 +81,6 @@
"/home/till/IrSender2/hektagonRed.json"
]
},
"hektagonBlue": {
"description": "Send IR command hektagonBlue",
"web_title": "Hektagon Blue",
@@ -106,8 +92,6 @@
"/home/till/IrSender2/hektagonBlue.json"
]
},
"hektagonGreen": {
"description": "Send IR command hektagonGreen",
"web_title": "Hektagon Green",
@@ -119,8 +103,6 @@
"/home/till/IrSender2/hektagonGreen.json"
]
},
"hektagonBrighter": {
"description": "Send IR command hektagonBrighter",
"web_title": "Hektagon Brighter",
@@ -132,8 +114,6 @@
"/home/till/IrSender2/hektagonBrighter.json"
]
},
"hektagonDarker": {
"description": "Send IR command hektagonDarker",
"web_title": "Hektagon Darker",
@@ -145,8 +125,6 @@
"/home/till/IrSender2/hektagonDarker.json"
]
},
"hektagonMusic1": {
"description": "Send IR command hektagonMusic1",
"web_title": "Hektagon Music 1",
@@ -158,8 +136,6 @@
"/home/till/IrSender2/hektagonMusic1.json"
]
},
"hektagonMusic2": {
"description": "Send IR command hektagonMusic2",
"web_title": "Hektagon Music 2",
@@ -171,8 +147,6 @@
"/home/till/IrSender2/hektagonMusic2.json"
]
},
"hektagonMusic3": {
"description": "Send IR command hektagonMusic3",
"web_title": "Hektagon Music 3",
@@ -184,8 +158,6 @@
"/home/till/IrSender2/hektagonMusic3.json"
]
},
"hektagonSpeed": {
"description": "Send IR command hektagonSpeed",
"web_title": "Hektagon Speed",
@@ -197,8 +169,6 @@
"/home/till/IrSender2/hektagonSpeed.json"
]
},
"hektagonAuto": {
"description": "Send IR command hektagonAuto",
"web_title": "Hektagon Auto",
@@ -210,8 +180,6 @@
"/home/till/IrSender2/hektagonAuto.json"
]
},
"hektagonMinusMode": {
"description": "Send IR command hektagonMinusMode",
"web_title": "Hektagon Minus Mode",
@@ -223,8 +191,6 @@
"/home/till/IrSender2/hektagonMinusMode.json"
]
},
"hektagonPlusmode": {
"description": "Send IR command hektagonPlusMode",
"web_title": "Hektagon Plus Mode",
@@ -235,7 +201,39 @@
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonPlusMode.json"
]
},
"RadioPower": {
"description": "Send IR command RadioPower.json",
"web_title": "Radio Power",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/RadioPower.json"
]
},
"RadioVolumeUp": {
"description": "Send IR command RadioVolumeUp.json",
"web_title": "Radio Volume Up",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/RadioVolumeUp.json"
]
},
"RadioVolumeDown": {
"description": "Send IR command RadioVolumeDown.json",
"web_title": "Radio Volume Down",
B "web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/RadioVolumeDown.json"
]
}
}
}
+228
View File
@@ -0,0 +1,228 @@
{
"host": "0.0.0.0",
"port": 8082,
"max_body_bytes": 65536,
"api_key": "change-this-global-api-key",
"commands": {
"mainLightOn": {
"description": "Send IR command mainLightOn.json",
"web_title": "Mainlight On",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/mainLightOn.json"
]
},
"mainLightOff": {
"description": "Send IR command mainLightOff.json",
"web_title": "Mainlight Off",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/mainLightOff.json"
]
},
"MainLightDark": {
"description": "Send IR command MainLightDark",
"web_title": "Mainlight Dark",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/mainLightDark.json"
]
},
"MainLightBright": {
"description": "Send IR command MainLightBright",
"web_title": "Mainlight Bright",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/mainLightBright.json"
]
},
"hektagonSwitch": {
"description": "Send IR command HektagonOn",
"web_title": "Hektagon On/Off Switch",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonOn.json"
]
},
"hektagonChangeColor": {
"description": "Send IR command hektagonChangeColor",
"web_title": "Hektagon Change Color",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonChangeColor.json"
]
},
"hektagonRed": {
"description": "Send IR command hektagonRed",
"web_title": "Hektagon Red",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonRed.json"
]
},
"hektagonBlue": {
"description": "Send IR command hektagonBlue",
"web_title": "Hektagon Blue",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonBlue.json"
]
},
"hektagonGreen": {
"description": "Send IR command hektagonGreen",
"web_title": "Hektagon Green",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonGreen.json"
]
},
"hektagonBrighter": {
"description": "Send IR command hektagonBrighter",
"web_title": "Hektagon Brighter",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonBrighter.json"
]
},
"hektagonDarker": {
"description": "Send IR command hektagonDarker",
"web_title": "Hektagon Darker",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonDarker.json"
]
},
"hektagonMusic1": {
"description": "Send IR command hektagonMusic1",
"web_title": "Hektagon Music 1",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonMusic1.json"
]
},
"hektagonMusic2": {
"description": "Send IR command hektagonMusic2",
"web_title": "Hektagon Music 2",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonMusic2.json"
]
},
"hektagonMusic3": {
"description": "Send IR command hektagonMusic3",
"web_title": "Hektagon Music 3",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonMusic3.json"
]
},
"hektagonSpeed": {
"description": "Send IR command hektagonSpeed",
"web_title": "Hektagon Speed",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonSpeed.json"
]
},
"hektagonAuto": {
"description": "Send IR command hektagonAuto",
"web_title": "Hektagon Auto",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonAuto.json"
]
},
"hektagonMinusMode": {
"description": "Send IR command hektagonMinusMode",
"web_title": "Hektagon Minus Mode",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonMinusMode.json"
]
},
"hektagonPlusmode": {
"description": "Send IR command hektagonPlusMode",
"web_title": "Hektagon Plus Mode",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/hektagonPlusMode.json"
]
},
"RadioPower": {
"description": "Send IR command RadioPower.json",
"web_title": "RadioPower",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/RadioPower.json"
]
},
"RadioVolumeUp": {
"description": "Send IR command RadioVolumeUp.json",
"web_title": "RadioVolumeUp",
"web_enabled": true,
"timeout_seconds": 10,
"command": [
"python3",
"/home/till/IrSender2/ir_send.py",
"/home/till/IrSender2/RadioVolumeUp.json"
]
}
}
}