Мне нужно обновлять время каждый раз, когда срабатывает ИК-датчик, ниже изображения моих данных ![enter image description here](https://i.stack.imgur.com/5UL6d.png)
from firebase import firebase
import time
import datetime
url = 'https://[enter image description here][1]/'
firebase = firebase.FirebaseApplication(url)
d1= datetime.date.today()
#print(d1.month,"/", d1.day,"/", d1.year)
t = time.localtime()
time_string = time.strftime(" %H:%M:%S", t)
print(time_string)
result = firebase.put('Bathroom','Sensor',{'Motion':'No', 'Time': time_string, 'Date': d1})
print(result)