Skip to content

Instantly share code, notes, and snippets.

function webosScreensaverLaunch() {
webOS.service.request('luna://org.webosbrew.hbchannel.service', {
method: 'exec',
parameters: {
command: 'luna-send -n 1 luna://com.webos.service.tvpower/power/turnOnScreenSaver {}'
},
onSuccess: function(event) {
console.log('Screensaver', 'webOS screenSaver [Success]', JSON.stringify(event));
},
@aabytt
aabytt / apple-tv-screen-saver-feeds.txt
Created April 24, 2024 12:53 — forked from theothernt/apple-tv-screen-saver-feeds.txt
A list of the feeds Apple uses for its video screensavers
tvOS 10: 1080p + H.264
http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json
tvOS 11: 1080p/4K + SDR/HDR + HEVC
https://sylvan.apple.com/Aerials/2x/entries.json
https://t27q97zg19.execute-api.us-east-1.amazonaws.com/prod/aerialAltJSON/4kEntites.json
tvOS 12: 4K + SDR/HDR + HEVC, 1080p + H.264, localised descriptions
https://sylvan.apple.com/Aerials/resources.tar
@aabytt
aabytt / keycodes.txt
Created February 3, 2023 13:03 — forked from Simon34545/keycodes.txt
Keycodes on LG Full Function Standard TV Remote Control
POWER 116
TV_VIDEO 241
CC 799
RF_EMANUAL 934
SEARCH 217
TV 377
1 2
2 3
3 4
4 5
@aabytt
aabytt / keycodes.txt
Created February 3, 2023 13:03 — forked from Simon34545/keycodes.txt
Keycodes on LG Full Function Standard TV Remote Control
POWER 116
TV_VIDEO 241
CC 799
RF_EMANUAL 934
SEARCH 217
TV 377
1 2
2 3
3 4
4 5
@aabytt
aabytt / cursors.sh
Created September 28, 2022 13:41 — forked from Informatic/cursors.sh
simple tool to apply overlayfs over specific directories
#!/bin/sh
# Directory to store overlays in (one directory structure is created per overlay configured down below)
OVERLAY_BASE=/home/root/overlays
overlay() {
set -e
overlay_id="$(echo $1 | sed 's;/;__;g')"
unset TARGET SOURCE FSTYPE OPTIONS
eval $(findmnt -P $1)
@aabytt
aabytt / README.md
Created September 19, 2022 06:46 — forked from Informatic/README.md
openlgtv webOS hacking notes

This is just a dump of some interesting undocumented features of webOS (3.8 specifically, on early 2018 4k LG TV) and other development-related tips.

Homebrew app ideas

{
"id": "ApplicationDescription",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Application ID, e.g., \"com.newco.app.myApp\" . Every application has a unique ID, created from reverse DNS naming conventions."
},
"main": {
@aabytt
aabytt / auto-ovpn.sh
Created April 15, 2022 11:39 — forked from lowstz/auto-ovpn.sh
Linux openvpn auto reconnect script
#!/bin/bash
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
### Thanks Xream's Work XD
# if you don't have several vpn servers to select, you can comment following line
# and use your openvpn config file name to replace "${host}.ovpn" in while loop.
read -p "Select the host: " host
@aabytt
aabytt / LgMagicRemoteKeys.md
Created January 27, 2022 08:06 — forked from Ircama/LgMagicRemoteKeys.md
Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

This procedure allows substituting one or both Netflix and Amazon keys of the Magic Remote Control Unit with other apps or TV control menus of the webOS LG TV.

Netflix and Amazon keys can be found just over the Red-Green-Yellow-Blue color buttons of such remote.

Assumption for this procedure is that you accept to uninstall the apps related to the keys to be substituted. Example: if you want to replace the Netflix key, you need to uninstall Netflix (possibly, you are not using Netflix if you do not need such key).

To uninstall Netflix or Amazon Prime, press the Home key of the Magic Remote, select the "LG Content Store" app, press "APP" at the top of the screen, press "My Apps", press the "Rem

@aabytt
aabytt / lg webOS notes.md
Last active April 29, 2024 11:14
more useful stuff on lg webos

Playling a link with standard LG webOS player

  • id - id of the player app, com.webos.app.mediadiscovery for webOS 6+, com.webos.app.photovideo for webOS 3.x-5.x, com.webos.app.smartshare for webOS 1.0-2.x
  • fullPath - url of the video file
  • fileName - name of the video displayed in player. Filename is remembered by the player to continue playback from exit timestamp

from a web app

webOS.service.request("luna://com.webos.applicationManager", {
           method: "launch",