some more modifications
This commit is contained in:
parent
e503b91267
commit
8f575e1c70
|
|
@ -97,7 +97,7 @@ class Scale(object):
|
||||||
prefix = 'temp'
|
prefix = 'temp'
|
||||||
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,%d\n' % (timestamp,self.temp / 10))
|
file.write('%s,%.1f\n' % (timestamp,self.temp / 10.0))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ Type=simple
|
||||||
User=beieli
|
User=beieli
|
||||||
Group=beieli
|
Group=beieli
|
||||||
WorkingDirectory=/home/beieli/bin
|
WorkingDirectory=/home/beieli/bin
|
||||||
|
ExecStartPre=/bin/sleep 10
|
||||||
ExecStart=/home/beieli/bin/smsmon.py
|
ExecStart=/home/beieli/bin/smsmon.py
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,7 @@ def GetInfoText():
|
||||||
['uname', '-a'],
|
['uname', '-a'],
|
||||||
['df','-h','/boot','/root'],
|
['df','-h','/boot','/root'],
|
||||||
['free','-m'],
|
['free','-m'],
|
||||||
|
['/home/beieli/root-bin/show-bt-readings'],
|
||||||
['ip','a'] ]:
|
['ip','a'] ]:
|
||||||
commands_output = "%s\n# %s\n%s" % (commands_output,' '.join(comm_arr),subprocess.check_output(comm_arr))
|
commands_output = "%s\n# %s\n%s" % (commands_output,' '.join(comm_arr),subprocess.check_output(comm_arr))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
find /home/beieli/bt-readings -type f -print -exec cat {} \;
|
||||||
|
echo
|
||||||
Loading…
Reference in New Issue