This commit is contained in:
Joerg Lehmann 2017-08-19 17:55:23 +02:00
parent e56d4c6ab0
commit b379570033
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ def main():
for scale in scales:
scale.Read()
if scale.SwarmAlarm():
date_time = time.strftime("%d.%m.%Y %H:%M:%S"))
date_time = time.strftime("%d.%m.%Y %H:%M:%S")
last_value = scale.GetLastValue()
weigh_loss = scale.GetWeighLoss()
sms_message = '*** Schwarmalarm ***\nDatum/Zeit: \nLetztes Gewicht [g]: %d\nGewichtsverlust [g]: %d' % (date_time,last_value,weigh_loss)