$ luna-atlas --cat db

Database (db8) luna-send commands.

db8, webOS's built-in JSON database that apps and services store data in. 274 methods in 25 services.

274methods
25services
190documented
114public
17flagged dangerous

open Database (db8) in the catalog ↗

Services

servicemethodswhat it does
com.webos.service.db52DB8 database service: lets apps store persistent JSON data as typed 'kinds' with indexed queries (find/get/put/del/batch), compaction and…
com.palm.db38Legacy alias for the db8 JSON database (com.webos.service.db): stores and queries objects with find/get/del/batch, manages kinds, and…
com.palm.tempdb38Temporary (volatile) db8 database instance: same JSON object-store API as the main database (find/get/del/batch, kinds, compaction,…
com.webos.epgdb35DB8 database instance for EPG (electronic program guide) data: stores typed records with find/get/del/batch queries, plus EPG backup,…
com.webos.mediadb35Media metadata database (a db8-style store, including EPG data): find, get, put, delete and batch records, compact and dump the store, and…
com.webos.accountdb28DB8 database instance for user-account data: stores typed records (kinds) with find/get/put/del/batch queries, plus compaction,…
com.webos.service.irdbmanager24IR database manager: manages the infrared code database for controlling external devices, listing brands/manufacturers and key lists,…
com.webos.service.utp.ssu3System software update over-the-air helper (utp stack): starts/cancels OTA updates, reports progress, version, and status, and manages…
com.webos.service.micomservice2MICOM microcontroller service: reports power on/off history, OLED self-diagnosis, IR custom codes and hardware diagnostics, and controls…
com.webos.service.personalsoundwizard2Personal sound wizard service that gets and sets sound-bar status and personalization settings.
com.webos.service.utp.externaldevice2UTP external-input/device service: reports current and last input, external-input and signal state, switches inputs, and handles CEC IDs…
com.webos.service.wowplay2WOWCAST wireless-audio/soundbar service: pairs and connects soundbars over BLE and Wi-Fi P2P, reports soundbar status, calibration and…
com.webos.app.igallery.preview1Appears to back the image-gallery preview app: creates gallery database and account folders, lists view themes, and reports status via the…
com.webos.service.admanager1Advertising manager: issues banner/asset ad requests, manages the advertising ID, tracking contexts and cookies, EULA/consent (CMP) checks…
com.webos.service.asc1ASC service handling BLE advertising and device registration (including Wake-on-BLE): start/stop advertising, read/register BLE devices,…
com.webos.service.avmutemanager1Audio/video mute manager: coordinates AV mute across clients, tracking mute status, owners, timing, and registered services, and setting…
com.webos.service.commercial.scapadapter1Commercial/pro-TV SCAP adapter (set-top/conditional-access integration) with a large configuration surface: OSD language and lock, picture…
com.webos.service.factorymanager1Factory/production manager: runs factory test commands, performs calibration (ADC, Vcom, white balance), controls LED bar and test…
com.webos.service.ftms1Fitness-machine (BLE FTMS) service: connects to fitness equipment, reads and saves workout data, and manages a blocked-device scan filter.
com.webos.service.ics1IR-blaster / universal-control service: manages a database of IR and IP-controlled devices, with brand/model/key lists, device add/delete…
com.webos.service.ledbarcontroller1Controls the LED backlight bar (single method to set the A+ LED-bar control).
com.webos.service.pbsw1Broadcast channel-map service: builds and edits the channel list and favorite groups, queries channel info and EPG events, and reports…
com.webos.service.sm1Security manager: handles app security permissions, USB-access authentication, device IDs, licensing, and cryptographic operations (file…
com.webos.service.tts1Text-to-speech and audio-guidance service: speaks text, manages voice/language packs, toggles audio guidance, and controls playback…
com.webos.service.update1Software/firmware update service: checks for, downloads and applies system updates, reports progress and current software/hardware…

Documented methods to start with

Public and SSAP methods from LG's documentation, none flagged dangerous. Each opens in the catalog with its full parameter table. Run them on a rooted TV or in Developer Mode.

batch publiccom.palm.db

Executes multiple database operations in one request.

params: operations

$ luna-send -n 1 -f luna://com.palm.db/batch '{}'
del publiccom.palm.db

Deletes JSON data objects.

params: ids, query, purge

$ luna-send -n 1 -f luna://com.palm.db/del '{}'
delKind publiccom.palm.db

Deletes a kind and ALL objects of that kind.

params: id

$ luna-send -n 1 -f luna://com.palm.db/delKind '{}'
find publiccom.palm.db

Returns objects matching the query.

params: query, count, watch

$ luna-send -n 1 -f luna://com.palm.db/find '{}'
get publiccom.palm.db

Retrieves objects by IDs (fastest retrieval).

params: ids

$ luna-send -n 1 -f luna://com.palm.db/get '{}'
listActiveMedia publiccom.palm.db

Returns a list of active attached media, and shards.

$ luna-send -n 1 -f luna://com.palm.db/listActiveMedia '{}'
merge publiccom.palm.db

Updates properties of existing objects.

params: objects, query, props

$ luna-send -n 1 -f luna://com.palm.db/merge '{}'
mergePut publiccom.palm.db

The mergePut method updates the properties of existing objects. If an object doesn't exist, a new one will be created in the database. The object to be updated can be specified in one of the following ways: A query An…

params: objects, query, props

$ luna-send -n 1 -f luna://com.palm.db/mergePut '{}'
purgeStatus publiccom.palm.db

The purgeStatus method returns the status of the last run purge command. If the last run purge command was successful, the objects were permanently deleted, and the purgeStatus method will return the updated database…

$ luna-send -n 1 -f luna://com.palm.db/purgeStatus '{}'
put publiccom.palm.db

Stores JSON objects of a kind.

params: objects

$ luna-send -n 1 -f luna://com.palm.db/put '{}'
putKind publiccom.palm.db

Registers a kind with the database.

params: id, owner, schema, sync, extends, indexes, revsets, private

$ luna-send -n 1 -f luna://com.palm.db/putKind '{}'
putPermissions publiccom.palm.db

Grants other apps/services access to the app DB8 data.

params: permissions

$ luna-send -n 1 -f luna://com.palm.db/putPermissions '{}'
reserveIds publiccom.palm.db

Reserves a block of object IDs.

params: count

$ luna-send -n 1 -f luna://com.palm.db/reserveIds '{}'
search publiccom.palm.db

Like find but supports the ? full-text operator.

params: query, watch

$ luna-send -n 1 -f luna://com.palm.db/search '{}'
setShardMode publiccom.palm.db

Marks an external media as transient for the specified DB8 shard Id. This means that all data, relative to the shard, are not required by any application and will be removed by garbage collector. In other words,…

params: shardId, transient

$ luna-send -n 1 -f luna://com.palm.db/setShardMode '{}'
shardInfo publiccom.palm.db

Retrieves the state of a shard, like shard activity, associated media devices, mount point.

params: shardId

$ luna-send -n 1 -f luna://com.palm.db/shardInfo '{}'
watch publiccom.palm.db

Watches for updates that would change a query result.

params: query

$ luna-send -n 1 -f luna://com.palm.db/watch '{}'
batch publiccom.palm.tempdb

The batch method enables apps to execute multiple database operations in one service request. It allows only the following database operations: put get del find (without a watch) merge Atomicity is NOT guaranteed…

params: operations

$ luna-send -n 1 -f luna://com.palm.tempdb/batch '{}'
del publiccom.palm.tempdb

The del method deletes JSON data objects from the database. Apps can specify the objects to be deleted by providing: a set of IDs to be deleted a DB8 query

params: ids, query, purge

$ luna-send -n 1 -f luna://com.palm.tempdb/del '{}'
delKind publiccom.palm.tempdb

The delKind method deletes a Kind from the database. Deleting a Kind deletes ALL data objects of that Kind.

params: id

$ luna-send -n 1 -f luna://com.palm.tempdb/delKind '{}'
find publiccom.palm.tempdb

The find method returns a set of objects that match the query specified in the query parameter. The app can specify the number of results to return. However, if the app does not want to specify a limit, it can set the…

params: query, count, watch, subscribe

$ luna-send -n 1 -f luna://com.palm.tempdb/find '{}'
get publiccom.palm.tempdb

The get method retrieves JSON data objects by ids. This is the fastest way to retrieve data.

params: ids

$ luna-send -n 1 -f luna://com.palm.tempdb/get '{}'
listActiveMedia publiccom.palm.tempdb

Returns a list of active attached media, and shards.

$ luna-send -n 1 -f luna://com.palm.tempdb/listActiveMedia '{}'
merge publiccom.palm.tempdb

The merge method updates the properties of existing objects. The objects can be specified in one of the following ways: A query An array of IDs

params: objects, query, props, ignoreMissing

$ luna-send -n 1 -f luna://com.palm.tempdb/merge '{}'
mergePut publiccom.palm.tempdb

The mergePut method updates the properties of existing objects. If an object doesn't exist, a new one will be created in the database. The object to be updated can be specified in one of the following ways: A query An…

params: objects, query, props

$ luna-send -n 1 -f luna://com.palm.tempdb/mergePut '{}'
purgeStatus publiccom.palm.tempdb

The purgeStatus method returns the status of the last run purge command. If the last run purge command was successful, the objects were permanently deleted, and the purgeStatus method will return the updated database…

$ luna-send -n 1 -f luna://com.palm.tempdb/purgeStatus '{}'
put publiccom.palm.tempdb

The put method stores JSON data objects of a particular Kind into the database. The put method will: Assign an id field to each object, if it was not set. Return the id and rev for each stored object.

params: objects, shardId

$ luna-send -n 1 -f luna://com.palm.tempdb/put '{}'
putKind publiccom.palm.tempdb

The putKind method registers a kind with the database. Kinds define the owner, and the indexes for a JSON data object. Indexes can be composed of single or multiple properties. When you create your index, be aware that…

params: id, owner, schema, sync, extends, indexes, revsets, private

$ luna-send -n 1 -f luna://com.palm.tempdb/putKind '{}'
putPermissions publiccom.palm.tempdb

The putPermissions method enables other apps or services to access an app's stored DB8 data. The app can give permissions to access data objects of a specific Kind.

params: type, object, caller, operations, create, read, update, delete

$ luna-send -n 1 -f luna://com.palm.tempdb/putPermissions '{}'
reserveIds publiccom.palm.tempdb

When a client service creates objects that have references between each other, the service can ask the database through the reserveIds method to regenerate ids of objects. The client service can use such ids as…

params: count

$ luna-send -n 1 -f luna://com.palm.tempdb/reserveIds '{}'
Before you run anything. Methods marked dangerous can change, reset or break things on the TV. Running one from here is exactly as safe as typing the same luna-send yourself. See dangerous.md.

Other categories