Re: [SlimDevices: Plugins] Spotty and JSON RPC vs CLI

2020-08-21 Thread Michael Herger
I've written a control interface in Pascal (Free Pascal) to control my Ok, no Perl needed then. I don't see where exactly you're facing issues. But make sure to instead of asking LMS for a URL, you use your query with "item_id:123", putting the ID from the element you want to navigate. That's

Re: [SlimDevices: Plugins] Spotty and JSON RPC vs CLI

2020-08-21 Thread littla
I've written a control interface in Pascal (Free Pascal) to control my home. Part of that is as interface to LMS that lets me select and schedule music. It uses HTTP POST commands to the jsonprc.js page in LMS to browse the server and control things (like add something to the queue). Unfortunatel

Re: [SlimDevices: Plugins] Spotty and JSON RPC vs CLI

2020-08-19 Thread Michael Herger
Around line 281 the JSON response to be returned looks like this: I think you should describe what you're trying to do in more detail. Are you implementing your own client in Perl? -- Michael ___ plugins mailing list plugins@lists.slimdevices.com h

Re: [SlimDevices: Plugins] Spotty and JSON RPC vs CLI

2020-08-19 Thread littla
Thanks karlek, I saw the error in the code I copied in and was editing it when I saw your post. I've corrected the original post now, but the code was not the issue. I'm trying what you said, and have the jsonrpc on debug level logging. Around line 281 the JSON response to be returned looks l

Re: [SlimDevices: Plugins] Spotty and JSON RPC vs CLI

2020-08-19 Thread karlek
I don’t know anything about the Spotty API and only basics about CLI/JSONRPC but setting logging of jsonrpc to „Information“ helped me a lot to understand where I made my mistakes. There is a typo in your JSON object BTW: the second 0 should be a 10, I guess. -

[SlimDevices: Plugins] Spotty and JSON RPC vs CLI

2020-08-19 Thread littla
Hello, I've encountered a strange problem and I'd like to know if it's something anyone else has seen and if it's something I'm doing wrong, and maybe what I can do to overcome it. I'm trying to browse the Spotty plugin from software I made for my house (This works for all other plugins until S