diff --git a/README.md b/README.md index 3ee1538..cfc5d1e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The following should be installed already before setup. ## Install Necessary Source Code and Libraries ``` -git clone https://github.com/ShotaKameyama/ssa_iot.git` +git clone https://github.com/ShotaKameyama/ssa_iot.git cd ssa_iot make install ``` @@ -37,10 +37,10 @@ This shell script will take care of the following: 4. Add Environment Variables to `~/.bash_profile` -# Basic Inforamtion +# Basic Information This IoT system consists of 4 instances: -- MQTT braker +- MQTT broker - IoT Controller - IoT Camera - IoT DoorLock @@ -48,26 +48,51 @@ This IoT system consists of 4 instances: You should start 4 instances parallel. Instance 1 - ``` +brew install librdkafka + +make install + +git log +git pull + mosquitto -c config/mosquitto.conf + ``` Instance 2 - ``` +cd ssa_iot + +source ~/.bash_profile + python3 iot_controller.py ``` Instance 3 - ``` +cd ssa_iot + +source ~/.bash_profile + python3 iot_client_doorlock.py ``` Instance 4 - ``` +First run these commands: + +pip install pyaml-env + +pip install pyzbar + +brew install zbar + +vim config/config.yml + +brew install opencv +(This command can take some time to install, please be patient) + python3 iot_client_camera.py ```