This repo was mainly generated using Cursor. The project architecture and code needs reformatting. It should be consider a work in progress. The project will not be maintained but feel free to suggest modifications through git issues.
The project aims to provide a web UI to visualize data from sensors attached to an esp32. The architecture is the following. The esp32 sends data to the API which stores it in a file. The web UI queries this same API to get the data and renders plots for the user to monitor.
The project is based on simple http requests on the local network to transfer the data using json formatting. The web server is protected by a password and jwt token.
Be sure to this steps before trying to launch the servers. After cloning the repo, open a terminal in the root directory of the project and do the following :
'''pip install -r webservice/requirements.txt'''
'''cd webapp'''
'''npm install'''
Also ensure that the secrets are correct (esp32 and webservice).
The webservice folder contains a FastAPI (Python) server.
To launch the server from the webservice directory:
'''python3 run.py'''
The webapp folder contains a React (Javascript) server.
To launch the server from the webapp directory:
'''npm start'''
Use the Arduino app with the correct libraries installed and flash the esp32. The app was developped around some mini C6 version