inital commit
This commit is contained in:
29
templates/channels.json.template
Normal file
29
templates/channels.json.template
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"1": {
|
||||
"number": 1,
|
||||
"name": "Sample Video 1",
|
||||
"path": "/home/pi/Videos/sample1.mp4",
|
||||
"description": "First sample video",
|
||||
"category": "general",
|
||||
"enabled": true,
|
||||
"priority": 0
|
||||
},
|
||||
"2": {
|
||||
"number": 2,
|
||||
"name": "Sample Video 2",
|
||||
"path": "/home/pi/Videos/sample2.mp4",
|
||||
"description": "Second sample video",
|
||||
"category": "general",
|
||||
"enabled": true,
|
||||
"priority": 0
|
||||
},
|
||||
"3": {
|
||||
"number": 3,
|
||||
"name": "Sample Video 3",
|
||||
"path": "/home/pi/Videos/sample3.mp4",
|
||||
"description": "Third sample video",
|
||||
"category": "general",
|
||||
"enabled": true,
|
||||
"priority": 0
|
||||
}
|
||||
}
|
||||
34
templates/config.json.template
Normal file
34
templates/config.json.template
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"video_folder": "/home/pi/Videos",
|
||||
"supported_formats": [".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".webm", ".m4v"],
|
||||
"default_channel": 1,
|
||||
"auto_play": true,
|
||||
"fullscreen": true,
|
||||
"window_width": 1920,
|
||||
"window_height": 1080,
|
||||
"hide_cursor": true,
|
||||
"audio_device": "default",
|
||||
"volume": 50,
|
||||
"mute_on_start": false,
|
||||
"channel_timeout": 3.0,
|
||||
"multi_digit_timeout": 1.0,
|
||||
"channel_display_timeout": 2.0,
|
||||
"channel_assignment_method": "alphabetical",
|
||||
"ir_pin": 18,
|
||||
"ir_protocols": ["NEC", "RC5"],
|
||||
"ir_repeat_delay": 0.1,
|
||||
"vlc_options": [
|
||||
"--fullscreen",
|
||||
"--no-video-title-show",
|
||||
"--no-audio-display",
|
||||
"--no-osd",
|
||||
"--quiet"
|
||||
],
|
||||
"log_level": "INFO",
|
||||
"log_file": "/var/log/video_player.log",
|
||||
"log_max_size": 10485760,
|
||||
"log_backup_count": 5,
|
||||
"check_interval": 1.0,
|
||||
"restart_on_crash": true,
|
||||
"max_restart_attempts": 3
|
||||
}
|
||||
212
templates/ir_mapping.json.template
Normal file
212
templates/ir_mapping.json.template
Normal file
@@ -0,0 +1,212 @@
|
||||
{
|
||||
"NEC_00FF_00FF": {
|
||||
"ir_code": "NEC_00FF_00FF",
|
||||
"command": "power_toggle",
|
||||
"description": "Power button",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_807F": {
|
||||
"ir_code": "NEC_00FF_807F",
|
||||
"command": "channel_0",
|
||||
"description": "Channel 0",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_40BF": {
|
||||
"ir_code": "NEC_00FF_40BF",
|
||||
"command": "channel_1",
|
||||
"description": "Channel 1",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_C03F": {
|
||||
"ir_code": "NEC_00FF_C03F",
|
||||
"command": "channel_2",
|
||||
"description": "Channel 2",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_20DF": {
|
||||
"ir_code": "NEC_00FF_20DF",
|
||||
"command": "channel_3",
|
||||
"description": "Channel 3",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_A05F": {
|
||||
"ir_code": "NEC_00FF_A05F",
|
||||
"command": "channel_4",
|
||||
"description": "Channel 4",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_609F": {
|
||||
"ir_code": "NEC_00FF_609F",
|
||||
"command": "channel_5",
|
||||
"description": "Channel 5",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_E01F": {
|
||||
"ir_code": "NEC_00FF_E01F",
|
||||
"command": "channel_6",
|
||||
"description": "Channel 6",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_10EF": {
|
||||
"ir_code": "NEC_00FF_10EF",
|
||||
"command": "channel_7",
|
||||
"description": "Channel 7",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_906F": {
|
||||
"ir_code": "NEC_00FF_906F",
|
||||
"command": "channel_8",
|
||||
"description": "Channel 8",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_50AF": {
|
||||
"ir_code": "NEC_00FF_50AF",
|
||||
"command": "channel_9",
|
||||
"description": "Channel 9",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_00FF": {
|
||||
"ir_code": "NEC_00FF_00FF",
|
||||
"command": "play_pause",
|
||||
"description": "Play/Pause",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_807F": {
|
||||
"ir_code": "NEC_00FF_807F",
|
||||
"command": "stop",
|
||||
"description": "Stop",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_40BF": {
|
||||
"ir_code": "NEC_00FF_40BF",
|
||||
"command": "next_channel",
|
||||
"description": "Next channel",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_C03F": {
|
||||
"ir_code": "NEC_00FF_C03F",
|
||||
"command": "prev_channel",
|
||||
"description": "Previous channel",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_20DF": {
|
||||
"ir_code": "NEC_00FF_20DF",
|
||||
"command": "volume_up",
|
||||
"description": "Volume up",
|
||||
"repeatable": true
|
||||
},
|
||||
"NEC_00FF_A05F": {
|
||||
"ir_code": "NEC_00FF_A05F",
|
||||
"command": "volume_down",
|
||||
"description": "Volume down",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_0C_0": {
|
||||
"ir_code": "RC5_00_0C_0",
|
||||
"command": "power_toggle",
|
||||
"description": "Power button (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_00_0": {
|
||||
"ir_code": "RC5_00_00_0",
|
||||
"command": "channel_0",
|
||||
"description": "Channel 0 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_01_0": {
|
||||
"ir_code": "RC5_00_01_0",
|
||||
"command": "channel_1",
|
||||
"description": "Channel 1 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_02_0": {
|
||||
"ir_code": "RC5_00_02_0",
|
||||
"command": "channel_2",
|
||||
"description": "Channel 2 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_03_0": {
|
||||
"ir_code": "RC5_00_03_0",
|
||||
"command": "channel_3",
|
||||
"description": "Channel 3 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_04_0": {
|
||||
"ir_code": "RC5_00_04_0",
|
||||
"command": "channel_4",
|
||||
"description": "Channel 4 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_05_0": {
|
||||
"ir_code": "RC5_00_05_0",
|
||||
"command": "channel_5",
|
||||
"description": "Channel 5 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_06_0": {
|
||||
"ir_code": "RC5_00_06_0",
|
||||
"command": "channel_6",
|
||||
"description": "Channel 6 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_07_0": {
|
||||
"ir_code": "RC5_00_07_0",
|
||||
"command": "channel_7",
|
||||
"description": "Channel 7 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_08_0": {
|
||||
"ir_code": "RC5_00_08_0",
|
||||
"command": "channel_8",
|
||||
"description": "Channel 8 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_09_0": {
|
||||
"ir_code": "RC5_00_09_0",
|
||||
"command": "channel_9",
|
||||
"description": "Channel 9 (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_35_0": {
|
||||
"ir_code": "RC5_00_35_0",
|
||||
"command": "play_pause",
|
||||
"description": "Play/Pause (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_36_0": {
|
||||
"ir_code": "RC5_00_36_0",
|
||||
"command": "stop",
|
||||
"description": "Stop (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_32_0": {
|
||||
"ir_code": "RC5_00_32_0",
|
||||
"command": "next_channel",
|
||||
"description": "Next channel (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_33_0": {
|
||||
"ir_code": "RC5_00_33_0",
|
||||
"command": "prev_channel",
|
||||
"description": "Previous channel (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_10_0": {
|
||||
"ir_code": "RC5_00_10_0",
|
||||
"command": "volume_up",
|
||||
"description": "Volume up (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"RC5_00_11_0": {
|
||||
"ir_code": "RC5_00_11_0",
|
||||
"command": "volume_down",
|
||||
"description": "Volume down (RC5)",
|
||||
"repeatable": true
|
||||
},
|
||||
"REPEAT": {
|
||||
"ir_code": "REPEAT",
|
||||
"command": "repeat_last",
|
||||
"description": "Repeat last command",
|
||||
"repeatable": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user