Translations:Dimensionner une installation photovoltaïque autonome/237/en

  1. Enter angle of the modules

angle_input=input("Entre module angle in °") try:

   angle=float(angle_input)

except Exception as err:

   print(f'{err} error, used angle will be 45°')
   angle=45
  1. Download the data

try:

   os.system(f'wget --max-redirect=10 -O output.csv "https://re.jrc.ec.europa.eu/api/v5_2/seriescalc?lat={x_input}&lon={y_input}&loss=14&angle={angle}&aspect={aspect}&startyear=2005&endyear=2020&pvcalculation=1&peakpower=1&pvtechchoice=crystSi&browser=0&outputformat=csv"')

except:

   print("data could not be downloaded, exiting")
   sys.exit()