diff --git a/tkinter_app/resources/app_config.txt b/tkinter_app/resources/app_config.txt index 6814d33..f9416ae 100644 --- a/tkinter_app/resources/app_config.txt +++ b/tkinter_app/resources/app_config.txt @@ -1,10 +1,10 @@ { "screen_orientation": "Landscape", - "screen_name": "tv-terasa", + "screen_name": "tv-holba1", "quickconnect_key": "8887779", - "server_ip": "digi-signage.moto-adv.com", - "port": "8880", + "server_ip": "192.168.1.22", + "port": "80", "screen_w": "1920", "screen_h": "1080", - "playlist_version": 5 + "playlist_version": 0 } \ No newline at end of file diff --git a/tkinter_app/resources/log.txt b/tkinter_app/resources/log.txt index a2b40a6..6404c1d 100644 --- a/tkinter_app/resources/log.txt +++ b/tkinter_app/resources/log.txt @@ -1350,3 +1350,79 @@ 2025-08-22 12:14:45 - STARTED: wp2782770-1846651530.jpg [INFO] [SignageApp] Successfully displayed image: wp2782770-1846651530.jpg (Original: (3840, 2400), Screen: 1920x1018, Mode: fit, Offset: (146, 0)) [INFO] [SignageApp] Application exit requested +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] python_functions: Configuration loaded: server=digi-signage.moto-adv.com, host=tv-terasa, quick=8887779, port=8880 +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] python_functions: Starting load_local_playlist function. +[INFO] [SignageApp] python_functions: Local playlist loaded: {'playlist': [{'file_name': '1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg', 'url': 'static/resurse/1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg', 'duration': 20}, {'file_name': 'wp2782770-1846651530.jpg', 'url': 'static/resurse/wp2782770-1846651530.jpg', 'duration': 15}, {'file_name': 'SampleVideo_1280x720_1mb.mp4', 'url': 'static/resurse/SampleVideo_1280x720_1mb.mp4', 'duration': 5}], 'version': 5} +[INFO] [SignageApp] python_functions: Finished load_local_playlist function successfully. +[INFO] [SignageApp] Found fallback playlist with 3 items +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] Initializing with settings: server=digi-signage.moto-adv.com, host=tv-terasa, port=8880 +[INFO] [SignageApp] Attempting to connect to server... +[INFO] [SignageApp] Fetching playlist from URL: http://digi-signage.moto-adv.com:8880/api/playlists with params: {'hostname': 'tv-terasa', 'quickconnect_code': '8887779'} +[ERROR] [SignageApp] Failed to fetch playlist. Status Code: 522 +[WARNING] [SignageApp] Server returned empty playlist, falling back to local playlist +[INFO] [SignageApp] Loaded fallback playlist with 3 items +[INFO] [SignageApp] Playing media: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg from /home/pi/Desktop/signage-player/tkinter_app/src/static/resurse/1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg +2025-08-22 13:13:56 - STARTED: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg +[INFO] [SignageApp] Successfully displayed image: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg (Original: (1600, 1000), Screen: 1920x1080, Mode: fit, Offset: (96, 0)) +[INFO] [SignageApp] Starting Simple Tkinter Media Player +[INFO] [SignageApp] Media paused +[INFO] [SignageApp] Loading configuration in enhanced settings window +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] Config loaded: {'screen_orientation': 'Landscape', 'screen_name': 'tv-terasa', 'quickconnect_key': '8887779', 'server_ip': 'digi-signage.moto-adv.com', 'port': '8880', 'screen_w': '1920', 'screen_h': '1080', 'playlist_version': 5} +[INFO] [SignageApp] Configuration values loaded successfully in enhanced settings +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] python_functions: Configuration loaded: server=192.168.1.22, host=tv-holba1, quick=8887779, port=80 +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] python_functions: Starting load_local_playlist function. +[INFO] [SignageApp] python_functions: Local playlist loaded: {'playlist': [{'file_name': '1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg', 'url': 'static/resurse/1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg', 'duration': 20}, {'file_name': 'wp2782770-1846651530.jpg', 'url': 'static/resurse/wp2782770-1846651530.jpg', 'duration': 15}, {'file_name': 'SampleVideo_1280x720_1mb.mp4', 'url': 'static/resurse/SampleVideo_1280x720_1mb.mp4', 'duration': 5}], 'version': 5} +[INFO] [SignageApp] python_functions: Finished load_local_playlist function successfully. +[INFO] [SignageApp] Found fallback playlist with 3 items +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] Initializing with settings: server=192.168.1.22, host=tv-holba1, port=80 +[INFO] [SignageApp] Attempting to connect to server... +[INFO] [SignageApp] Fetching playlist from URL: http://192.168.1.22:80/api/playlists with params: {'hostname': 'tv-holba1', 'quickconnect_code': '8887779'} +[ERROR] [SignageApp] Failed to fetch playlist. Status Code: 404 +[WARNING] [SignageApp] Server returned empty playlist, falling back to local playlist +[INFO] [SignageApp] Loaded fallback playlist with 3 items +[INFO] [SignageApp] Playing media: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg from /home/pi/Desktop/signage-player/tkinter_app/src/static/resurse/1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg +2025-08-22 13:49:35 - STARTED: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg +[INFO] [SignageApp] Successfully displayed image: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg (Original: (1600, 1000), Screen: 1920x1018, Mode: fit, Offset: (146, 0)) +[INFO] [SignageApp] Starting Simple Tkinter Media Player +[INFO] [SignageApp] Media paused +[INFO] [SignageApp] Loading configuration in enhanced settings window +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] Config loaded: {'screen_orientation': 'Landscape', 'screen_name': 'tv-holba1', 'quickconnect_key': '8887779', 'server_ip': '192.168.1.22', 'port': '80', 'screen_w': '1920', 'screen_h': '1080', 'playlist_version': 0} +[INFO] [SignageApp] Configuration values loaded successfully in enhanced settings +[INFO] [SignageApp] Playing media: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg from /home/pi/Desktop/signage-player/tkinter_app/src/static/resurse/1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg +2025-08-22 13:52:26 - STARTED: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg +[INFO] [SignageApp] Successfully displayed image: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg (Original: (1600, 1000), Screen: 1920x1018, Mode: fit, Offset: (146, 0)) +[INFO] [SignageApp] Media resumed +[INFO] [SignageApp] Playing media: wp2782770-1846651530.jpg from /home/pi/Desktop/signage-player/tkinter_app/src/static/resurse/wp2782770-1846651530.jpg +2025-08-22 13:52:29 - STARTED: wp2782770-1846651530.jpg +[INFO] [SignageApp] Successfully displayed image: wp2782770-1846651530.jpg (Original: (3840, 2400), Screen: 1920x1018, Mode: fit, Offset: (146, 0)) +[INFO] [SignageApp] Playing media: SampleVideo_1280x720_1mb.mp4 from /home/pi/Desktop/signage-player/tkinter_app/src/static/resurse/SampleVideo_1280x720_1mb.mp4 +2025-08-22 13:52:45 - STARTED: SampleVideo_1280x720_1mb.mp4 +[INFO] [SignageApp] Starting VLC for video: /home/pi/Desktop/signage-player/tkinter_app/src/static/resurse/SampleVideo_1280x720_1mb.mp4 +[INFO] [SignageApp] VLC finished: /home/pi/Desktop/signage-player/tkinter_app/src/static/resurse/SampleVideo_1280x720_1mb.mp4 +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] Playing media: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg from /home/pi/Desktop/signage-player/tkinter_app/src/static/resurse/1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +2025-08-22 13:52:53 - STARTED: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg +[INFO] [SignageApp] Fetching playlist from URL: http://192.168.1.22:80/api/playlists with params: {'hostname': 'tv-holba1', 'quickconnect_code': '8887779'} +[ERROR] [SignageApp] Failed to fetch playlist. Status Code: 404 +[INFO] [SignageApp] No playlist updates available +[INFO] [SignageApp] Successfully displayed image: 1307306470-nature_wallpaper_hd_hd_nature_3-3828209637.jpg (Original: (1600, 1000), Screen: 1920x1018, Mode: fit, Offset: (146, 0)) +[INFO] [SignageApp] python_functions: Starting load_config function. +[INFO] [SignageApp] python_functions: Configuration file loaded successfully. +[INFO] [SignageApp] Application exit requested diff --git a/tkinter_app/src/__pycache__/tkinter_simple_player.cpython-311.pyc b/tkinter_app/src/__pycache__/tkinter_simple_player.cpython-311.pyc index ee4aa56..c728e92 100644 Binary files a/tkinter_app/src/__pycache__/tkinter_simple_player.cpython-311.pyc and b/tkinter_app/src/__pycache__/tkinter_simple_player.cpython-311.pyc differ diff --git a/tkinter_app/src/static/resurse/har_page_001.jpg b/tkinter_app/src/static/resurse/har_page_001.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_001.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_002.jpg b/tkinter_app/src/static/resurse/har_page_002.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_002.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_003.jpg b/tkinter_app/src/static/resurse/har_page_003.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_003.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_004.jpg b/tkinter_app/src/static/resurse/har_page_004.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_004.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_005.jpg b/tkinter_app/src/static/resurse/har_page_005.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_005.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_006.jpg b/tkinter_app/src/static/resurse/har_page_006.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_006.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_007.jpg b/tkinter_app/src/static/resurse/har_page_007.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_007.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_008.jpg b/tkinter_app/src/static/resurse/har_page_008.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_008.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_009.jpg b/tkinter_app/src/static/resurse/har_page_009.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_009.jpg and /dev/null differ diff --git a/tkinter_app/src/static/resurse/har_page_010.jpg b/tkinter_app/src/static/resurse/har_page_010.jpg deleted file mode 100644 index d3278b0..0000000 Binary files a/tkinter_app/src/static/resurse/har_page_010.jpg and /dev/null differ