Bug fix
This commit is contained in:
parent
e56d4c6ab0
commit
b379570033
|
|
@ -119,7 +119,7 @@ def main():
|
||||||
for scale in scales:
|
for scale in scales:
|
||||||
scale.Read()
|
scale.Read()
|
||||||
if scale.SwarmAlarm():
|
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()
|
last_value = scale.GetLastValue()
|
||||||
weigh_loss = scale.GetWeighLoss()
|
weigh_loss = scale.GetWeighLoss()
|
||||||
sms_message = '*** Schwarmalarm ***\nDatum/Zeit: \nLetztes Gewicht [g]: %d\nGewichtsverlust [g]: %d' % (date_time,last_value,weigh_loss)
|
sms_message = '*** Schwarmalarm ***\nDatum/Zeit: \nLetztes Gewicht [g]: %d\nGewichtsverlust [g]: %d' % (date_time,last_value,weigh_loss)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue