some more changes

This commit is contained in:
Joerg Lehmann 2018-05-22 21:04:31 +02:00
parent 0f05715333
commit c080889e1f
2 changed files with 5 additions and 1 deletions

View File

@ -163,6 +163,10 @@ beieli@beielipi:~ $ exit
# systemctl enable beielimon # systemctl enable beielimon
# systemctl enable btmon # systemctl enable btmon
# systemctl enable smsmon # systemctl enable smsmon
# systemctl disable hostapd
# systemctl disable fakedns
# systemctl disable dnsmasq
/etc/fstab anpassen: /etc/fstab anpassen:
tmpfs /home/beieli/bt-readings tmpfs nodev,nosuid,uid=1001,gid=2000,size=4M 0 0 tmpfs /home/beieli/bt-readings tmpfs nodev,nosuid,uid=1001,gid=2000,size=4M 0 0

View File

@ -85,7 +85,7 @@ class Scale(object):
prefix = 'accu' prefix = 'accu'
datafilename = "%s/data/%s-%s-%s%s%s.log" % (APP_ROOT,prefix,self.scale_config['scale_uuid'],year,month,day) 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: 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): if self.hum != INVALID_VALUE and not(swarm_alarm):
prefix = 'humidity' prefix = 'humidity'