'uuid': config['ftp']['uuid'],
'api_key': config['ftp']['api_key'],
'location_uuid': config['wxsite']['location_uuid'],
'uuid': config['ftp']['uuid'],
'api_key': config['ftp']['api_key'],
'location_uuid': config['wxsite']['location_uuid'],
if values:
ordered = sorted(values, key=lambda t: t['dateTime'], reverse=True)
infoex['wx_data'][elementCd] = ordered[0]['value']
if values:
ordered = sorted(values, key=lambda t: t['dateTime'], reverse=True)
infoex['wx_data'][elementCd] = ordered[0]['value']
-# Only need to add in what we want to change thanks to that abomination
-# of a variable declaration earlier
+# Now we only need to add in what we want to change thanks to that
+# abomination of a variable declaration earlier
final_data[fmap['Location UUID']] = infoex['location_uuid']
final_data[fmap['obDate']] = end_date.strftime('%m/%d/%Y')
final_data[fmap['obTime']] = end_date.strftime('%H:%M')
final_data[fmap['Location UUID']] = infoex['location_uuid']
final_data[fmap['obDate']] = end_date.strftime('%m/%d/%Y')
final_data[fmap['obTime']] = end_date.strftime('%H:%M')
for elementCd in infoex['wx_data']:
if elementCd not in iemap:
log.warning("BAD KEY wx_data['%s']" % (elementCd))
for elementCd in infoex['wx_data']:
if elementCd not in iemap:
log.warning("BAD KEY wx_data['%s']" % (elementCd))