Skip to content

AEDCPlaneteers/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server

Setup

Set your NREL API key

Development: echo "PVWATTS_API_KEY=YOUR_KEY" > .env Heroku: heroku config:set PVWATTS_API_KEY=YOUR_KEY

API

Current endpoint:

http://planeteer.herokuapp.com/

Solar Savings

/solarcalculator?system_size={system_size_kw}&lat={geo_lat}&lon={geo_lon} Sample response:

{
   "estimated_installation_cost":22440.0,
   "assumed_electric_rate":0.11691000312566757,
   "payback_year":24.555768966674805,
   "annual_savings":[
      587.7269897460938,
      599.4076538085938,
      ...
      1019.7415161132812,
      1040.0091552734375
   ],
   "cumulative_annual_savings":[
      587.7269897460938,
      1187.1346435546875,
      ...
      22756.325439453125,
      23796.334594726562
   ]
}

Data Sources

Currently using PVWatts API v3 for savings information. Given a system system size (in kW) and a lat/lon, it will return a 30 year cost model based on a bunch of internal assumptions on total system cost, utility rate information, etc.

Ideally, we'd probably use a combination of data sources to have more realistic numbers (and ones that mirrored the PVWatt tool):

PVWatts API v4: http://developer.nrel.gov/docs/solar/pvwatts-v4/ OpenEI Average Annual Utility Rate by location: http://developer.nrel.gov/docs/electricity/utility-rates-v3/ Use calculations from PVWatt Web Tool:

About

The API server for AECPlaneteer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published