From c2a7b333b567ce4b7ee98d5f88334988c641df96 Mon Sep 17 00:00:00 2001 From: Dobli <61doal1mst@hft-stuttgart.de> Date: Thu, 24 Jan 2019 10:33:19 +0100 Subject: [PATCH] Added more details concerning requirements --- README.md | 13 +++++++------ building_manager.py | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 92261aa..3b4bc50 100644 --- a/README.md +++ b/README.md @@ -59,21 +59,22 @@ To ease initial setup and management the `building_manager.py` is provided. This The script has a few requirements for the system and the python environment. **System:** -```sh +``` docker docker-compose docker-machine -python -mosquitto (mosquitto_passwd utility) +python3 (at least 3.6) +python3-pip +mosquitto (needed to for mosquitto_passwd utility) ssh-keygen ``` On a Ubuntu System these can be installed following these commands: ```bash -sudo apt install mosquitto # Needed to use mosquitto_passwd -sudo systemctl stop mosquitto # Stop Mosquitto service -sudo systemctl disable mosquitto # Disable Mosquitto service +sudo apt install mosquitto, python3-pip # Needed to use mosquitto_passwd +sudo systemctl stop mosquitto # Stop Mosquitto service +sudo systemctl disable mosquitto # Disable Mosquitto service ``` The setup also expects a working docker-machine environment. To connect all instances (on at least one of the machines) follow [these instructions](https://docs.docker.com/machine/drivers/generic/). diff --git a/building_manager.py b/building_manager.py index 06e0d21..165fa1b 100755 --- a/building_manager.py +++ b/building_manager.py @@ -848,7 +848,7 @@ def generate_checkbox_choices(list): if __name__ == '__main__': import argparse parser = argparse.ArgumentParser( - prog='building_manger', + prog='building_manager', description='Generate and manage multi' 'building configurations of openHAB with docker swarm') parser.add_argument( -- GitLab