lheijst / weewx-rtldavis

weewx driver that captures data from software-defined radio using the rtldavis software.
GNU General Public License v3.0
14 stars 5 forks source link

Not a Issue --- Saving Frequency Errors US to database #3

Closed Stormtracker017 closed 5 years ago

Stormtracker017 commented 5 years ago

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

lheijst commented 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.

Stormtracker017 commented 5 years ago

Thanks Luc It works with a visual display. Rich SDR Freq error