Skip to content

Tellyboard schedule

The Schedule pages let an operator put a playlist on the calendar: "play this playlist from this date and time to that date and time". Routes: /schedule (list and calendar) and /addschedule (create).

Where the code is

tellyboard-frontend/src/components/schedule/ (Schedule.jsx, AddSchedule.jsx). Backend: /schedules in CoreAPI (domain/provisioning/routes.go: GET /, POST /, GET /:id, PUT /:id, DELETE /:id).

Schedule vs. campaign schedule rule

This page schedules a playlist in time. A campaign has its own schedule rule (daily, weekly, monthly, annual, specific dates, up to four time windows). They are separate features. Time-based programming of live channels (program slots and EPG) is the scheduling domain.

Schedule page (/schedule)

  • A calendar of the schedules (week grid of 7 columns) with the playlist name on each event, and a list of the events of the selected day.
  • Selecting a schedule shows the media of its playlist (api.getPlaylistMedia) on the side.
  • Delete removes a schedule (DELETE /schedules/:id).
  • Data: api.getSchedule() → GET /schedules.

Add schedule (/addschedule)

  1. Enter a Schedule name (required).
  2. Pick a day on the calendar (Month or Week view) and choose Add event.
  3. In the event dialog choose the Playlist (from api.getPlaylists()), the start and end date and time.
  4. Repeat for more events, then Save.

Saving creates one schedule per event:

{
  "name": "<schedule name> - <playlist name>",
  "playlistId": "<id>",
  "deviceId": null,
  "startTime": "2026-10-28T09:00:00",
  "endTime":   "2026-10-28T17:00:00",
  "isActive": true
}

POST /schedules is called for each event. Today every event is created with recurrence: 'once' and deviceId: null (not tied to one device: the playlist assignment decides where it plays).

Known limits

  • Events are created one by one: if one call fails, events saved before it stay.
  • Recurrence is not offered on this page (events are one-off). Use a campaign's schedule rule for daily/weekly patterns.
  • Schedule.jsx still has a hard-coded STATIC_URL for media (tellyboard.poc.castis.io); it should come from the runtime config.