Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-20 Thread olivaar
i found that this documentationis ok https://github.com/elParaguayo/LMS-CLI-Documentation/blob/master/LMS-CLI.md with this documentation i realized a smarthome adapter in node/javascript https://github.com/oweitman/ioBroker.squeezeboxrpc on base of an library that i updated the dependencies

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-14 Thread erland
ThatPaolo wrote: > Oh > > no... 13 years old :( As mentioned earlier in the thread there is no documentation that’s 100% updated, unfortunately this tends to be the case in many projects so it isn’t unique for LMS. At least the source code for LMS and SqueezePlay is available so you can always

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-13 Thread ThatPaolo
ThatPaolo wrote: > oh > > yes! > > :) Oh no... 13 years old :( ThatPaolo's Profile: http://forums.slimdevices.com/member.php?userid=71650 View this thread: http://forums.slimdevices.com/showthread.php?t=114363

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-13 Thread ThatPaolo
erland wrote: > would the old documentation from squeezeplay browse protocol be useful > ? > https://htmlpreview.github.io/?https://github.com/logitech/squeezeplay/blob/49f41e48311ade3a4a879b4b27283036363724b5/src/squeezeplay/doc/html/jivemlon.html > > it’s probably not updated with latest

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-13 Thread erland
mherger wrote: > > The CLI docs also don’t mention anything about the menu: parameters > or > > window style. > > > > There must be a comprehensive doc for all this somewhere :) > > Unfortunately there's none. At least not a comprehensive doc. There's > something int he old wiki, but it's

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-13 Thread Michael Herger
The CLI docs also don’t mention anything about the menu: parameters or window style. There must be a comprehensive doc for all this somewhere :) Unfortunately there's none. At least not a comprehensive doc. There's something int he old wiki, but it's incomplete, and pretty sure not accurate

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-12 Thread wt0
ThatPaolo wrote: > I am working on a UWP controller (https://github.com/PaoloM/Fiona) and I > could really use some advice on how to deal with what is returned by > apps :)Sorry I already have a UWP controller for sale in the Windows Store, so it's not really in my interest to provide too much

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-12 Thread ThatPaolo
wt0 wrote: > AFAIK there's no documentation on that. Wish there was. It would've > made my life lot easier. > > BTW, the json server responses are filled with inconsistencies like the > one you mentioned. > > Sent from my Pixel 3 using Tapatalk I am working on a UWP controller

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-12 Thread wt0
ThatPaolo wrote: > Thank you, and that’s what I’ve done so far. The problem is in how to > interpret which fields are used in each type of response. For example, > when you request a list of items from an app like Spotty, there are a > bunch of structures in the returned JSON that might or might

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-12 Thread ThatPaolo
Thank you, and that’s what I’ve done so far. The problem is in how to interpret which fields are used in each type of response. For example, when you request a list of items from an app like Spotty, there are a bunch of structures in the returned JSON that might or might not be the ones you’re

Re: [SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-12 Thread Michael Herger
Basically you can use /jsonrpc.js to send all kinds of CLI commands and get structured JSON data back: curl -X POST -d '{"id":5,"method":"slim.request","params":["00:04:20:12:34:56",["status","-",1,"tags:uBJjKlaxNo"]]}' http://localhost:9000/jsonrpc.js Now what you need to look for depends

[SlimDevices: Plugins] JSON protocol for 3rd party apps support

2021-04-12 Thread ThatPaolo
I have read the CLI docs that comes with LMS, and I have done some protocol snooping on what exactly is being sent back and forth between a 3rd party controller app (or the web interface itself) and the LMS. I was wondering if there is a better set of documents to understand which fields are