Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home server with web UI

Intro

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.

Project

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.

How to launch?

Requierements

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).

API

The webservice folder contains a FastAPI (Python) server.

To launch the server from the webservice directory:

'''python3 run.py'''

UI

The webapp folder contains a React (Javascript) server.

To launch the server from the webapp directory:

'''npm start'''

Flashing the esp32

Use the Arduino app with the correct libraries installed and flash the esp32. The app was developped around some mini C6 version

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages