Fix timestamp.

This commit is contained in:
Kyle Isom 2022-02-26 19:13:24 -08:00
parent f840608df9
commit fec91e2d82
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class Reading:
def json(self) -> bytes: def json(self) -> bytes:
return bytes(json.dumps({ return bytes(json.dumps({
'timestamp': self.time.timestamp, 'timestamp': self.time.timestamp(),
'temperature': self.temp, 'temperature': self.temp,
'pressure': self.press, 'pressure': self.press,
'relative_humidity': self.hum, 'relative_humidity': self.hum,