External MQTT?
See original GitHub issueHi guys,
If I want to set an external MQTT, how exactly to configure FB, so it uses it? I tried updating MQTT_HOST, but it still tries to connect to the local MQTT. See log and my config bellow.
Basically I need to configure authentication and host location.
config
MQTT_HOST=192.168.10.1
API_HOST=192.168.10.10
API_PORT=3000
POSTGRES_PASSWORD=not_actual_value
DEVISE_SECRET=not_actual_value
ADMIN_PASSWORD=not_actual_value
SECRET_KEY_BASE=not_actual_value
RAILS_ENV=production
NO_EMAILS=TRUE
MQTT_WS=ws://192.168.10.1/ws
TRUSTED_DOMAINS=not_actual_value
RABBIT_MGMT_URL=http://192.168.10.1:80
log from farmbot-web-app_rabbit_jobs_1
W, [2019-09-09T18:48:04.730116 #1] WARN -- #<Bunny::Session:0x5605d4a19fc0 admin@mqtt:5672, vhost=/, addresses=[mqtt:5672]>: Could not establish TCP connection to mqtt:5672: getaddrinfo: Name or service not known
Connecting to broker in 3 seconds. (#<Bunny::TCPConnectionFailedForAllHosts: Could not establish TCP connection to any of the configured hosts>)
Thanks!
results of git log -1
commit 973b403524a30dece3cd0bd42a97bba920599aba (HEAD -> master, origin/master)
Merge: 1bbc83c bb76d99
Author: Rick Carlino <RickCarlino@users.noreply.github.com>
Date: Tue Aug 27 15:53:43 2019 -0500
Merge pull request #1398 from RickCarlino/master
Adjust CSP policy
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
External MQTT broker - the thingsHub documentation
This article describes how to integrate the thingsHub tenant with an external MQTT broker. Using the New Integration wizard to set up an...
Read more >Send data to external MQTT brokers - ThingsBoard
This tutorial will show how to send data to external MQTT broker using knob control widget. Use case. Let's assume your device is...
Read more >How to connect an external MQTT to a device? - Help Center
I'm working on a device that uses my own MQTT Broker (with another Host Adress, username and password). We connected it to Tago's...
Read more >External secondary MQTT broker - Home Assistant Community
I am having problems to configure an external MQTT broker on an external server running mosquito (no HA there). configuration.yml:
Read more >MQTT - AWS IoT Core - AWS Documentation
MQTT (Message Queuing Telemetry Transport) is a lightweight and widely adopted messaging protocol that is designed for constrained devices.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @RickCarlino
Thanks for the swift reply!
We are using HASSIO’s addon https://github.com/hassio-addons/addon-mqtt/blob/master/README.md which has its own Mosquitto MQTT.
So I guess we should stick to the internal MQTT provided by FarmBot’s docker-compose file?
Closing this issue for now, but still open to discussion as needed.