Skip to content

Commit

Permalink
Use pprint to format testweatherstation output
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
  • Loading branch information
jim-easterbrook committed Jul 17, 2015
1 parent 84be710 commit 4df61f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/pywws/TestWeatherStation.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

import datetime
import getopt
import pprint
import sys
import time

Expand Down Expand Up @@ -119,7 +120,7 @@ def main(argv=None):
return 3
if decode:
# dump entire fixed block
print ws.get_fixed_block()
pprint.pprint(ws.get_fixed_block())
# dump a few selected items
print "min -> temp_out ->", ws.get_fixed_block(['min', 'temp_out'])
print "alarm -> hum_out ->", ws.get_fixed_block(['alarm', 'hum_out'])
Expand All @@ -146,7 +147,8 @@ def main(argv=None):
for i in range(history_count):
if decode:
data = ws.get_data(ptr)
print date, data
print date
pprint.pprint(data)
date = date - datetime.timedelta(minutes=data['delay'])
else:
raw_dump(ptr, ws.get_raw_data(ptr))
Expand Down
6 changes: 3 additions & 3 deletions src/pywws/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '15.07.0.dev1305'
_release = '1305'
_commit = '328747c'
__version__ = '15.07.0.dev1306'
_release = '1306'
_commit = '84be710'

0 comments on commit 4df61f2

Please sign in to comment.