Comments (11)
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.
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.
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.
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.
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.
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.
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.
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.
And this is from the Samsung's web API reference:
from homebridge-samsung-tizen-applications.
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.
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.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-samsung-tizen-applications.