Code Monkey home page Code Monkey logo

Comments (11)

espilva avatar espilva commented on June 12, 2024

Hi, thanks for your list!

You said that "Updated code list (not exhaustive for the new codes - you can get these using smartThing", could you please describe how? I'm missing a couple of local apps for Spain, Movistar+ and Filmin.

Thanks!!

from homebridge-samsung-tizen-applications.

DaveGut avatar DaveGut commented on June 12, 2024

Sorry, I was mistaken. Sadly, our friends at Samsung provide no clear access to the list. You can use the applaunch capability in
SmartThings to load the app by name. Definition of app launch:

[
id:custom.launchapp, version:1, status:proposed, name:launchApp, ephemeral:false,
attributes:[:],
commands:[
launchApp:[name:launchApp, arguments:[
[name:appId, optional:true, schema:[type:string]],
[name:appName, optional:true, schema:[type:string]]]]]]

from homebridge-samsung-tizen-applications.

espilva avatar espilva commented on June 12, 2024

Thanks again, @DaveGut!

I'm afraid I'm looking for a REST interface, not sure if the applaunch by name capability is exposed through REST.

from homebridge-samsung-tizen-applications.

DaveGut avatar DaveGut commented on June 12, 2024

Actually, i use https calls to the TV device in determining if an app is installed and then running the app. The code is in the zip file below undern name "davegut.samsungTvApps.

Code tests known apps against the TV set. If the app is installed, it returns a JSON file with the app name and appId. (I know of no way to obtain a list of apps from the TV.)

github.com/DaveGut/HubitatActive/blob/master/SamsungTvRemote/SamsungTVRemote_4_1.zip

from homebridge-samsung-tizen-applications.

DaveGut avatar DaveGut commented on June 12, 2024

Additionally, the SmartThing interface is exposed using HTTP calls. That data is in the file below - where I interface to the SmartThings API. This driver (with the library above) provides local control of remote functions plus local app request/control. In addition, it gets attributes from SmartThings as well as providing non-remote control (like setVolume to an explicit value).

https://github.com/DaveGut/HubitatActive/blob/master/SamsungTvRemote/SamsungTVRemote_4_1.zip

from homebridge-samsung-tizen-applications.

espilva avatar espilva commented on June 12, 2024

Neither do I, though there's an old post at Samsung's development forum with a piece of Javascript code which should get the list of apps:

https://forum.developer.samsung.com/t/app-ids-for-samsung-smart-tv/21687/2

Don't know how to run it, not a Javascript guy. Python would be a different matter.

from homebridge-samsung-tizen-applications.

DaveGut avatar DaveGut commented on June 12, 2024

That code uses the a list of possible apps and checks them one at a time. Same as I do in my code.

from homebridge-samsung-tizen-applications.

espilva avatar espilva commented on June 12, 2024

Now trying to make work this piece of code, that in theory should get the list:

    def app_list(self):
        _LOGGING.debug('Get app list')
        self._ws_send({
            'method': 'ms.channel.emit',
            'params': {
                'event': 'ed.installedApp.get',
                'to': 'host'
            }
        })

        response = self._process_api_response(self.connection.recv())
        if response.get('data') and response.get('data').get('data'):
            return response.get('data').get('data')
        else:
            return response

It's from the Samsungtvws library.

from homebridge-samsung-tizen-applications.

espilva avatar espilva commented on June 12, 2024

And this is from the Samsung's web API reference:

https://developer.samsung.com/smarttv/develop/api-references/tizen-web-device-api-references/application-api.html#ApplicationManager::getAppsInfo

from homebridge-samsung-tizen-applications.

espilva avatar espilva commented on June 12, 2024

Finally!! Another quite comprehensive list of app ids plus how to extract them from the TV:

https://tavicu.github.io/homebridge-samsung-tizen/extra/applications.html#list-with-ids

from homebridge-samsung-tizen-applications.

espilva avatar espilva commented on June 12, 2024

Finally!! Another quite comprehensive list of app ids plus how to extract them from the TV:

https://tavicu.github.io/homebridge-samsung-tizen/extra/applications.html#list-with-ids

@DaveGut

from homebridge-samsung-tizen-applications.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.