Help needed with JSON commands
#5
(2021-05-04, 18:56)Sidewinder_2011 Wrote:
(2021-05-04, 04:37)dshorrosh Wrote: Update 2 - I turned on verbose logging for JSON, and found in the log:

The 'movies' and 'music' commands did not result in an error but were immediately followed by "Value does not match any of the enum values in type window"
  • jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videodb://movies/titles/"},"id":"1"}}
  • jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"musicdb://albums/"},"id":"1"}}

The 'weather' command resulted in an error "Failed to parse jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"weather"},"id":"1"}}"

Hopefully this will help identify the problem or fix.

Thanks in advance.

hiya  you nearly had it right , you just left out the ,"parameters": 

try this

eg 

{"jsonrpc":"2.0","method":"GUI.ActivateWindow","id":1,"params":{"window":"videos","parameters":["videodb://movies/titles"]}}

{"jsonrpc":"2.0","method":"GUI.ActivateWindow","id":1,"params":{"window":"videos","parameters":["musicdb://albums/"]}}


for the weather its 
{"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"weather"},"id":"1"}  , you add too many } at the end.
Thank you for the reply!  I'll try it out this evening and report back.
Win10 64-bit
Kodi 20.1 / Mimic-LR
Reply


Messages In This Thread
Help needed with JSON commands - by dshorrosh - 2021-05-03, 01:00
RE: Help needed with JSON commands - by dshorrosh - 2021-05-04, 19:33
Logout Mark Read Team Forum Stats Members Help
Help needed with JSON commands0