2021-05-04, 18:56
(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.