kopia lustrzana https://github.com/robert-hh/BME280
Merge 8453d675ef
into 32b9fe9641
commit
4705a75f52
|
@ -255,3 +255,9 @@ class BME280:
|
|||
|
||||
return ("{:.2f}C".format(t), "{:.2f}hPa".format(p/100),
|
||||
"{:.2f}%".format(h))
|
||||
|
||||
@property
|
||||
def csv(self):
|
||||
""" human readable values """
|
||||
t, p, h = self.read_compensated_data()
|
||||
return '{0:.2f},{1:.2f},{2:.2f}'.format(t,p/100,h)
|
||||
|
|
Ładowanie…
Reference in New Issue