Closed Stormtracker017 closed 5 years ago
Rich,
if self.frequency == ‘US’
is one way to get it done. Only the errors of the first five frequencies are stored.
Luc
Verstuurd vanaf mijn iPad
Op 6 jun. 2019 om 22:59 heeft Stormtracker017 notifications@github.com het volgende geschreven:
Luc
How can I modify this code to save the errors to the weewx database?
if self.frequency == 'EU': pkt['dateTime'] = int(time.time() + 0.5) pkt['usUnits'] = weewx.METRIC for y in range(0, 5): if int(m.group(1)) == y: pkt['freqError%d' % y] = int(m.group(3)) dbg_rtld(3, "chan_pkt: %s" % pkt) else: dbg_rtld(3, "Don't store freqErrors for frequency band %s" % self.frequency) lines.pop(0) return pkt
Thanks Rich
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Thanks Luc It works with a visual display. Rich
Luc
How can I modify this code to save the errors to the weewx database?
if self.frequency == 'EU': pkt['dateTime'] = int(time.time() + 0.5) pkt['usUnits'] = weewx.METRIC for y in range(0, 5): if int(m.group(1)) == y: pkt['freqError%d' % y] = int(m.group(3)) dbg_rtld(3, "chan_pkt: %s" % pkt) else: dbg_rtld(3, "Don't store freqErrors for frequency band %s" % self.frequency) lines.pop(0) return pkt
Thanks Rich