Team Members: 1 - Vincent Fu 2 - Abdelaziz Abdelrhman
Link to video demo: https://drive.google.com/drive/folders/1zAg5flioCcb34FQDe35N5wvLlE4IKUrf?usp=sharing
Instructions on how to compile/execute our code (given that the circuitry and hardware is all set up and all external libraries are downloaded):
- Make sure there is an Rpi set up as a broker before starting anything.
- On your PC, open up your terminal and cd into the directory that contains project_sub.py.
- Open up a new terminal window and ssh into a different Rpi (that isn't the broker).
- Open up a new terminal window and cd into the directory that contains project_pub.py.
- Send the project_pub.py file to the Rpi you ssh-ed into (using scp, copy-paste, etc).
- Run project_sub.py in its terminal.
- Run project_pub.py on the Rpi.
- Watch our project work!
External Libraries used in our code:
- import paho.mqtt.client as mqtt
- import time
- import grovepi
- import math
- from datetime import datetime
- import socket
Used the following link to help us figure out the rest of the needed libraries: #https://github.com/DexterInd/GrovePi/blob/master/Projects/Home_Weather_Display/Home_Weather_Display.py
- from grovepi import *
- from grove_rgb_lcd import *