Skip to content

velaztro/Flask-PV_kWh_calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PV-Calc

Overview

This a Flask Web App made it based on NREL - PV Watts and its API.

The web app consist in a form with the necessary parameters for the API, a button for get the latitude and longitude and a submit button. When you submit the form it use POST method to send the captured parameters to a another route in the app and sends a GET request to the API. Then the app capture the API information, clean and prepare it for show a table with the data.

The data are the kWh that a Photovoltaic System will generate based on the NREL information and the captured parameters.

Features and implementations

  • Using NREL-PV WATTS API
  • Responsive Design
  • Using GET and POST methods for the API and the data
  • Cleaning and preparing the recieved data from the API
  • User can download table as XLSX
  • HTML
  • CSS
  • JS

Deploy Project

Local deployment (MacOS):

  1. Download this project as a zip and extract it
  2. Get an API key
  3. From your terminal install virtualenv library with the command
    pip install virtualenv
  4. With the terminal go inside to the carpet you extract from the zip file, make a virtual environment with the command
    virtualenv nameOfYouEnv
  5. Activate your virtual environment
    source nameOfYourEnv/bin/activate
  6. Then install the requirements. In the terminal use
    pip install -r requirements.txt
  7. Creaet a file ".env" in the app folder and edit it with
    API_KEY = "YourAPIKey"
  8. Then use the command
    flask run
  9. In the terminal will show app an addres like *http://127.0.0.1:5000/*, open it and the app will show up.

About

PV-System Generation Calculator. With NREL data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published