Weather: dump json output in a prettier format
This commit is contained in:
parent
41c1a46bb2
commit
6426df9ece
@ -105,7 +105,7 @@ class Weather(Module):
|
|||||||
|
|
||||||
# condition data is loaded. the rest of this is obviously specific to
|
# condition data is loaded. the rest of this is obviously specific to
|
||||||
# http://www.wunderground.com/weather/api/d/docs?d=data/conditions
|
# http://www.wunderground.com/weather/api/d/docs?d=data/conditions
|
||||||
self.log.debug(condition_data)
|
self.log.debug(json.dumps(condition_data, sort_keys=True, indent=4))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# just see if we have current_observation data
|
# just see if we have current_observation data
|
||||||
|
Loading…
Reference in New Issue
Block a user