ich versuche mich gerade an der Anbindung meines Sonos Lautsprechers.
Wenn ich den Sonos Broker ausführe bekomme ich folgende Fehlermeldung.
Code:
admin@smarthome:/usr/shSonos/server.sonos/dist/sonos_broker$ sonos_broker -d 2016-06-11 12:17:58,906 DEBUG MainThread Google-TTS 'local mode' disabled! Only streaming mode available. -- sonos_broker:__init__:259 2016-06-11 12:17:58,908 INFO MainThread Sonos Broker vv0.7 (2016-01-04) -- sonos_broker:start:267 2016-06-11 12:17:58,910 INFO MainThread Starting server with ip address 192.168.8.78 ... be sure this is correct. -- sonos_broker:start:269 Traceback (most recent call last): 2016-06-11 12:17:59,917 DEBUG Thread-2 active threads: 3 -- sonos_service.py:get_speakers_periodically:74 File "/usr/local/bin/sonos_broker", line 367, in <module> broker.start() 2016-06-11 12:17:59,923 INFO Thread-2 scan devices ... -- sonos_service.py:get_speakers_periodically:75 File "/usr/local/bin/sonos_broker", line 273, in start self._http_server = ThreadedHTTPServer((self._host, self._port), SonosHttpHandler) File "/usr/lib/python3.2/socketserver.py", line 419, in __init__ 2016-06-11 12:17:59,931 INFO Thread-2 Sending discovery packets -- discovery.py:discover:89 self.server_bind() File "/usr/lib/python3.2/http/server.py", line 132, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.2/socketserver.py", line 430, in server_bind self.socket.bind(self.server_address) socket.error: [Errno 98] Address already in use
Code:
#This is the config file for sonos broker #Adapt and uncomment the lines to your purpose ######################################################################## [logging] #Sets the log level for the server. WARNING is the default value. #Possible values are: debug, info, warning, error, critical #Default logfile path: /tmp/sonos_broker.log #loglevel = warning #logfile = /tmp/log.txt ######################################################################## [sonos_broker] #Binding host address. Default: 0.0.0.0 host = 192.168.8.78 #Server port. Default: 12900 port = 12900 ######################################################################## [google_tts] #Enabled Google-Text-To-Speech. Default: false #enabled = true #Select the path where sonos broker will save the converted mp3 files #Before a web request is made, sonos broker will check, if the requested file already exists. #Possible paths could be: local webserver, mounted smb share ... #save_path = /var/www #Specifies the destination url which sonos broker refers to the sonos speakers. This url must point to 'save_path'. #server_url = http://192.168.0.10/your/www/path/here #Maximum file size quota in megabytes. Up to this size, sonos broker will save files to 'save_path'. #Default: 100 #quota = 200
Gruß Manuel
Einen Kommentar schreiben: