Hi
I wonder how to send the URL to the browser?
I manage to display the Browser on my LG webOS with a function:
msg.payload = "com.webos.app.browser";
return msg;
I send this to the app node in node-red-contrib-lgtv.
What I need is: How do I send the URL? I tried adding a function with:
msg.topic = "www.blabla.com";
return msg;
and
msg.params = "http://www.blabla.com";
return msg;
and
msg.target = "http://www.blabla.com";
return msg;
and
msg.params.target.= "http://www.blabla.com";
return msg;
The last threw an error:
"TypeError: Cannot set properties of undefined (setting 'target')"
I found something like:
webOSDev.launch({
id: webOSDev.APP.BROWSER,
params: {
target: 'http://www.your-web-page.com', // target should be
},
onSuccess(res) {
// do something
},
onFailure(res) {
// handle error
},
});
but I don't understand how to do something like this.
Thank you for giving me a hint.