TeleQ TV

v1.2.0
io.github.max4et/teleq Checked 4 days ago Published 22 days ago

Show text, slides, images, video and live HTML pages on your TV through the TeleQ app.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tv_status TV status

Check what the TV is showing right now (and its id, slide or queue position), whether a phone is also connected, the screen size and safe area, which tools this TV supports (capabilities), the language and country of the TV (search for content in that language) and which video services have their app on it (services_installed). Call this before changing the screen if you are unsure what is on it.

show_text Show text on the TV

Show a large, readable text card on the TV: a recipe, a list, a summary, an answer. Keep it short; people read it from the couch. Markdown subset: # headings, **bold**, - bullet lists, 1. numbered lists, blank lines between paragraphs. Returns an id for update_text.

ParameterTypeDescription
markdown *stringThe text to show (Markdown subset). Up to 20000 characters.
duration_sintegerOptional: clear the screen after this many seconds (1-3600). Without it the content stays until replaced or stopped.
titlestringOptional heading shown above the text (up to 120 characters).

show_slides Present slides on the TV

Show a presentation: a list of slides, each either Markdown (rendered as a big, centred TV slide) or a complete self-contained HTML page (sandboxed, no network). The viewer moves with ←/→ on the remote; you move with slides_control. Put what you would say in notes (not shown on the TV; returned by slides_control). Up to 50 slides and 1024 KB in total. Returns an id.

ParameterTypeDescription
slides *arrayThe slides in order. Each needs markdown or html (not both).
start_slideintegerOptional slide to open first (1-based). Default 1.
titlestringOptional presentation title (up to 120 characters).

slides_control Move through the slides

Go to the next, previous, first, last or a given slide of the presentation on screen. Returns the slide number, the count and that slide's notes.

ParameterTypeDescription
action *stringWhere to go.
idstringOptional: the id from show_slides, to make sure the right presentation is still on screen.
slideintegerSlide number (1-based). Required for "goto".

show_html Show an HTML page on the TV

Show a self-contained HTML page (a dashboard, a chart, a scoreboard, a timer, a visual) full screen on the TV. It runs in a locked-down sandbox: scripts and CSS work, but there is no network access, so inline everything; images may be data: URIs or https:// URLs. Design for 1920x1080, large type, dark background, no scrolling, no input. To change values later without reloading, listen for window "message" events whose data is {type:"teleq:update", data} and call update_html. Returns an id.

ParameterTypeDescription
html *stringA complete HTML document. Up to 262144 characters.
duration_sintegerOptional: clear the screen after this many seconds (1-3600). Without it the content stays until replaced or stopped.
titlestringOptional title (not drawn; used in the status) (up to 120 characters).

update_text Update the text on the TV

Replace the text of a card shown with show_text, in place and without flicker. Only works while that card is still on screen.

ParameterTypeDescription
id *stringThe id returned by the show_* call that put the content up.
markdown *stringThe new text (Markdown subset). Up to 20000 characters.
titlestringOptional new heading (up to 120 characters).

update_html Update the page on the TV

Update a page shown with show_html. With data, the page stays and receives a window "message" event {type:"teleq:update", data} (no reload, no flicker; up to 64 KB of JSON). With html, the page is replaced (a short reload). Only works while that page is still on screen.

ParameterTypeDescription
id *stringThe id returned by the show_* call that put the content up.
dataobjectNew values for the page, delivered as message event data.
htmlstringOptional replacement HTML document (up to 262144 characters).

show_image Show an image on the TV

Show a picture on the TV, letterboxed on a black background. The image must be reachable on the public internet over https://.

ParameterTypeDescription
url *stringPublic https:// URL of a JPEG, PNG, WebP or GIF image.
titlestringOptional caption (up to 120 characters).

show_queue Show several photos and videos

Show up to 50 photos and videos one after another: each photo stays for its duration_s (default 8 s), each video plays to the end. The viewer can skip with ←/→ on the remote. Public https:// links only. Returns an id.

ParameterTypeDescription
items *arrayThe photos and videos in order.

play_video Play a video on the TV

Play a video on the TV in full screen inside TeleQ. Works with direct video files (.mp4, .webm, .mkv) and HLS (.m3u8) or DASH (.mpd) streams over public https://. For YouTube, Rutube, VK Video, Netflix and other services use open_in_app instead. Use `playback` afterwards to pause, resume or seek.

ParameterTypeDescription
url *stringPublic https:// URL of the video file or stream.
titlestringOptional title shown on the TV (up to 120 characters).

open_in_app Open a video service on the TV

Open an episode, a cartoon, a film, a music video or a channel in the TV's own app for that service: YouTube, YouTube Kids, Rutube, VK Video, Kinopoisk, ivi, Okko, Wink, START, PREMIER, KION, more.tv, Smotrim, MEGOGO, Netflix, Prime Video, Disney+, Max, Apple TV, Twitch, Vimeo, Dailymotion, Crunchyroll, Pluto TV, Tubi. Find the official link with web search first (in the TV's language, see tv_status). The service's app then plays it (TeleQ leaves the screen; the user returns with Back/Home). Official sources only.

ParameterTypeDescription
url *stringhttps:// link to the video, episode, series, playlist or channel page on one of the listed services (e.g. https://www.youtube.com/watch?v=…, https://rutube.ru/video/…/).
start_sintegerOptional (YouTube): start this many seconds in.
titlestringOptional title, for the notice on the TV (up to 120 characters).

notify Show a short notice on the TV

Show a short notice for a few seconds on top of whatever is on screen, without interrupting a video. Up to 200 characters, at most one every 10 seconds.

ParameterTypeDescription
text *stringThe notice (up to 200 characters).

screen_snapshot See the TV screen

Get a picture (at most 1280 px wide) of what TeleQ is showing right now, to check that your content fits and looks right. Only TeleQ's own content an assistant put up is captured, never other apps or the user's own photos; video frames may come out black.

playback Control video playback

Control the video that is playing on the TV: play, pause, seek to a position, or stop.

ParameterTypeDescription
action *stringWhat to do.
position_snumberSeconds from the start. Required when action is "seek".

clear_screen Clear the TV screen

Stop whatever is being shown and return the TV to its idle screen.