Filter.py aufgeräumt, modbus erweitert syncronisiert jetzt die zeit, pCahrger speichert zählerstand pro dose

This commit is contained in:
Philipp Rauch 2014-02-12 10:12:51 +01:00
parent 4512f2b3dc
commit 6edf4bb90f
3 changed files with 12 additions and 5 deletions

View file

@ -127,5 +127,9 @@ for i in range(tmp.index[-1]+1):
if cur[x['pillarID']][x['plug']] < x['meterreading']:
cur[x['pillarID']][x['plug']] = x['meterreading']
tmp.loc[i, 'global'] = sum(list(cur))
for item in range(len(list(cur))):
col = '%s_%s' % (cur.index.levels[0][cur.index.labels[0][item]], cur.index.levels[1][cur.index.labels[1][item]])
tmp.loc[i, col] = list(cur)[item]
pass
db.writeDatabase('pCharger', tmp, bClear = False)