prettify bluemaestro

This commit is contained in:
Dima Gerasimov 2020-03-06 21:04:22 +00:00
parent e720828645
commit 4e93beee27
3 changed files with 31 additions and 35 deletions

View file

@ -1,13 +1,12 @@
#!/usr/bin/python3
import logging
from datetime import timedelta, datetime
from kython import setup_logzero
from my.bluemaestro import get_temperature, logger
from my.bluemaestro import measurements, logger
# TODO move this to backup checker?
def main():
temps = get_temperature()
temps = list(measurements())
latest = temps[:-2]
prev, _ = latest[-2]