This is a project for the USE course Detailing, realization and RPC test - group 17. Instructions on how to use GitHub and the Flask server are below.
- Install a text editor or IDE (I can recommend VS Code).
- Make a GitHub account.
- Install git (download current here).
- In the install wizard you can leave default on almost everything.
- But you can choose your text editor, just select it in the dropdown.
- Also make sure Git from the command line and also from 3rd-party software is checked.
- After installation run
git config --global user.name "Your GitHub name here". - And run
git config --global user.email "Your GitHub email here".
- Download or make sure Python3 is installed, from here.
- Run
pip install websockets uvicorn fastapito install the dependencies using pip. - Make a folder for the project on your pc (no spaces to make it easier).
- Run
cd path/project/directoryin the terminal to navigate to your project folder. - Run
git clone https://github.com/TychoBrouwer/ac-controller-rest-api-python.gitto clone the Git repository in the current directory. - Run
git branch -M mainto set the Git branch. - Run
uvicorn server:app --host 0.0.0.0 --port 5001to start the Python server.
- Run
cd path/project/directoryto navigate to your project folder. - Run
git pullto pull the changes from the repository.
- Run
cd path/project/directoryto navigate to your project folder. - Run
git add .to track the changes made. - Run
git commit -m "USEFUL UPDATE MESSAGE"to commit the changes to the branch. - Run
git pushto push the changes to the repository.
Run the server with uvicorn server:app --host 0.0.0.0 --port 5001
Run the other scripts with python "SCRIPT_NAME" or python3 "SCRIPT_NAME"
This project aims to allow an IR controlled air conditioner to become a smart air conditioner. The user can control their AC unit remotely using an app. This is achieved by forwarding the request from the remote device to a local device, which uses an IR transmitter to control the AC unit. The server can also relay weather information to the local device for smart temperature control by the air conditioner.
This repository hosts the code for the server which acts as the bridge between the local device and the remote client.