mirror of
https://github.com/brocktice/tristar-python-modbus.git
synced 2025-05-15 06:10:11 -07:00
Add colons to time printout.
This commit is contained in:
parent
11ad7cbcff
commit
c63ac497a4
@ -60,5 +60,5 @@ hsTemp = rr.registers[14]
|
||||
# configuration dipswitches
|
||||
dipswitches = bin(rr.registers[25])[::-1][:-2].zfill(8)
|
||||
|
||||
print "%s vB: %.2f\tvP: %.2f\tcC: %.2f\t P: %.2f\tS: %s" % (time.strftime("%Y-%m-%dT%H%M%S%Z"), battsV, arrayV, arrayI, battsV*arrayI, state[statenum])
|
||||
print "%s B: %.2fV\tP: %.2fV\tC: %.2fA\tPow: %.2fW\tS: %s" % (time.strftime("%Y-%m-%dT%H:%M:%S%Z"), battsV, arrayV, arrayI, battsV*arrayI, state[statenum])
|
||||
client.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user