Server discovery

Logitech Media Server discovery

Note

Unfortunately I don’t remember where I found this script so I can’t give the credit it deserves.

My updates were very very minor!

class LMSTools.discovery.LMSDiscovery

Class to discover Logitech Media Servers connected to your network.

all()

Scan and return all found entries.

Return type:list
Returns:list of servers found. Each server is a dict.

Example:

>>>from LMSTools import LMSDiscovery
>>>LMSDiscovery().all()
[{'data': 'EJSON9000',
  'from': ('192.168.0.1', 3483),
  'host': '192.168.0.1',
  'port': 9000}]
scan()

Scan the network for servers.

After running, any servers will be stored in entries.