Skip to content

Commit

Permalink
1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
britkat1980 committed Aug 22, 2022
1 parent 675360f commit 5220691
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions GivTCP/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def enableChargeTarget(payload):
except:
e = sys.exc_info()
temp['result']="Setting Charge Target failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def enableChargeSchedule(payload):
Expand All @@ -53,7 +53,7 @@ def enableChargeSchedule(payload):
except:
e = sys.exc_info()
temp['result']="Setting Charge Enable failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def enableDischargeSchedule(payload):
Expand All @@ -68,7 +68,7 @@ def enableDischargeSchedule(payload):
except:
e = sys.exc_info()
temp['result']="Setting Charge Enable failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def setShallowCharge(payload):
Expand All @@ -80,7 +80,7 @@ def setShallowCharge(payload):
except:
e = sys.exc_info()
temp['result']="Setting Charge Enable failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def enableDischarge(payload):
Expand All @@ -95,7 +95,7 @@ def enableDischarge(payload):
except:
e = sys.exc_info()
temp['result']="Setting Discharge Enable failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def setChargeTarget(payload):
Expand All @@ -110,7 +110,7 @@ def setChargeTarget(payload):
except:
e = sys.exc_info()
temp['result']="Setting Charge Target failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def setBatteryReserve(payload):
Expand All @@ -127,7 +127,7 @@ def setBatteryReserve(payload):
except:
e = sys.exc_info()
temp['result']="Setting Battery Reserve failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def setChargeRate(payload):
Expand All @@ -146,7 +146,7 @@ def setChargeRate(payload):
except:
e = sys.exc_info()
temp['result']="Setting Charge Rate failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)


Expand All @@ -166,7 +166,7 @@ def setDischargeRate(payload):
except:
e = sys.exc_info()
temp['result']="Setting Discharge Rate failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)


Expand All @@ -185,7 +185,7 @@ def setChargeSlot1(payload):
except:
e = sys.exc_info()
temp['result']="Setting Charge Slot 1 failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def setChargeSlot2(payload):
Expand All @@ -203,7 +203,7 @@ def setChargeSlot2(payload):
except:
e = sys.exc_info()
temp['result']="Setting Charge Slot 2 failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def setDischargeSlot1(payload):
Expand All @@ -221,7 +221,7 @@ def setDischargeSlot1(payload):
except:
e = sys.exc_info()
temp['result']="Setting Discharge Slot 1 failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def setDischargeSlot2(payload):
Expand All @@ -239,7 +239,7 @@ def setDischargeSlot2(payload):
except:
e = sys.exc_info()
temp['result']="Setting Discharge Slot 2 failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)


Expand All @@ -266,7 +266,7 @@ def setBatteryMode(payload):
except:
e = sys.exc_info()
temp['result']="Setting Battery Mode failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

def setDateTime(payload):
Expand All @@ -283,7 +283,7 @@ def setDateTime(payload):
except:
e = sys.exc_info()
temp['result']="Setting Battery Mode failed: " + str(e)
logger.info (temp['result'])
logger.error (temp['result'])
return json.dumps(temp)

if __name__ == '__main__':
Expand Down

0 comments on commit 5220691

Please sign in to comment.