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.

I have updated the shell LMS query scripts on the GITHUB to allow for
username and password on LMS installations.  
    
- The script *qry_alb_sec.sh* should be renamed to replace the
  existing script *qry_alb.sh*.  Remember to update the username,
  password, ip address, HA_link and HA_API_Password.
- The script *qry_alb_song_sec.sh* should be renamed to replace the
  existing script *qry_alb_song.sh*.  Remember to update the username,
  password, ip address, HA_link and HA_API_Password.
  
Give that a go, seems to work for me here.  Ynot.

The change log for those interested is:
    
- Added an extra line "login username password" to the CLI query to
  authenticate before executing the query
- Replaced *nc* command with *socat* for additional flexibility and to
  allow the connection to stay open to process multiple commands.
  
Typical query statement would be:  
Code:
--------------------
    query=$(printf "login username password\nartists 0 20 search:$1 tags:a \n" 
| socat stdio tcp:192.168.0.XX:9090,shut-none )
--------------------



*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