コード例 #1
0
ファイル: pikoToHM.py プロジェクト: lucasHSA/piko
 
 
     # -------------------------------
     # Piko
     # Get values for remaining power calculation
     logging.debug('Calling: get_current_power')
     current_solar_power = p.get_current_power()
     
     logging.debug('Calling: get_consumption_phase_1')
     consumption_phase_1 = p.get_consumption_phase_1()
     
     logging.debug('Calling: get_consumption_phase_2')
     consumption_phase_2 = p.get_consumption_phase_2()
     
     logging.debug('Calling: get_consumption_phase_3')
     consumption_phase_3 = p.get_consumption_phase_3()
     
     # Get values for string 1 power and string 2 power
     logging.debug('Calling: get_string1_current')
     string1Current = p.get_string1_current()
     
     logging.debug('Calling: get_string2_current')
     string2Current = p.get_string2_current()
     
     logging.debug('Calling: get_string1_voltage')
     string1Voltage = p.get_string1_voltage()
     
     logging.debug('Calling: get_string2_voltage')
     string2Voltage = p.get_string2_voltage()
     
     if current_solar_power < 0: