24 lines
662 B
Python
Executable File
24 lines
662 B
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
import json
|
|
|
|
# Add the signage_player directory to path
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'signage_player'))
|
|
|
|
from get_playlists import send_playlist_check_feedback
|
|
|
|
def load_config():
|
|
config_path = os.path.join(os.path.dirname(__file__), 'signage_player', 'main_data', 'app_config.txt')
|
|
with open(config_path, 'r') as f:
|
|
return json.load(f)
|
|
|
|
def test_feedback():
|
|
print("Testing feedback system...")
|
|
config = load_config()
|
|
result = send_playlist_check_feedback(config, 5)
|
|
print(f"Feedback test result: {result}")
|
|
|
|
if __name__ == "__main__":
|
|
test_feedback()
|