estbeetoo / node-red-contrib-kodi

Node-RED plugin (node) to communicate with Kodi/XBMC
Other
3 stars 4 forks source link

Can't get GUI.ActivateWindow to work #10

Closed moryoav closed 4 years ago

moryoav commented 4 years ago

Is it possible to get an example for GUI.ActivateWindow ? I can't get it to work. I tried quite a lot of permutations.

msg = {
    "cmd": "GUI.ActivateWindow",
    "args" :{
        //"window": "videos,videodb://tvshows/titles,return"
        "window": "videos",
        "parameters" :["videos,videodb://tvshows/titles,return"]
    }
}

return msg;

With or without the parameters section, I don't know...

moryoav commented 4 years ago

Solution:


return {
    payload:
    {
        "cmd": "GUI.ActivateWindow",
        "args" :
        {
            "window": "videos",
            "parameters" :["videodb://tvshows/titles","return"]
        }
    }
};