This project is a web application that allows you to check the voltage of the UPS, the battery level and the load of the UPS in real time and graphics of the last 24 hours. The information is collected from an API (created in another project Bot_ups_Lyonn) and from a DB (in this case, from Supabase).
The web application is created with Flask and Chart.js and hosted on Vercel. However, it can be hosted on any other platform or on a local server.
You can see a demo of the web application here.
- Real-time information
- Graphics of the last 24 hours
- Responsive design
- Easy to use
- Easy to deploy
- Easy to modify
- Python 3.6+
- Supabase account and table created
- API URL
To run the web application locally, you need to have Python installed. You can download it from here.
- Clone the repository:
git clone https://github.com/juanchixd/UPS_Lyonn_web.git- Create a virtual environment: This is optional, but it is recommended to avoid conflicts with the dependencies.
python -m venv venv- Install the dependencies:
pip install -r requirements.txt- Create a
.envfile with the following variables:
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
API_URL=your_api_url- Run the application:
python app.py- Open your browser and go to
http://localhost:5000. - Enjoy!
To deploy the web application on Vercel, you need to have an account. You can create one here.
- Clone the repository:
git clone https://github.com/juanchixd/UPS_Lyonn_web.git- Create a
.envfile in the root of the project with the following variables:
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
API_URL=your_api_url- Install the Vercel CLI:
npm i -g vercel- Login to Vercel:
vercel login- Deploy the application:
vercel- You can see the application live at
https://your_project_name.vercel.app.
This project is licensed under the MIT License - see the LICENSE file for details.
- Juan Gonzalez - juanchixd
print("Thank you for reading my README.md!")# Lyonn UPS Web status - developed by Juan Gonzalez

