Hi,
I would like to use my existing MQTT server (mosquitto) with your program. Is this possible and if yes, how do I accomplish that? I'm not really Raspberry/Linux savvy so I need some guidance in this.
I already tried to put the IP number of my server in Utility.js, but then I get the following error:
~/Virtual-Tasmota-for-Tuya-api-devices $ nodemon --ext rs tuya_api_mqtt.js
[nodemon] 1.19.1
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node tuya_api_mqtt.js
Web Server Running on Port 8082
CDN Running on Port 2362
events.js:174
throw er; // Unhandled 'error' event
^
Error: Connection refused: Not authorized
at MqttClient._handleConnack (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/mqtt/lib/client.js:1076:15)
at MqttClient._handlePacket (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/mqtt/lib/client.js:365:12)
at work (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/mqtt/lib/client.js:283:12)
at Writable.writable._write (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/mqtt/lib/client.js:294:5)
at doWrite (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Writable.write (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (_stream_readable.js:709:20)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
Emitted 'error' event at:
at MqttClient._handleConnack (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/mqtt/lib/client.js:1078:10)
at MqttClient._handlePacket (/home/pi/Virtual-Tasmota-for-Tuya-api-devices/node_modules/mqtt/lib/client.js:365:12)
[... lines matching original stack trace ...]
at addChunk (_stream_readable.js:288:12)
[nodemon] app crashed - waiting for file changes before starting...
I would like to use my existing MQTT server as there are other devices and programs using it.
Thanks for a reply.
Hi,
I would like to use my existing MQTT server (mosquitto) with your program. Is this possible and if yes, how do I accomplish that? I'm not really Raspberry/Linux savvy so I need some guidance in this.
I already tried to put the IP number of my server in Utility.js, but then I get the following error:
I would like to use my existing MQTT server as there are other devices and programs using it.
Thanks for a reply.