-
Notifications
You must be signed in to change notification settings - Fork 0
Scripts and Tools
roto31 edited this page Dec 12, 2025
·
1 revision
Complete documentation for all StreamTV utility scripts and tools.
Utility scripts for managing StreamTV.
A zsh shell script that creates channels via the StreamTV API. This is the recommended method if the API server is running.
- StreamTV API server must be running (start with
python3 -m streamtv.main) -
curlcommand available - zsh shell
./scripts/create_channel.sh./scripts/create_channel.sh --year 1980
./scripts/create_channel.sh --year 1984
./scripts/create_channel.sh --year 1988./scripts/create_channel.sh --number "1" --name "My Channel" --group "Entertainment"./scripts/create_channel.sh --interactive-
--year YEAR: Create channel for specific Olympic year (1980, 1984, or 1988) -
--number NUMBER: Channel number (e.g., '1', '1980') -
--name NAME: Channel name -
--group GROUP: Channel group (default: 'StreamTV') -
--logo PATH: Path to channel logo image -
--disabled: Create channel as disabled (not enabled) -
--interactive, -i: Interactive mode for guided channel creation -
--api-url URL: API base URL (default: http://localhost:8410) -
--token TOKEN: Access token for authenticated API -
--help, -h: Show help message
-
STREAMTV_API_URL: API base URL (overrides --api-url) -
STREAMTV_ACCESS_TOKEN: Access token (overrides --token)
# Create all default channels
./scripts/create_channel.sh
# Create just the 1980 channel
./scripts/create_channel.sh --year 1980
# Create a custom channel
./scripts/create_channel.sh --number "10" --name "Classic Sports" --group "Sports"
# Use custom API URL
./scripts/create_channel.sh --api-url http://192.168.1.100:8410
# Interactive mode
./scripts/create_channel.sh -i- The script checks if the API server is running before attempting to create channels
- If the API server is not available, the script will fall back to the Python script method
- Channels are created via the REST API (requires running server)
- The script provides colored output for better readability
Creates channels for StreamTV. This script can create custom channels or channels for specific content.
Make sure you have installed the project dependencies:
pip install -r requirements.txtpython3 scripts/create_channel.pyThis will create channels based on the configuration. Channels can be customized with names and groups.
python3 scripts/create_channel.py --year 1980
python3 scripts/create_channel.py --year 1984
python3 scripts/create_channel.py --year 1988python3 scripts/create_channel.py --number "1" --name "My Channel" --group "Entertainment"-
--year YEAR: Create channel for specific Olympic year (1980, 1984, or 1988) -
--number NUMBER: Channel number (e.g., '1', '1980') -
--name NAME: Channel name -
--group GROUP: Channel group (default: 'StreamTV') -
--logo PATH: Path to channel logo image -
--disabled: Create channel as disabled (not enabled)
# Create all default channels
python3 scripts/create_channel.py
# Create just the 1980 channel
python3 scripts/create_channel.py --year 1980
# Create a custom channel
python3 scripts/create_channel.py --number "10" --name "Classic Sports" --group "Sports"
# Create a disabled channel
python3 scripts/create_channel.py --number "99" --name "Test Channel" --disabled- The script will check if a channel with the same number already exists and skip creation if found
- Channels are created directly in the database (no API server required)
- The database will be initialized automatically if it doesn't exist
-
install_macos.sh- macOS installation -
start_server.sh- Start StreamTV server -
verify-installation.sh- Verify installation
-
create_channel.sh- Create channels via API -
create_schedule.sh- Create schedule files
-
archive_collection_parser_dialog.sh- Interactive GUI parser
-
view-logs.sh- View application logs -
troubleshoot_streamtv.sh- StreamTV diagnostics -
troubleshoot_plex.sh- Plex integration diagnostics -
stop_server.sh- Stop running server
-
upload-to-github.sh- Upload distributions to GitHub -
create-wiki.sh- Create GitHub wiki -
fix-unrelated-histories.sh- Fix git history issues -
push-distributions.sh- Push distributions to GitHub
-
create_channel.py- Create channels programmatically -
import_channels.py- Import channels from YAML -
import_collections.py- Import collections -
rename_channels.py- Rename existing channels -
remove_tpt_channels.py- Remove specific channels
-
archive_collection_parser.py- Parse Archive.org collections -
create_sesame_street_channel.py- Create Sesame Street channel -
create_mister_rogers_channel.py- Create Mister Rogers channel
-
rebuild_1980_channel.py- Rebuild 1980 channel -
recreate_1980_channel.py- Recreate 1980 channel -
recreate_1992_channel.py- Recreate 1992 channel -
full_rebuild_1980.py- Full rebuild of 1980 channel -
complete_rebuild_1980.py- Complete rebuild of 1980 channel
-
enrich_metadata.py- Enrich media metadata -
update_metadata.py- Update existing metadata -
import_olympics_data.py- Import Olympics data -
cleanup_placeholders.py- Clean up placeholder entries
-
discover_plex.py- Discover Plex servers -
get_plex_token.py- Get Plex authentication token -
test_plex_connection.py- Test Plex connectivity
-
health_check.py- System health check -
hardware_detection.py- Detect hardware capabilities -
test_logging.py- Test logging system -
test_connectivity.py- Test network connectivity -
auto_heal.py- Auto-healing system -
add_playout_mode_migration.py- Database migration
# Using shell script (requires API server)
./scripts/create_channel.sh --year 1980
# Using Python script (direct database)
python3 scripts/create_channel.py --year 1980# Interactive GUI (recommended)
./scripts/archive_collection_parser_dialog.sh
# Command-line
python3 scripts/archive_collection_parser.py "https://archive.org/details/..."# Live view
./scripts/view-logs.sh
# Search for errors
./scripts/view-logs.sh search ERRORpython3 scripts/import_channels.py data/channels.yaml