<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chandrasehar on Medium]]></title>
        <description><![CDATA[Stories by Chandrasehar on Medium]]></description>
        <link>https://medium.com/@chandrasehar2002?source=rss-4d8936eee26e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*m9z2RIsleZqPBxZW</url>
            <title>Stories by Chandrasehar on Medium</title>
            <link>https://medium.com/@chandrasehar2002?source=rss-4d8936eee26e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:44:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chandrasehar2002/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Turning an LG TV into your own launcher, without rooting it]]></title>
            <link>https://medium.com/@chandrasehar2002/turning-an-lg-tv-into-your-own-launcher-without-rooting-it-78b4bce72f89?source=rss-4d8936eee26e------2</link>
            <guid isPermaLink="false">https://medium.com/p/78b4bce72f89</guid>
            <category><![CDATA[lg-webos]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[smart-tv]]></category>
            <dc:creator><![CDATA[Chandrasehar]]></dc:creator>
            <pubDate>Sun, 01 Nov 2026 08:41:56 GMT</pubDate>
            <atom:updated>2026-11-01T08:41:56.961Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Most custom webOS home screens need root. I built a live meeting-room display on an ordinary, unrooted 55-inch LG, and the same approach works for lobby screens, family home screens, status boards and signage. This is what webOS lets you do, what it doesn’t, and how to design an app people read from across a room.</em></p><p><strong>Platform:</strong> LG webOS 6.5 (2021 UP77 series) · <strong>Root:</strong> none · <strong>Stack:</strong> HTML, CSS, JavaScript, Node.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LcVZKOt1iTjIICMIXlOMqg.png" /><figcaption><em>The finished screen, rendered from the app’s code at the TV’s 1920×1080 resolution with a demo schedule. For this article the company logo and values are replaced by a neutral brand and a room guide, and the meetings, names, other rooms and numbers are made up. Centre left: the next four hours. Centre right: the room’s status with a timer dial, a launcher row of streaming apps and the HDMI input, and a rotating room guide. Outer columns: the other rooms with a booking QR code, and today’s numbers with a week chart. The tiles use each app’s current official icon; the names and logos are trademarks of their owners.</em></figcaption></figure><p>My office has a small meeting room called Marble with an LG TV on the wall. Like most smart TVs, it booted into a home screen full of sponsored rows and streaming promotions. I wanted it to do one job: show whether the room is free, what’s booked next, and let people switch to HDMI to present.</p><p>The well-known guides for this kind of thing, such as <a href="https://github.com/humblemuzzu/dumbtv">dumbtv</a>, work by talking to the TV over ADB and switching off the vendor’s apps. dumbtv is tested end to end on Fire TV, with the Android TV method documented. On an LG TV that approach can’t even start, and the reasons are worth understanding before you build anything.</p><p>The meeting room is my worked example throughout. Nothing in the method is specific to it: section 9 shows how to build other kinds of launcher the same way, and section 8 covers how to design one.</p><h3>1. Why webOS is different</h3><p>A smart TV is a small computer: a processor, memory, storage, a network connection and an operating system. The operating system decides what you’re allowed to change.</p><blockquote><strong><em>webOS:</em></strong><em> LG’s own operating system for its TVs. It began at Palm in 2009 as a phone OS, passed to HP, and was bought by LG in 2013. It runs on Linux, but it is not Android: apps are mostly web apps, and the system has its own tools and rules.</em></blockquote><blockquote><strong><em>ADB (Android Debug Bridge):</em></strong><em> Google’s tool for sending commands to an Android device from a computer: disable an app, change a setting, install software. It needs a small program, </em><em>adbd, running on the device. Only Android has it.</em></blockquote><p>So the first wall is simple: there is no ADB on an LG TV, and the commands dumbtv relies on (pm, settings, appops) don&#39;t exist there either.</p><blockquote><strong><em>Root:</em></strong><em> The all-powerful administrator account on a Linux system. Getting it without the maker’s permission needs an </em>exploit<em>, a security bug. Several root methods for LG TVs existed, but by August 2025 the latest firmware for essentially all LG models on webOS 5, 6, 7 and 9 was patched against them.</em></blockquote><p>I decided early not to root. It wasn’t possible on my TV’s up-to-date firmware, and a display in an office should survive a firmware update without anyone thinking about it.</p><h3>2. The three doors LG leaves open</h3><p>Without ADB or root, everything I built goes through three things LG officially allows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ETGVxWS6qyPCCU6OiKqaQ.png" /><figcaption><em>Figure 1. The laptop talks to the TV through two ports; the installed app then talks to the backend on its own.</em></figcaption></figure><ol><li><strong>The settings menus.</strong> Ordinary TV settings: what the TV shows at power-on, timers, promotions.</li><li><strong>The network remote API (SSAP).</strong> The same channel LG’s phone remote app uses. It can list apps, open them, switch inputs and change volume.</li><li><strong>Developer Mode.</strong> LG’s official way to install your own app on a real TV.</li></ol><h3>3. Finding and talking to the TV</h3><p>Before installing anything, I wanted a small command-line tool on the laptop that could find the TV, read what was installed, and open apps. Two protocols do that.</p><blockquote><strong><em>Protocol:</em></strong><em> The agreed language two programs speak over a connection: what to send first and what the replies look like.</em></blockquote><blockquote><strong><em>SSDP (Simple Service Discovery Protocol):</em></strong><em> A way for devices to find each other without knowing addresses. A program sends one message to a group address that every device listens to (</em><em>239.255.255.250, port 1900), saying which kind of service it&#39;s looking for. Matching devices reply with their address.</em></blockquote><p>My tool asks for LG’s “second screen” service, and every LG webOS TV on the network answers:</p><pre>M-SEARCH * HTTP/1.1<br>HOST: 239.255.255.250:1900<br>MAN: &quot;ssdp:discover&quot;<br>ST: urn:lge-com:service:webos-second-screen:1</pre><blockquote><strong><em>WebSocket:</em></strong><em> A network connection that stays open, so both sides can send messages at any time. Ordinary web requests are one question, one answer, then the connection closes.</em></blockquote><blockquote><strong><em>SSAP:</em></strong><em> LG’s remote-control language. LG doesn’t publish what the letters stand for; community libraries usually call it the Second Screen Application Protocol. The TV listens for a WebSocket on port 3001 (encrypted; older firmware also opens port 3000 unencrypted). Programs send short JSON messages addressed to </em><em>ssap:// services, and the TV answers each one.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rzq2ElC13UkdHmCoABJ8kQ.png" /><figcaption><em>Figure 2. Pairing happens once. The client key the TV hands back works like a saved password for this one tool.</em></figcaption></figure><p>After pairing, each command is one message, and the reply carries the same id:</p><pre>{ &quot;id&quot;: &quot;7&quot;, &quot;type&quot;: &quot;request&quot;,<br>  &quot;uri&quot;: &quot;ssap://system.launcher/launch&quot;,<br>  &quot;payload&quot;: { &quot;id&quot;: &quot;netflix&quot; } }</pre><p>I used SSAP to read the TV’s model and webOS version, list its inputs (AV, HDMI 1, and HDMI 2 labelled “PS5 Game Console”), and download every app icon. The key is tied to the TV, not to its address, so when the router later gave the TV a new IP address, reconnecting with the saved key worked without another prompt.</p><p>Treat the client key as a credential. Anyone holding it can control the TV.</p><h3>4. Developer Mode and the ares tools</h3><p>SSAP can open apps, but it can’t install one. For that, LG offers Developer Mode.</p><blockquote><strong><em>Developer Mode:</em></strong><em> An LG app, from the TV’s app store, that turns a retail TV into a test device. You sign in with a free LG developer account and switch it on; the TV restarts and accepts a restricted login on port 9922. LG checks that the account’s country matches the TV’s: my first account, registered in the UK, was refused on my TV in India.</em></blockquote><blockquote><strong><em>SSH (Secure Shell):</em></strong><em> The standard way to log in to another computer’s command line over an encrypted connection. Instead of a password it usually uses a key pair: a private key held by the person logging in and a matching public key held by the computer.</em></blockquote><p>With <strong>Key Server</strong> switched on in the Developer Mode app, the TV offers its private key for download, locked with a six-character passphrase shown on screen. The login you get is a user called, honestly, prisoner. It can install and launch your own apps and send a few public system messages. It cannot touch LG&#39;s apps or settings.</p><blockquote><strong><em>ares:</em></strong><em> LG’s official command-line toolkit for webOS developers (npm package </em><em>@webos-tools/cli). Each tool does one step: register a TV, fetch its key, package an app, install it, launch it.</em></blockquote><pre>ares-setup-device --add tv -i &quot;host=&lt;tv-ip&gt;&quot; -i &quot;port=9922&quot; -i &quot;username=prisoner&quot;<br>ares-novacom --device tv --getkey     # type the passphrase shown on the TV<br>ares-package app/ -o build/           # folder → .ipk package<br>ares-install --device tv build/com.example.roomdisplay_1.0.0_all.ipk<br>ares-launch  --device tv com.example.roomdisplay</pre><p>One detail cost me a failed login: the downloaded key is locked with the same passphrase, and ares only uses it if the passphrase is saved in its device settings too (ares-setup-device --modify tv -i &quot;passphrase=…&quot;).</p><h3>5. Inside a webOS app</h3><p>A webOS app is essentially a website stored on the TV. The TV’s built-in browser engine shows it full screen with no address bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y8oyX8iMamYtyjY859ks4g.png" /><figcaption><em>Figure 3. The webOS stack. Apps ask system services to do things by sending messages on the Luna bus.</em></figcaption></figure><blockquote><strong><em>Luna bus:</em></strong><em> webOS’s internal message system. Every system service has a </em><em>luna:// address. An app sends a JSON message to that address and gets a JSON reply, for example to open another app or switch to an HDMI input.</em></blockquote><p>Inside an app, the message goes through a built-in object whose name is a leftover from Palm:</p><pre>var bridge = new PalmServiceBridge();<br>bridge.onservicecallback = function (reply) { /* {&quot;returnValue&quot;: true} */ };<br>bridge.call(&#39;luna://com.webos.applicationManager/launch&#39;,<br>            JSON.stringify({ id: &#39;com.webos.app.hdmi1&#39; }));</pre><blockquote><strong><em>appinfo.json:</em></strong><em> The app’s ID card: its unique ID, name, first page, screen resolution and the permissions it needs.</em></blockquote><pre>{<br>  &quot;id&quot;: &quot;com.example.roomdisplay&quot;,<br>  &quot;type&quot;: &quot;web&quot;,<br>  &quot;main&quot;: &quot;index.html&quot;,<br>  &quot;title&quot;: &quot;Room Display&quot;,<br>  &quot;resolution&quot;: &quot;1920x1080&quot;,<br>  &quot;disableBackHistoryAPI&quot;: true,  // the Back button reaches my code<br>  &quot;supportGIP&quot;: true,             // allowed to become a TV input<br>  &quot;requiredACG&quot;: [&quot;application.launcher&quot;]<br>}</pre><blockquote><strong><em>ACG (Access Control Group):</em></strong><em> LG’s permission system for Luna messages. An app declares the groups it needs, and the TV refuses messages outside them. LG’s </em><a href="https://webostv.developer.lge.com/develop/guides/acg-guide"><em>ACG guide</em></a><em> says enforcement starts with webOS 26 and the field is mandatory from webOS 27; older TVs like mine ignore it, so declaring it costs nothing. Opening other apps needs </em><em>application.launcher.</em></blockquote><blockquote><strong><em>IPK:</em></strong><em> The package format for webOS apps, the equivalent of an Android </em><em>.apk: the app&#39;s files plus a short description. The TV only installs apps from IPK files.</em></blockquote><p>One constraint shaped all of my code: webOS 6 runs Chromium 79, from 2019. Optional chaining (a?.b) and flexbox gap don&#39;t exist there, so the app sticks to older JavaScript and CSS.</p><h3>6. Booting straight into the app</h3><p>Installing the app was the easy part. Making the TV open it at power-on, with no root, needed two pieces that I haven’t seen documented together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-zb5b9u_huYd9QAm3n7Apw.png" /><figcaption><em>Figure 4. Installing, then the two pieces that turn the app into what the TV shows at power-on.</em></figcaption></figure><blockquote><strong><em>eim:</em></strong><em> The TV’s input manager service: it keeps the list of inputs such as HDMI 1 and AV. Its </em><em>addDevice message adds an app to that list, so the TV treats the app like a source it can return to.</em></blockquote><pre>ares-novacom --device tv --run &quot;luna-send-pub -n 1 \<br>  &#39;luna://com.webos.service.eim/addDevice&#39; \<br>  &#39;{\&quot;appId\&quot;:\&quot;com.example.roomdisplay\&quot;,\&quot;pigImage\&quot;:\&quot;\&quot;,\&quot;mvpdIcon\&quot;:\&quot;\&quot;,\&quot;label\&quot;:\&quot;Room\&quot;}&#39;&quot;<br># → {&quot;returnValue&quot;:true}</pre><p>Three details matter: the app’s appinfo.json must declare &quot;supportGIP&quot;: true, the app needs a largeIcon, and the message must include pigImage, even empty, or the input manager can crash. On my webOS 6.5 TV the call succeeded from the Developer Mode login, and afterwards the TV&#39;s input list showed my app next to the HDMI ports.</p><p>That still wasn’t enough. On the first power test the TV opened LG’s home screen, with my app listed under “Recent Input”. The second piece is a normal setting: <strong>Settings → General → System → Additional Settings → Home Settings → Home Auto Launch: Off</strong>. With it off, the TV powers on to the last input used, which is now my app. The same menu has <strong>Home Promotion</strong> and <strong>Content Recommendation</strong>, which I also switched off.</p><p>That menu path is for webOS 6.0 to webOS 22 (2021–2022 TVs). <a href="https://www.lg.com/us/support/help-library/how-to-set-the-startup-screen-on-your-lg-tv--20155412183664">LG’s help page</a> says webOS 5.0 reaches it through General → Home Settings, and from webOS 23 the option is called <em>Power On Screen</em>. LG also says Quick Start+ must be switched on for the setting to work, and that it applies when the TV is turned on with the remote.</p><h3>7. Live room status from the calendar</h3><p>The room is a Google Workspace resource, and people book it like any meeting room. My company’s internal backend already reads calendars with a Google service account, so it serves each room’s bookings to the TV:</p><pre>GET https://&lt;backend&gt;/api/tv/room?room=Marble<br>Authorization: Bearer &lt;token&gt;</pre><pre>{ &quot;room&quot;: { &quot;name&quot;: &quot;Marble&quot;, &quot;capacity&quot;: 4, &quot;floor&quot;: &quot;1&quot; },<br>  &quot;events&quot;: [ { &quot;title&quot;: &quot;Design review&quot;,<br>                &quot;start&quot;: &quot;2026-10-26T15:00:00+05:30&quot;,<br>                &quot;end&quot;:   &quot;2026-10-26T15:45:00+05:30&quot;,<br>                &quot;organizer&quot;: &quot;…&quot;, &quot;attendees&quot;: [&quot;…&quot;] } ],<br>  &quot;holidays&quot;: [ { &quot;date&quot;: &quot;2026-11-08&quot;, &quot;name&quot;: &quot;Diwali&quot; } ] }</pre><p>The TV fetches this every 60 seconds and works out the status itself: a meeting in progress means <em>In use</em>, one starting within 10 minutes means <em>Starting soon</em>, otherwise <em>Available</em>. The backend caches each room for about 45 seconds, so a new booking usually appears on the TV within a minute or so, and at most in about two minutes.</p><h3>Calling a server from a TV app: CORS</h3><blockquote><strong><em>CORS (Cross-Origin Resource Sharing):</em></strong><em> The browser rule that a page from one site may only read responses from another site if that site says it’s allowed. My app runs from a local file on the TV, so every call to the backend is cross-site.</em></blockquote><blockquote><strong><em>Preflight:</em></strong><em> A permission check the browser sends before a request that carries a custom header such as </em><em>Authorization. It&#39;s an </em><em>OPTIONS request, and the server must answer it with the right headers or the real request never happens.</em></blockquote><pre>OPTIONS /api/tv/room?room=Marble<br>→ 204  Access-Control-Allow-Origin: *<br>       Access-Control-Allow-Headers: Authorization<br>       Access-Control-Allow-Methods: GET</pre><p>I tested this from the TV itself with a throwaway app that reported back to the laptop. Two findings. Inside a webOS app, the page reports its origin as file://&lt;app-id&gt;-webos, so the backend answers with Access-Control-Allow-Origin: * rather than guessing which origin the TV sends. And the TV&#39;s Chromium 79 accepted the server&#39;s TLS certificate, so the preflight, the real request and its JSON body all came through.</p><h3>The security checkpoint I didn’t expect</h3><p>When I pointed the TV at the production domain, every request came back as HTTP 429 with an HTML page titled “Vercel Security Checkpoint”. The hosting platform’s bot protection answered every request with a browser challenge, and a background fetch from a TV can’t complete one. An existing firewall rule already let the office’s reception TV feed through; widening it to cover the room endpoint fixed it, and the bearer token still protects both. If your TV gets an HTML page where you expected JSON, check this first.</p><h3>Office hours, holidays and restarts</h3><ul><li><strong>Office hours.</strong> The TV only calls the backend Monday to Friday, 8:30 AM to 6:30 PM. Outside those hours the screen keeps running on the last schedule it read.</li><li><strong>Holidays.</strong> The backend includes the next 90 days of company holidays in its reply. The TV keeps that list and doesn’t call at all on those dates. A reply without the field means “keep the list you have”; an empty list means there are none.</li><li><strong>Restarts.</strong> The first version kept the schedule only in memory, so a restart after 6:30 PM showed an empty calendar until the next morning. The app now saves the last good reply on the TV (in localStorage) and shows it immediately at startup.</li><li><strong>Private meetings.</strong> Meetings marked private come back without a title, and the TV shows them as “Private meeting” with the organiser’s first name.</li></ul><h3>8. Designing the TV app</h3><p>A TV app is read from three to five metres away and driven with five buttons, so the rules differ from a phone or a laptop. These are the ones I followed. They apply to any launcher, not only a room display.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n7FYkcoy-U3gj9HCfh_FSQ.png" /><figcaption><em>Figure 5. The layout rules on one screen: a safe area, type sized for the far side of the room, an obvious focus, and state you can read at a glance.</em></figcaption></figure><ul><li><strong>Design on a fixed 1920×1080 canvas.</strong> The resolution field in appinfo.json sets it, and the TV scales it to the panel; my 4K set showed it sharp. Sizes below are pixels on that canvas.</li><li><strong>Keep important things inside a safe area.</strong> Some TVs crop the edges of the picture (overscan). The usual TV guideline is a 5% margin, which at 1080p is 96 px left and right and 54 px top and bottom. Backgrounds can run to the edge; text and controls shouldn’t.</li><li><strong>Make text big.</strong> On my canvas the smallest labels are 14–20 px in spaced capitals, meeting titles 26–34 px, and the status word 68 px. Anything you’d set at 12–14 px on a laptop is unreadable from across a room.</li><li><strong>Focus is the cursor.</strong> Most people use the arrow keys, so exactly one element is focused at all times, and it has to be obvious: I scale the focused tile up and draw a thick ring. Arrows move through a predictable row or grid, and OK opens. The Magic Remote’s pointer should move focus too (I set focus on mouseover), so both ways of using the remote agree.</li><li><strong>Handle the remote’s keys yourself.</strong> LG’s <a href="https://webostv.developer.lge.com/develop/guides/magic-remote">Magic Remote guide</a> lists the codes: arrows 37–40, OK 13, Back 461, and the coloured keys 403–406. Set disableBackHistoryAPI in appinfo.json so Back reaches your code. On a home screen, Back should do nothing rather than close the app.</li><li><strong>Show state with colour and shape, not only words.</strong> Someone walking past should get the answer without reading: a red wedge means busy, green means free.</li><li><strong>Tone colours down.</strong> TV panels boost saturation and contrast. Colours that look right on a laptop glare on the wall, so judge them on the real panel.</li><li><strong>Mind OLED burn-in.</strong> A launcher shows the same layout for hours, and <a href="https://www.lg.com/africa/support/product-help/CT20080005-20154768393072">LG warns</a> that static images such as logos can burn in on OLED panels. Mine is an LCD set; on OLED, keep large static elements dark or dimmed, or move them slightly over time.</li><li><strong>Write for an old browser.</strong> webOS 6 runs Chromium 79. Animate only transform and opacity, avoid large blur filters, keep simultaneous animations few, and stick to ES2015 JavaScript.</li><li><strong>Ship fonts and images with the app.</strong> It runs from local files, so bundle them rather than loading them from the internet; the screen then appears even when the network is slow.</li><li><strong>Iterate on the laptop, confirm on the TV.</strong> I rendered the app at 1920×1080 in desktop Chrome for quick changes, then installed it and checked colours and motion on the panel.</li></ul><h3>What I chose for the room display</h3><p>My first versions looked generic: glowing rings, a pulsing dot, neon accents. Those went. What stayed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*B0qmIsxbQKEsEU-VggnEvg.png" /><figcaption><em>Figure 6. The timer dial. On a 60-minute face, the red wedge is the time left: a quarter means 15 minutes. It shrinks back towards 12 as the meeting runs.</em></figcaption></figure><ul><li><strong>A timer dial instead of a progress ring.</strong> It works like the physical “Time Timer” used in classrooms: the wedge is the time left, so “a quarter of the dial” reads as 15 minutes without reading a number. A dot circling the rim is a real second hand, and the minutes figure drops exactly when that dot passes 12.</li><li><strong>A moving four-hour calendar.</strong> It starts at the half hour at least 45 minutes before now, maps time to height (each hour gets 150 pixels), and a red line marks the current time. I tried showing the full working day; four hours read better from across the room.</li><li><strong>Muted status colours.</strong> TV panels boost saturation, so colours that looked right on a laptop were glaring on the wall. The final reds, ambers and greens are all toned down.</li><li><strong>Brand from the source.</strong> Colours and fonts came from the company website’s stylesheet, and the fox mark’s head and tail are separate shapes, so the tail can move on its own in the background.</li></ul><p>The dial’s wedge is a single SVG path recalculated every second:</p><pre>function wedgePath(f) {               // f = minutes left ÷ 60, between 0 and 1<br>  var c = 135, r = 112, a = f * 2 * Math.PI;<br>  return &#39;M&#39; + c + &#39; &#39; + c + &#39;L&#39; + c + &#39; &#39; + (c - r) +<br>         &#39;A&#39; + r + &#39; &#39; + r + &#39; 0 &#39; + (f &gt; 0.5 ? 1 : 0) + &#39; 1 &#39; +<br>         (c + r * Math.sin(a)) + &#39; &#39; + (c - r * Math.cos(a)) + &#39;Z&#39;;<br>}</pre><h3>9. Building other launchers the same way</h3><p>Nothing in sections 3 to 6 is specific to meeting rooms. Developer Mode, the ares tools, Luna, input registration and Home Auto Launch work the same for any web app you want the TV to open at power-on. What changes is the data you show and the layout.</p><ul><li><strong>Meeting-room display</strong> (mine). Shows the room’s bookings. Status card, moving calendar, sync only in office hours.</li><li><strong>Reception or lobby screen.</strong> Shows a welcome message, visitors expected today, Wi-Fi details. No input tiles needed; content rotates; On/Off timers set the hours.</li><li><strong>Personal or family home screen.</strong> Shows your apps and inputs, weather, a shared calendar. An app grid built from the TV’s own app list; optionally a Home-button watcher.</li><li><strong>Team status board.</strong> Shows builds, uptime, sales figures from your APIs. Big numbers, frequent refresh, nobody expected to use the remote.</li><li><strong>Menu board or signage.</strong> Shows a menu or price list. Content from a spreadsheet or CMS through your backend; scheduled power.</li><li><strong>Holiday-rental welcome screen.</strong> Shows check-in details, house rules, local tips. Opens at power-on, with a row of streaming apps for guests.</li></ul><h3>What stays the same, and what you change</h3><ul><li><strong>Same for every launcher:</strong> Developer Mode and its monthly Extend, packaging and installing with ares, registering the app as an input, Home Auto Launch off, and opening apps or inputs through Luna.</li><li><strong>Yours to change:</strong> appinfo.json (a new id and title), the layout and styles, the data source, and a small config file per TV with the things that differ between screens, such as the room name or which tiles to show.</li></ul><h3>A minimal starter</h3><p>This is a complete home screen with three tiles: arrow keys move focus, the pointer works, and OK opens the app or input. Put it in index.html next to the appinfo.json from section 5, give .tile and .focus some styles (a big tile; a ring and a slight scale for focus), then package and install it.</p><pre>&lt;div id=&quot;tiles&quot;&gt;&lt;/div&gt;<br>&lt;script&gt;<br>var TILES = [                          // IDs come from the TV: see &quot;Showing the TV&#39;s apps&quot;<br>  { id: &#39;com.webos.app.hdmi1&#39;, label: &#39;HDMI 1&#39; },<br>  { id: &#39;netflix&#39;,             label: &#39;Netflix&#39; },<br>  { id: &#39;youtube.leanback.v4&#39;, label: &#39;YouTube&#39; }<br>];<br>var KEY = { LEFT: 37, RIGHT: 39, OK: 13 };<br>var box = document.getElementById(&#39;tiles&#39;), focus = 0;<br>var bridges = [];                      // keep each bridge alive until its call is done</pre><pre>TILES.forEach(function (t, i) {<br>  var el = document.createElement(&#39;div&#39;);<br>  el.className = &#39;tile&#39;;<br>  el.textContent = t.label;<br>  el.onmouseover = function () { setFocus(i); };   // Magic Remote pointer<br>  el.onclick = function () { launch(t.id); };<br>  box.appendChild(el);<br>});</pre><pre>function setFocus(i) {<br>  focus = Math.max(0, Math.min(i, TILES.length - 1));<br>  for (var k = 0; k &lt; box.children.length; k++) {<br>    box.children[k].classList.toggle(&#39;focus&#39;, k === focus);<br>  }<br>}</pre><pre>function launch(id) {<br>  var b = new PalmServiceBridge();<br>  bridges.push(b);<br>  b.call(&#39;luna://com.webos.applicationManager/launch&#39;, JSON.stringify({ id: id }));<br>}</pre><pre>document.addEventListener(&#39;keydown&#39;, function (e) {<br>  if (e.keyCode === KEY.LEFT) setFocus(focus - 1);<br>  else if (e.keyCode === KEY.RIGHT) setFocus(focus + 1);<br>  else if (e.keyCode === KEY.OK) launch(TILES[focus].id);<br>  else return;                        // Back (461) and the rest: ignore, this is home<br>  e.preventDefault();<br>});<br>setFocus(0);<br>&lt;/script&gt;</pre><p>I checked this in a browser with a stand-in for PalmServiceBridge: focus stops at both ends, Back is ignored, and OK, a click or a pointer hover act on the right tile. On the TV, the launch call is the same one my room display uses.</p><h3>Showing the TV’s apps</h3><p>LG’s published Luna services for apps don’t include a way to list the installed apps. Read the list from the laptop instead, over SSAP: com.webos.applicationManager/listLaunchPoints returns each app&#39;s ID, name and icon link. Save it into a file inside the app and reinstall when you add apps. Inputs come the same way from tv/getExternalInputList; the appId it returns (for example com.webos.app.hdmi1) is what you launch.</p><h3>The Home button</h3><p>Without root, the Home button always opens LG’s home. If you want Home to land on your launcher, the known workaround runs outside the TV: a small program on an always-on device subscribes over SSAP to the foreground app (com.webos.applicationManager/getForegroundAppInfo) and reopens your app whenever LG&#39;s home appears (com.webos.app.home on my TV). I wrote one but didn&#39;t need it, because the room display only has to be there at power-on.</p><h3>What this can’t do</h3><ul><li><strong>It isn’t a lock-down.</strong> Anyone with the remote can press Home and open LG’s apps, and an unrooted app can’t stop that. For a kids’ launcher or a public kiosk that must not be escaped, use a display built for it, such as LG’s commercial signage range.</li><li><strong>It can’t remove LG’s own apps or the ads in LG’s home.</strong> Turn off Home Promotion and Content Recommendation in the settings, and filter ad and tracking domains with a DNS blocker on your network.</li><li><strong>Each TV needs Developer Mode switched on once, at the TV,</strong> and extended about monthly.</li></ul><h3>10. Limits, upkeep and gotchas</h3><p>Without root, a few things stay out of reach, and Developer Mode needs a little care.</p><ul><li><strong>The Home button still opens LG’s home screen.</strong> webOS gives apps no way to replace it. My app is one press away under Input.</li><li><strong>Developer Mode lasts 1000 hours.</strong> My TV showed 999 hours after switching it on; older guides mention 50. Press <em>Extend</em> in the Developer Mode app about once a month. If it lapses, the TV removes the app and it has to be installed again.</li><li><strong>A TV switched on by its On Timer may switch itself off.</strong> <a href="https://www.lg.com/au/support/product-help/CT20088015-20153123658166">LG’s support pages</a> say it turns off if the remote isn’t used for 2 hours after a timer power-on (4 hours on some models). One press in the morning avoids it.</li></ul><p><strong>What went wrong, and the fix:</strong></p><ul><li><strong>Developer sign-in refused.</strong> The account was registered in another country than the TV. Fix: create an account in the TV’s country.</li><li><strong>Tools lost the TV.</strong> The router gave it a new IP address. Fix: re-pair with the saved key; set a DHCP reservation.</li><li><strong>SSH login failed after getting the key.</strong> The key is locked with the passphrase. Fix: save the passphrase in ares’ device settings.</li><li><strong>TV powered on to LG’s home.</strong> Home Auto Launch was on. Fix: turn it off in Home Settings.</li><li><strong>Script errors on the TV only.</strong> Chromium 79 lacks newer JavaScript and CSS. Fix: stick to ES2015 and older CSS.</li><li><strong>HTML page instead of JSON.</strong> The hosting platform’s bot challenge. Fix: a firewall rule that lets the TV endpoints through.</li><li><strong>Empty calendar after a restart.</strong> The schedule was only kept in memory. Fix: save the last reply on the TV.</li></ul><h3>11. Glossary</h3><ul><li><strong>ACG:</strong> LG’s permission groups for Luna messages; opening apps needs application.launcher.</li><li><strong>ADB:</strong> Android’s remote command tool. LG TVs don’t have it.</li><li><strong>appinfo.json:</strong> A webOS app’s ID card: ID, name, first page, permissions.</li><li><strong>ares:</strong> LG’s command-line tools to package, install and launch apps.</li><li><strong>Client key:</strong> The secret a TV hands back after pairing; it replaces the “Allow?” prompt.</li><li><strong>CORS:</strong> The browser rule deciding whether a page may read another site’s responses.</li><li><strong>Developer Mode:</strong> LG’s official mode for installing your own apps on a TV.</li><li><strong>DHCP:</strong> How a router hands out IP addresses automatically.</li><li><strong>eim:</strong> The TV’s input manager; addDevice makes an app an input.</li><li><strong>Focus:</strong> The one element the arrow keys and OK act on; the TV’s equivalent of a cursor.</li><li><strong>Home Auto Launch:</strong> Setting that forces LG’s home screen at power-on.</li><li><strong>IPK:</strong> The webOS app package file.</li><li><strong>Luna bus:</strong> webOS’s internal message system, with luna:// addresses.</li><li><strong>Port:</strong> A numbered door for one service on a device (3001 for SSAP, 9922 for SSH here).</li><li><strong>Preflight:</strong> The OPTIONS request a browser sends before a request with custom headers.</li><li><strong>prisoner:</strong> The restricted user Developer Mode logs you in as.</li><li><strong>Overscan:</strong> A TV cropping the edges of the picture; the reason for a safe area.</li><li><strong>Root:</strong> Full administrator access; not used here.</li><li><strong>Safe area:</strong> The part of the screen, about 5% in from each edge, where text and controls belong.</li><li><strong>SSAP:</strong> LG’s remote-control protocol over a WebSocket on port 3001 (usually expanded as Second Screen Application Protocol).</li><li><strong>SSDP:</strong> Network-wide discovery: “which devices offer this service?”</li><li><strong>SSH:</strong> Encrypted remote command-line login.</li><li><strong>WebSocket:</strong> A network connection that stays open for two-way messages.</li><li><strong>webOS:</strong> LG’s TV operating system, built on Linux.</li></ul><h3>12. Sources</h3><ul><li><a href="https://github.com/humblemuzzu/dumbtv">dumbtv</a>: the Fire TV and Android TV project that started this, and its notes on why LG is different.</li><li>LG’s developer documentation: the <a href="https://webostv.developer.lge.com/develop/getting-started/developer-mode-app">Developer Mode app</a>, the <a href="https://webostv.developer.lge.com/develop/guides/acg-guide">ACG guide</a>, the <a href="https://webostv.developer.lge.com/develop/guides/magic-remote">Magic Remote guide</a> and the <a href="https://forum.webostv.developer.lge.com/t/whats-the-way-to-extend-dev-time-with-webos-cli/28033">1000-hour Developer Mode session</a>.</li><li>LG’s help pages: <a href="https://www.lg.com/us/support/help-library/how-to-set-the-startup-screen-on-your-lg-tv--20155412183664">setting the startup screen</a>, <a href="https://www.lg.com/au/support/product-help/CT20088015-20153123658166">the power-on timer</a> and <a href="https://www.lg.com/africa/support/product-help/CT20080005-20154768393072">OLED burn-in</a>.</li></ul><p><em>Built on an LG 55UP7740PTZ running webOS 6.5, with no root and no firmware changes. Everything here is reversible: switching Developer Mode off removes the app, and the input registration can be removed with </em><em>eim/deleteDevice.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78b4bce72f89" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>