From 16f4cd33b5ee192c0c273e932ef3672ef0766929 Mon Sep 17 00:00:00 2001 From: Igor Mekhtiev Date: Sat, 14 Jul 2018 17:08:08 -0500 Subject: [PATCH] Readme updates --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 995ebdb..72c06f0 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,20 @@ https://github.com/stjohnjohnson/mqtt-dasher #Docker Configuration TODO +#Ansible +``` +- name: Install Mqtt Dasher + docker_container: + name: mqttd + image: m3ki/mqtt-dasher:latest + state: started + restart_policy: always + recreate: yes + network_mode: host + privileged: yes + volumes: + - "{{data_directory}}/mqttd/config/config.yml:/config/config.yml:rw" +``` # Configuration @@ -18,11 +32,20 @@ The dash bridge has one yaml file for configuration: mqtt: # Specify your MQTT Broker's hostname or IP address here host: mqtt + port: 1883 + #leave empty if none + username: + password: # Preface for the topics $PREFACE/$TOPIC preface: dash buttons: - 44:65:0d:dc:51:50: nerf_supplies + 44:65:0d:dc:51:50: + name: nerf_supplies + interface: eth0 # optional + timeout: 5000 # optional (time in ms) + protocol: arp # optional (one of {udp, arp, all}) + ```