Bug fix
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user