-
-
Notifications
You must be signed in to change notification settings - Fork 132
5: Watch TV
To start the player, change to the top level of the report and activate the python virtual environment
source env/bin/activate
And then run the player with:
python3 field_player.py
It will automatically start playing the scheduled content for the first configured channel.
Note: This will fail if you have not already generated catalogs and schedules using station_42.py
The player monitors the plain text file runtime/channel.socket for commands to change the channel and will change to the next station configured in main_config in confs/fieldStation42_conf.py if any content is found there - or you can use the following command to cause the player to change to channel 3:
echo {\"command\": \"direct\", \"channel\": 3} > runtime/channel.socket
You can also open runtime/channel.socket in a text editor and enter the following json snippet (change 3 to whatever number you want to change to)
{"command": "direct", "channel": 3}
The following command will cause the player to tune up or down respectively
{"command": "up", "channel": -1}
{"command": "down", "channel": -1}