{"id":42037814,"url":"https://github.com/johnpc/schedules-direct-update-and-serve","last_synced_at":"2026-01-26T05:11:20.740Z","repository":{"id":281524871,"uuid":"945533284","full_name":"johnpc/schedules-direct-update-and-serve","owner":"johnpc","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-24T01:19:12.000Z","size":11,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T15:19:27.165Z","etag":null,"topics":["supported"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-09T16:44:55.000Z","updated_at":"2025-09-23T00:42:20.000Z","dependencies_parsed_at":"2025-03-09T18:18:25.259Z","dependency_job_id":"8e77aa53-5d67-48e1-b030-e40fc5829530","html_url":"https://github.com/johnpc/schedules-direct-update-and-serve","commit_stats":null,"previous_names":["johnpc/schedules-direct-update-and-serve"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnpc/schedules-direct-update-and-serve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnpc%2Fschedules-direct-update-and-serve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnpc%2Fschedules-direct-update-and-serve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnpc%2Fschedules-direct-update-and-serve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnpc%2Fschedules-direct-update-and-serve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnpc","download_url":"https://codeload.github.com/johnpc/schedules-direct-update-and-serve/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnpc%2Fschedules-direct-update-and-serve/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28767049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["supported"],"created_at":"2026-01-26T05:11:20.044Z","updated_at":"2026-01-26T05:11:20.726Z","avatar_url":"https://github.com/johnpc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Schedules Direct XMLTV Docker Service\n\nThis project provides a Docker container that automatically fetches TV schedule data from [Schedules Direct](https://www.schedulesdirect.org/) on a schedule, converts it to XMLTV format, and serves it via HTTP for use with various home media applications.\n\nThis is particularly useful to connect Schedules Direct with [Threadfin](https://github.com/Threadfin/Threadfin)\n\n## Features\n\n- Automatically fetches TV listings from Schedules Direct\n- Converts listings to XMLTV format compatible with media center software\n- Serves the XMLTV file via HTTP\n- Periodically updates the listings data\n- Runs in a Docker container for simple deployment\n\n## Quick Start - Docker Compose\n\nCopy the `docker-compose.yaml` file from this project and deploy it using your favorite docker deployment software (such as Dockge, Portainer, or just `docker compose up -d`)\n\nSet the environment variables for your setup as described below.\n\n## Prerequisites\n\n- Docker and Docker Compose\n- Schedules Direct subscription (username and password)\n\n## Setup\n\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/johnpc/schedules-direct-update-and-serve.git\n   cd schedules-direct-update-and-serve\n   ```\n\n2. Create a `.env` file with your Schedules Direct credentials:\n\n   ```bash\n   SCHEDULES_DIRECT_USERNAME=your_username\n   SCHEDULES_DIRECT_PASSWORD=your_password\n   ```\n\n3. Start the container:\n\n   ```bash\n   docker-compose up -d\n   ```\n\n## Configuration\n\nThe service can be configured with custom lineups using the `SD_LINEUPS` environment variable. By default, it includes:\n\n- USA-0000001-CUSTOM\n- USA-DITV505-X\n- USA-MI21464-X\n- USA-YOUTUBE-X\n\nYou can modify these lineups by setting the `SD_LINEUPS` environment variable in your docker-compose.yaml file:\n\n```yaml\nenvironment:\n  - SD_LINEUPS=USA-0000001-CUSTOM,USA-DITV505-X,USA-MI21464-X,USA-YOUTUBE-X\n```\n\nMultiple lineups should be separated by commas.\n\n## Usage\n\nOnce running, the XMLTV file is available at:\n\n```bash\nhttp://your-server-ip:51969/tvxml.xml\n```\n\nYou can use this URL in your media center software (such as Threadfin, Plex, Emby, Jellyfin, TVHeadend, etc.) as the source for your TV guide data.\n\n## How It Works\n\n- The container runs a cron job that regularly updates the TV listings data\n- `tv_grab_zz_sdjson` tool fetches data from Schedules Direct in JSON format\n- The data is converted to XMLTV format\n- Nginx serves the XMLTV file via HTTP on port 51969\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| SCHEDULES_DIRECT_USERNAME | Your Schedules Direct username |\n| SCHEDULES_DIRECT_PASSWORD | Your Schedules Direct password |\n| SD_LINEUPS | Comma-separated list of lineups to fetch (default: USA-0000001-CUSTOM,USA-DITV505-X,USA-MI21464-X,USA-YOUTUBE-X) |\n| SD_FETCH_DAYS | The number of days to fetch guide data for (default: 2) |\n| TZ | Timezone (default: UTC. Since it runs every day at midnight, choose a TZ where that is the time you want it to run.) |\n\n## Volumes\n\nThe Docker Compose configuration creates a volume named `xmltv_data` to store the fetched data, ensuring it persists between container restarts.\n\n## Acknowledgements\n\nThis project uses the `tv_grab_zz_sdjson` tool to interact with the Schedules Direct API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnpc%2Fschedules-direct-update-and-serve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnpc%2Fschedules-direct-update-and-serve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnpc%2Fschedules-direct-update-and-serve/lists"}