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

  1. Initial battery sizing for 24h of autonomy

if typebatterie=="oui" or typebatterie=="o" or typebatterie=="y" or typebatterie=="yes":

   batterie0=int(math.ceil(inputelecconsoday/0.5))
   typebatterie="plomb"

else:

   batterie0=int(math.ceil(inputelecconsoday/0.8))
   typebatterie="lithium"

print(f"""Initial battery treshold with entered hypothesis and user provided data (battery {typebatterie})) hypothesis: (daily elec consumption/0.8 with lithium and daily elec consumption/0.5 with lead) {batterie0} kWh""")