Translations:Dimensionner et faire un tracker solaire photovolatïque low tech/234/en

tracker_degré_horizontal=0 tracker_degré_azimut=0 def init():

   global tracker_degré_horizontal
   forwardzero(111)
   tracker_degré_horizontal=0

def track(time_now,lat,lon):

   global tracker_degré_horizontal
   global tracker_degré_azimut
   init()
   (sun_degre_horizontal,sun_degre_azimut)=sun_position(time_now,lat,lon)
   sun_degre_azimut=min(sun_degre_azimut,87)
   sun_degre_horizontal=max(sun_degre_horizontal,-22)
   sun_degre_horizontal=min(36,sun_degre_horizontal)
   backwardzero(dict_angle_verin[sun_degre_horizontal])
   tracker_degré_horizontal=sun_degre_horizontal
   backward(82)
   forward(dict_angle_rotation[sun_degre_azimut-tracker_degré_azimut])
   tracker_degré_azimut=sun_degre_azimut
  1. test Agen

lat=44.2 lon=0.6 backward(4) forward(4) #placer le tracker direction sud angle horizontal backwardzero(4) forwardzero(41)

  1. time.sleep(100)

while True:

   track(datetime.datetime.now(),lat,lon)
   time.sleep(20*60) #activer le tracking toutes les 20 minutes