diff --git a/bin/beielimon.py b/bin/beielimon.py index 4e4614f..b72c0bf 100755 --- a/bin/beielimon.py +++ b/bin/beielimon.py @@ -97,7 +97,7 @@ class Scale(object): prefix = 'temp' 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,%d\n' % (timestamp,self.temp / 10)) + file.write('%s,%.1f\n' % (timestamp,self.temp / 10.0)) diff --git a/install-files/etc/systemd/system/smsmon.service b/install-files/etc/systemd/system/smsmon.service index 8ca224d..e6ec187 100644 --- a/install-files/etc/systemd/system/smsmon.service +++ b/install-files/etc/systemd/system/smsmon.service @@ -8,6 +8,7 @@ Type=simple User=beieli Group=beieli WorkingDirectory=/home/beieli/bin +ExecStartPre=/bin/sleep 10 ExecStart=/home/beieli/bin/smsmon.py Restart=always diff --git a/root-bin/my_web_server.py b/root-bin/my_web_server.py index 920da9c..22e7b58 100755 --- a/root-bin/my_web_server.py +++ b/root-bin/my_web_server.py @@ -128,6 +128,7 @@ def GetInfoText(): ['uname', '-a'], ['df','-h','/boot','/root'], ['free','-m'], + ['/home/beieli/root-bin/show-bt-readings'], ['ip','a'] ]: commands_output = "%s\n# %s\n%s" % (commands_output,' '.join(comm_arr),subprocess.check_output(comm_arr)) diff --git a/root-bin/show-bt-readings b/root-bin/show-bt-readings new file mode 100755 index 0000000..d9f9114 --- /dev/null +++ b/root-bin/show-bt-readings @@ -0,0 +1,3 @@ +#!/bin/bash +find /home/beieli/bt-readings -type f -print -exec cat {} \; +echo