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
https://github.com/oweitman/squeezenode



olivaar's Profile: http://forums.slimdevices.com/member.php?userid=64848
View this thread: http://forums.slimdevices.com/showthread.php?t=114363

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 look in the source code to get a better
understanding.

It’s hard to answer generic questions about parts that aren’t
documented. If you really want help I suspect you have a better chance
if you ask about a specific response attribute or request you have
trouble understanding. Try to be as specific as possible, then it’s a
lot easier for someone to give you an answer. Remember that everyone on
this forum is here on their spare time these days. People tend to be
very helpful if you ask specific questions while generic questions often
remain unanswered because it takes a lot of time to answer them and you
don’t even know if you are answering the right thing.



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
Developer of 'many plugins/applets'
(https://wiki.slimdevices.com/index.php/User_Erland.html)
*Starting with LMS 8.0 I no longer support my plugins/applets* ('see
here for more information'
(https://forums.slimdevices.com/showthread.php?49483-Announce-New-versions-of-erlands-plugins=998836=1#post998836)
)

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=114363

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 changes but it might give some
> clues.

oh

yes!

:)



ThatPaolo's Profile: http://forums.slimdevices.com/member.php?userid=71650
View this thread: http://forums.slimdevices.com/showthread.php?t=114363

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 incomplete, and pretty sure not 
> accurate in all places.
> 
> See eg. 
> https://wiki.slimdevices.com/index.php/Home_Menu_Items_Versus_SlimbrowseItems.html

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 changes but it might give some
clues.



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
Developer of 'many plugins/applets'
(https://wiki.slimdevices.com/index.php/User_Erland.html)
*Starting with LMS 8.0 I no longer support my plugins/applets* ('see
here for more information'
(https://forums.slimdevices.com/showthread.php?49483-Announce-New-versions-of-erlands-plugins=998836=1#post998836)
)

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=114363

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 in all places.


See eg. 
https://wiki.slimdevices.com/index.php/Home_Menu_Items_Versus_SlimbrowseItems.html

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 help.

Besides, it's a bit too complicated for any amount of help I can provide
here.  It took a lot of trial and error to get it right.

Sent from my Pixel 3 using Tapatalk



--
Squeezebox apps for webOS, Android and Windows Phone,
http://www.angrygoatapps.com

wt0's Profile: http://forums.slimdevices.com/member.php?userid=18760
View this thread: http://forums.slimdevices.com/showthread.php?t=114363

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 (https://github.com/PaoloM/Fiona) and I
could really use some advice on how to deal with what is returned by
apps :)



ThatPaolo's Profile: http://forums.slimdevices.com/member.php?userid=71650
View this thread: http://forums.slimdevices.com/showthread.php?t=114363

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 not be the
> ones you’re looking for. Icon, icon_id, image, all carry the url of the
> image for the item, but which one is used depends on the context and
> where you are in the hierarchy. 
> 
> 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 :)

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



--
Squeezebox apps for webOS, Android and Windows Phone,
http://www.angrygoatapps.com

wt0's Profile: http://forums.slimdevices.com/member.php?userid=18760
View this thread: http://forums.slimdevices.com/showthread.php?t=114363

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 looking for. Icon, icon_id, image, all carry the url of the
image for the item, but which one is used depends on the context and
where you are in the hierarchy. 

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 :)



ThatPaolo's Profile: http://forums.slimdevices.com/member.php?userid=71650
View this thread: http://forums.slimdevices.com/showthread.php?t=114363

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


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 on what you are trying to achieve.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins