I edited it to this:
def parse_page(self, data):
packet = dict()
if data is not None:
packet['usUnits'] = weewx.US
for obs in self.map:
try:
packet[obs] = self.map[obs][1](data[self.map[obs][0]])
except KeyError:
logdbg("packet missing %s" % obs)
break
but after starting weewx it is reporting
Jan 9 22:08:16 ubuntu64server weewx[3188]: observerip: packet missing UV
Jan 9 22:09:00 ubuntu64server weewx[3188]: message repeated 16 times: [
observerip: packet missing UV]
Jan 9 22:09:01 ubuntu64server CRON[3222]: (root) CMD ( [ -x
/usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
Jan 9 22:09:02 ubuntu64server weewx[3188]: observerip: packet missing UV