Skip to content

Updating and uninstalling

ssh root@<tv-ip> /var/lib/tvweb/tvwebctl status    # start | stop | restart | status

Updating

How depends on the install. One with a Server tab in its dashboard updates itself; an older one is updated by deploying again, after which it has the tab.

With the Server tab. Opening it looks for a newer release, and Check now looks again. Install puts it on and restarts the server, and Roll back returns to the version it replaced.

Home Assistant can offer the same install while the daily check is on.

Over SSH:

ssh root@<tv-ip> /var/lib/tvweb/tvwebctl update           # install the latest release
ssh root@<tv-ip> /var/lib/tvweb/tvwebctl update --check   # report without installing
ssh root@<tv-ip> /var/lib/tvweb/tvwebctl rollback         # put the previous version back

Without it, or for something unreleased, pull the latest code into the clone from step 1 and deploy again, with the flags used the first time:

cd lg-webos-dashboard/server
git pull
./deploy.sh <tv-ip>

Only the server's own files are replaced; settings are kept.

Previous versions are saved to allow instant rollback via tvwebctl rollback.

See docs/IMPLEMENTATION.md for client probing order and manual rollback details.

Checking automatically

Off by default, because it reaches off the LAN without anyone asking.

Check daily in the Server tab switches it on, as does config.json:

{ "update": { "check": true, "intervalHours": 24 } }

With it on, the server asks GitHub for the latest release once a day, the dashboard footer shows a newer version next to the installed one, and Home Assistant gets the update entity.

The request says nothing about the TV beyond the address any HTTP request reveals.

Uninstalling

ssh root@<tv-ip>
/var/lib/tvweb/tvwebctl stop
rm -rf /var/lib/tvweb /media/developer/temp/glasshouse-install
rm -f /var/lib/webosbrew/init.d/50-tvweb* /var/lib/webosbrew/init.d/20-tvweb-services /var/lib/webosbrew/init.d/20-services.sh
rm -f /var/lib/webosbrew/tvweb-boot.log*

Nothing on the TV's read-only rootfs is ever modified. What the dashboard changes on the TV lists everything else, including the settings that uninstalling leaves as they are.