I was going to submit a pull request to fix this and realized that the Atlas driver uses "strike_count" and the rest of them use "strikes_total", so fixing the defaults would be a breaking change. I went ahead and just put the delta in my weewx.conf file to work around it.
[[sensor_map]] ... atlas_lightning_strike_count = strike_count.XXXX.AcuriteAtlasPacket ... [[deltas]] lightning_strike_count = atlas_lightning_strike_count On Wednesday, June 14, 2023 at 12:59:13 PM UTC-4 Mark Fraser wrote: > On 13/06/2023 20:17, Kevin Crivelli wrote: > > mines definitely a little different. This is what I already have. It > > seems to follow the logic you shared above in your configuration but my > > packets are named differently. where you have "Atlas_strike_count = > > strike_count.0011.AcuriteAtlasPacket" I have "strikes_total = > > strikes_total.1255.AcuriteLightningPacket". from looking at my deltas > > section, does it look as though I have this set up correctly or am I off > > a little bit? > > > > [SDR] > > # This section is for the software-defined radio driver. > > > > # The driver to use > > driver = user.sdr > > > > > > [[sensor_map]] > > outTemp = temperature.030B.AcuriteAtlasPacket > > outHumidity = humidity.030B.AcuriteAtlasPacket > > windSpeed = wind_speed.030B.AcuriteAtlasPacket > > windDir = wind_dir.030B.AcuriteAtlasPacket > > UV = uv.030B.AcuriteAtlasPacket > > rain_total = rain_total.030B.AcuriteAtlasPacket > > radiation = lux.030B.AcuriteAtlasPacket > > lux = lux.030B.AcuriteAtlasPacket > > outTempBatteryStatus = battery.030B.AcuriteAtlasPacket > > lightning_distance = distance.1255.AcuriteLightningPacket > > strikes_total = strikes_total.1255.AcuriteLightningPacket > > inTemp = temperature.3071.AcuriteTowerPacketV2 > > inHumidity = humidity.3071.AcuriteTowerPacketV2 > > pressure = pressure.171.FOWH32BPacket > > > > > > [[deltas]] > > rain = rain_total > > lightning_strike_count = strikes_total > > I think there is a bug in the sdr.py from > https://github.com/matthewwall/weewx-sdr/blob/master/bin/user/sdr.py > where the deltas are listed as: > > DEFAULT_DELTAS = { > 'rain': 'rain_total', > 'strikes': 'strikes_total'} > > Which I couldn't get to work, so I changed mine to: > DEFAULT_DELTAS = { > 'rain': 'rain_total', > 'lightning_strike_count': 'strikes_total'} > And it works without having to add a deltas section to weewx.conf. > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/968916eb-5b26-49b1-9ece-8aada2491231n%40googlegroups.com.