bitterroots wrote: 
> I have not been able to get the query to work without authentication.
> Removing the password protection allows it to work. I think that the
> main issue with the password is that it only works in a telnet session.
> There does not seem to be a log in/log out. I am currently using HTML
> webhooks through IFTTT.  The usage is
> http://USERNAME:password@HA_Link.duckdns.org:9000/anyurl?p0=radiotime&p1=playlist&p2=play&p3=item_id:0.5<lf>&player=XX:XX:XX:XX:XX:XX.
> But you have to issue it each time. If I use this: | nc 192.168.1.X |
> \login USERNAME password ) I get a password prompt when I run the
> script. But it will not take the typed password.

Looking at the way the shell scripts are written, it opens and closes
the connection each time it asks for something from the LMS CLI
interface.  In order to make the login thing work, I believe you would
need to issue two lines at each call, the first for login, the second
being the request.

As an example:  

query=$(printf "artists 0 20 search:$1 tags:a \nexit\n" | nc localhost
9090 )

becomes

query=$(printf "login username password\nartists 0 20 search:$1 tags:a
\nexit\n" | nc localhost 9090 )

Give something like that a shot and let me know.  Ynot



*software* - logitech media server version: 7.9.1, home assistant
0.75.3, dialogflow - v.2 api, lms controls app - voice control of lms, 
openmediavault 4.1.9 - storage
*add-ons* - spotty, upnp / dlna bridge, chromecast bridge, 
*players* - sonos, upnp, pi3 - pi core player 3.5.0, android- sb player
v1.4.0, airplay to googlehome and minis
*hardware* - server - i7-3.4ghz, 4gb ram, 6tb storage, debian - 4.16.5
------------------------------------------------------------------------
ynot1234567890's Profile: http://forums.slimdevices.com/member.php?userid=66569
View this thread: http://forums.slimdevices.com/showthread.php?t=109273

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to