From aaf8b43ac30e953b9b22c897dd910fb9628e553d Mon Sep 17 00:00:00 2001 From: "S. Seegel" Date: Thu, 8 Feb 2018 00:06:11 +0100 Subject: [PATCH] add AFC value --- lacrosse.py | 2 +- sensors.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lacrosse.py b/lacrosse.py index d6b5ce5..e2aa2e9 100755 --- a/lacrosse.py +++ b/lacrosse.py @@ -10,7 +10,7 @@ import time rfm = Rfm69() rfm.SetParams( - Freq = 868.310, #MHz center frequency + Freq = 868.312, #MHz center frequency Datarate = 9.579, #17.241, #kbit/s baudrate ModulationType = rfm69.FSK, #modulation Deviation = 90, #90 kHz frequency deviation diff --git a/sensors.py b/sensors.py index 8eecd73..27111db 100644 --- a/sensors.py +++ b/sensors.py @@ -53,6 +53,7 @@ class lacross(rawsensor): self._data['RH'] = (rh, '%') self._data['batlo'] = bool(rh & 1<<7) self._data['RSSI'] = data[1] + self._data['AFC'] = data[2] def __str__(self): res = 'La crosse ' + str(self._data) # + ' ' + rawsensor.__str__(self);