Cannot establish a connection
Opened this issue · 0 comments
evildmp commented
I have added the address of the device in config.json
:
"mqtt_host": "yamaha.local"
However, it's not clear to me:
- what I should enter in
"mc_devices"
(I have tried various things, based on the information I have about the device, a Yamaha CRX-N470D) - whether the connection requires some sort of authentication
From python MusicCastController.py
I get a traceback:
2020-01-04 14:35:52,017 - MusicCast.MQTTClient - __init__ - INFO - Starting...
Traceback (most recent call last):
File "MusicCastController.py", line 61, in <module>
main()
File "MusicCastController.py", line 40, in main
mqtt = MQTTClient.MQTTClient(messageQ, commandQ, config)
File "/Users/daniele/musiccast/MusicCastControl/MQTTClient.py", line 23, in __init__
self._mqttConn.connect(self.mqtt_host, port=self.mqtt_port, keepalive=120)
File "/Users/daniele/musiccast/MusicCastControl/env/lib/python3.7/site-packages/paho/mqtt/client.py", line 937, in connect
return self.reconnect()
File "/Users/daniele/musiccast/MusicCastControl/env/lib/python3.7/site-packages/paho/mqtt/client.py", line 1071, in reconnect
sock = self._create_socket_connection()
File "/Users/daniele/musiccast/MusicCastControl/env/lib/python3.7/site-packages/paho/mqtt/client.py", line 3522, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 707, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known