I need the user's local IP address and port to enable playing music on
an Echo device as speaker rather than a Squeezebox. When the user
account-links, I only get their external address (e.g. ngrok). When
using the Material skin and in debug-JSON mode, I can see the JSON
command that extracts the server info such as local IP-address and port
as follows:

{ method => 'slim.request', params => ["", ["material-skin", "info"]]}

which returns the following for me:

> 
> {
> "method" : "slim.request",
> "params" : [
> "0",
> [
> "material-skin",
> "info"
> ]
> ],
> "result" : {
> "info" : "{"server":[ {"label":"Version", "text":"7.9.2 -
> 0026.1567524015 @ Wed Sep  4 12:28:40 CEST 2019"},{"label":"Hostname",
> "text":"DiskStation"},{"label":"Server IP Address",
> "text":"192.168.178.3"},{"label":"Operating system", "text":"Synology
> DSM 6.2.2 - EN - utf8"},{"label":"Platform Architecture",
> "text":"x86_64-linux"},{"label":"Perl Version", "text":"5.24.0 -
> x86_64-linux"},{"label":"Audio::Scan",
> "text":"0.95"},{"label":"IO::Socket::SSL", "text":"2.037"},
> {"label":"Database Version", "text":"DBD::SQLite 1.34_01 (sqlite
> 3.7.7.1)"}]}"
> }
> }
> 

Any idea what the equivalent would be for the Default skin? I cannot
rely on a user having Material installed. I searched all the CLI docs
but don't find any mention of it.


------------------------------------------------------------------------
philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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

Reply via email to