put remaining text in 'comment' for wx prase

This commit is contained in:
Rossen Georgiev 2016-01-07 15:37:36 +00:00
parent 67b37ca8a1
commit e06fadaecc
1 changed files with 4 additions and 1 deletions

View File

@ -248,7 +248,10 @@ def parse(packet):
if parsed['symbol'] == '_':
logger.debug("Attempting to parse weather report from comment")
body, result = _parse_comment_weather(body)
parsed.update({'weather': result})
parsed.update({
'comment': body.strip(' '),
'weather': result,
})
else:
# decode comment
body, result = _parse_comment(body)