From c080889e1f6295044f8ce71ab36af9299d82db19 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Tue, 22 May 2018 21:04:31 +0200 Subject: [PATCH] some more changes --- REAME.md | 4 ++++ bin/beielimon.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/REAME.md b/REAME.md index 271d791..7a33c4a 100644 --- a/REAME.md +++ b/REAME.md @@ -163,6 +163,10 @@ beieli@beielipi:~ $ exit # systemctl enable beielimon # systemctl enable btmon # systemctl enable smsmon +# systemctl disable hostapd +# systemctl disable fakedns +# systemctl disable dnsmasq + /etc/fstab anpassen: tmpfs /home/beieli/bt-readings tmpfs nodev,nosuid,uid=1001,gid=2000,size=4M 0 0 diff --git a/bin/beielimon.py b/bin/beielimon.py index 38df251..4e4614f 100755 --- a/bin/beielimon.py +++ b/bin/beielimon.py @@ -85,7 +85,7 @@ class Scale(object): prefix = 'accu' datafilename = "%s/data/%s-%s-%s%s%s.log" % (APP_ROOT,prefix,self.scale_config['scale_uuid'],year,month,day) with open(datafilename, 'a') as file: - file.write('%s,%.1f\n' % (timestamp,self.accu / 100.0)) + file.write('%s,%.2f\n' % (timestamp,self.accu / 100.0)) if self.hum != INVALID_VALUE and not(swarm_alarm): prefix = 'humidity'