Skip to content

bsergi/REopt-API-analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python scripts for using REopt API

REopt is a techno-economic decision support model from NREL which is used for optimizing energy systems for buildings, campuses, communities, and microgrids. REopt Lite offers a no-cost subset of features from NREL's more comprehensive REopt model. REopt Lite also offers an application programming interface (API). This is a guide to use REopt's Application Programming Interface for running REopt analysis programmatically.

File Descriptions

Note: in the script named post_and_poll.py replace "my_API_KEY" with your API key. You can obtain your API key from developer.nrel.gov/signup/ (no cost).

Scenario_POST.json

The inputs to the model are sent in json format. POST.json contains an example post where the assessment of economic feasibiity of photovoltaic generation and battery storage is being done for a given location with a custom electric tariff.

post_and_poll.py

A scenario is posted at https://developer.nrel.gov/api/reopt/v1/job/ to get a Universal Unique ID (run_uuid) back. This script is for posting inputs to the API, receive the run_uuid and then polling for results using the run_uuid.

results_poller.py

A polling function for retrieving results. This function is utilized in the post_and_poll.py.

logger.py

Configurable logging for console and log file

The results will get saved in results.json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%