andrewjfreyer / monitor

Distributed advertisement-based BTLE presence detection reported via mqtt
1.64k stars 194 forks source link

Can I use an existing MQTT server? #418

Closed pastaholic closed 1 year ago

pastaholic commented 1 year ago

Hi all,

Sorry for the rookie question. I already have an MQTT server in my network. I was wondering if I can use that instead of the one that's installed as per the installation instructions.

If that is possible, do I need to make any changes to the monitor setup, and what?

skynet01 commented 1 year ago

It will work, I am using the server that's running on my HA without any issues without changing anything in the setup instructions (other then the IP of the server)

YogoGit commented 1 year ago

It's simple, just edit the file mqtt_preferences and use your MQTT server information there.

#
#
# MOSQUITTO PREFERENCES
#
# ---------------------------

# IP ADDRESS OR HOSTNAME OF MQTT BROKER
mqtt_address=mqtt.mydomain.org

# MQTT BROKER USERNAME
mqtt_user='myuser'

# MQTT BROKER PASSWORD
mqtt_password='supersecret'

# MQTT PUBLISH TOPIC ROOT 
mqtt_topicpath=monitor
pastaholic commented 1 year ago

Thank you for your replies.