-
server
- python 3.7
-
client
- node
- npm or yarn
- ember cli
-
server
- cd nominalpowerserver
mkvirtualenv --python=/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 <env name>
pip install -r requirements.txt
- start the python server on port 8000
./manage.py runserver
-
client
cd client
yarn install
ember s --proxy http://localhost:8000
open app at http://localhost:4200
This app calculates the nominal photovoltaic power for a given shape at a given location based on data from NASA's POWER API.
To use:
- Enter an address in the US (address is reverse geocoded by
openstreetmap.org
) - Draw the shape of your solar installation
- Click Calculate
The calculation retrieves the annual average solar radiation for the given location and calculates the nominal power based on the following formula.
The global formula to estimate the electricity generated in output of a photovoltaic system is :
E = A * r * H * PR
E = Energy (kWh)
A = Total solar panel Area (m2)
r = solar panel yield or efficiency(%)
H = Annual average solar radiation on tilted panels (shadings not included)
PR = Performance ratio, coefficient for losses (range between 0.5 and 0.9, default value = 0.75)
– formula from photovoltaic-software.com
see /nominalpowerserver/installations/methods.py
for implementation of this formula.
A minimal integration test is stubbed out in client/tests/integration/map-container-test.js
to run:
ember test -m 'Integration | Component | map container'