Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyonn UPS Web status

Telegram Python SQLite NUT Proxmox GitHub FastAPI

Status GitHub issues GitHub forks GitHub stars GitHub license GitHub last commit GitHub repo size

Table of contents

Introduction

Lyonn UPS Telegram Bot

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.

Demo

You can see a demo of the web application here.

Screenshots

Screenshot 1

Screenshot 2

Feautures

  • Real-time information
  • Graphics of the last 24 hours
  • Responsive design
  • Easy to use
  • Easy to deploy
  • Easy to modify

Requirements

  • Python 3.6+
  • Supabase account and table created
  • API URL

Development locally

To run the web application locally, you need to have Python installed. You can download it from here.

  1. Clone the repository:
git clone https://github.com/juanchixd/UPS_Lyonn_web.git
  1. Create a virtual environment: This is optional, but it is recommended to avoid conflicts with the dependencies.
python -m venv venv
  1. Install the dependencies:
pip install -r requirements.txt
  1. Create a .env file with the following variables:
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
API_URL=your_api_url
  1. Run the application:
python app.py
  1. Open your browser and go to http://localhost:5000.
  2. Enjoy!

Deploy on Vercel

To deploy the web application on Vercel, you need to have an account. You can create one here.

  1. Clone the repository:
git clone https://github.com/juanchixd/UPS_Lyonn_web.git
  1. Create a .env file 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
  1. Install the Vercel CLI:
npm i -g vercel
  1. Login to Vercel:
vercel login
  1. Deploy the application:
vercel
  1. You can see the application live at https://your_project_name.vercel.app.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Acknowledgments

print("Thank you for reading my README.md!")
# Lyonn UPS Web status - developed by Juan Gonzalez

About

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 and from a DB (in this case, from Supabase).

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages