-
-
Notifications
You must be signed in to change notification settings - Fork 132
5: Watch TV
NOTE: The wiki documentation is deprecated and quickly becoming out of date. Please visit fieldstation42.com for complete documentation.
From the top level of your FieldStation42 folder, activate the Python virtual environment:
source env/bin/activateThen start the player:
python3 field_player.pyThe player will automatically begin playing the scheduled content for the first configured channel.
Note: Make sure you have already generated catalogs and schedules using
station_42.pybefore starting the player.
FieldStation42 offers several ways to change channels:
By default, the player starts a web server on port 4242 (unless you use the --noserver option). You can change channels by visiting or calling these URLs:
-
http://localhost:4242/player/channels/up→ Tune channel up -
http://localhost:4242/player/channels/down→ Tune channel down -
http://localhost:4242/player/channels/42→ Direct tune to channel 42
The player monitors the file runtime/channel.socket for channel change commands. You can:
-
Change to channel 3:
echo '{"command": "direct", "channel": 3}' > runtime/channel.socket
-
Or, open
runtime/channel.socketin a text editor and enter:{"command": "direct", "channel": 3} -
Tune up or down:
{"command": "up", "channel": -1}{"command": "down", "channel": -1}
FieldStation42 includes a built-in web-based remote control. See the Web-Based Remote guide for setup and usage.
You can also integrate with external scripts and programs: