Dave,
Thanks, the log is great resource for troubleshooting; if you include the
WeeWX startup portion of the log it provides detail on how WeeWX is
configured and if you have debug set high enough you get a good picture of
what is going on. The log is the first place to look when things don't work.
It looks like the SDR driver is not being fed any data from rtl_433 that
contains lightning related data. Your sensor map maps fields from
AcuriteAtlasPacket packets (which appears to be correct) and correctly sets
up lightning_strike_count as a delta:
Jun 7 16:14:29 raspberrypi weewx[25278] INFO user.sdr: sensor map is
{'outTemp': 'temperature.0010.AcuriteAtlasPacket', 'outHumidity':
'humidity.0010.AcuriteAtlasPacket', 'windSpeed':
'wind_speed.0010.AcuriteAtlasPacket', 'windDir':
'wind_dir.0010.AcuriteAtlasPacket', 'UV': 'uv.0010.AcuriteAtlasPacket',
'rain_total': 'rain_total.0010.AcuriteAtlasPacket', 'radiation':
'lux.0010.AcuriteAtlasPacket', 'outTempBatteryStatus':
'battery.0010.AcuriteAtlasPacket', 'lightning_distance':
'strike_distance.0010.AcuriteAtlasPacket', 'lightning_strike_count':
'strike_count.0010.AcuriteAtlasPacket', 'luminosity':
'lux.0010.AcuriteAtlasPacket'}
Jun 7 16:14:29 raspberrypi weewx[25278] INFO user.sdr: deltas is {'rain':
'rain_total', 'lightning_strike_count': 'lightning_strike_count'}
but according to the log SDR is only seeing AcuriteTowerPacketV2 packets
from rtl_433:
Jun 7 16:15:23 raspberrypi weewx[25278] INFO user.sdr: unmapped: ['{"time"
: "2022-06-07 22:15:20", "model" : "Acurite-Tower", "id" : 9794, "channel"
: "A", "battery_ok" : 1, "temperature_C" : 17.300, "humidity" : 48, "mic" :
"CHECKSUM"}\n', '{"time" : "2022-06-07 22:15:20", "model" :
"Acurite-Tower", "id" : 9794, "channel" : "A", "battery_ok" : 1,
"temperature_C" : 17.300, "humidity" : 48, "mic" : "CHECKSUM"}\n']
({'dateTime': 1654640120, 'usUnits': 16,
'protocol.2642.AcuriteTowerPacketV2': None,
'model.2642.AcuriteTowerPacketV2': 'Acurite-Tower',
'sensor_id.2642.AcuriteTowerPacketV2': '0000',
'channel.2642.AcuriteTowerPacketV2': 'A',
'temperature.2642.AcuriteTowerPacketV2': 17.3,
'humidity.2642.AcuriteTowerPacketV2': 48.0,
'battery.2642.AcuriteTowerPacketV2': 1, 'mod.2642.AcuriteTowerPacketV2':
None, 'freq.2642.AcuriteTowerPacketV2': None,
'rssi.2642.AcuriteTowerPacketV2': None, 'snr.2642.AcuriteTowerPacketV2':
None, 'noise.2642.AcuriteTowerPacketV2': None})
Jun 7 16:15:23 raspberrypi weewx[25278] INFO user.sdr: unmapped: ['{"time"
: "2022-06-07 22:15:20", "model" : "Acurite-Tower", "id" : 9794, "channel"
: "A", "battery_ok" : 1, "temperature_C" : 17.300, "humidity" : 48, "mic" :
"CHECKSUM"}\n'] ({'dateTime': 1654640120, 'usUnits': 16,
'protocol.2642.AcuriteTowerPacketV2': None,
'model.2642.AcuriteTowerPacketV2': 'Acurite-Tower',
'sensor_id.2642.AcuriteTowerPacketV2': '0000',
'channel.2642.AcuriteTowerPacketV2': 'A',
'temperature.2642.AcuriteTowerPacketV2': 17.3,
'humidity.2642.AcuriteTowerPacketV2': 48.0,
'battery.2642.AcuriteTowerPacketV2': 1, 'mod.2642.AcuriteTowerPacketV2':
None, 'freq.2642.AcuriteTowerPacketV2': None,
'rssi.2642.AcuriteTowerPacketV2': None, 'snr.2642.AcuriteTowerPacketV2':
None, 'noise.2642.AcuriteTowerPacketV2': None})
Jun 7 16:15:23 raspberrypi weewx[25278] INFO user.sdr: unmapped: []
({'dateTime': 1654640120, 'usUnits': 16,
'protocol.2642.AcuriteTowerPacketV2': None,
'model.2642.AcuriteTowerPacketV2': 'Acurite-Tower',
'sensor_id.2642.AcuriteTowerPacketV2': '0000',
'channel.2642.AcuriteTowerPacketV2': 'A',
'temperature.2642.AcuriteTowerPacketV2': 17.3,
'humidity.2642.AcuriteTowerPacketV2': 48.0,
'battery.2642.AcuriteTowerPacketV2': 1, 'mod.2642.AcuriteTowerPacketV2':
None, 'freq.2642.AcuriteTowerPacketV2': None,
'rssi.2642.AcuriteTowerPacketV2': None, 'snr.2642.AcuriteTowerPacketV2':
None, 'noise.2642.AcuriteTowerPacketV2': None})
I would take a step back and work through the *How to diagnose problems*
section of the SDR readme <https://github.com/matthewwall/weewx-sdr#readme>.
Start by running rtl_433 directly to see what packets it is picking up. If
rtl_433 is not picking up any Acurite Atlas packets then SDR has no chance.
I'm not an Acurite user but looking at some other threads on Acurite Atlas
and SDR the Atlas seems to emit packets containing lightning data roughly
every 15 seconds. By all means post the rtl_433 output if you wish.
Gary
On Wednesday, 8 June 2022 at 08:19:27 UTC+10 [email protected] wrote:
> Gary thanks for the reply. Sorry I didn’t provide enough data. So here it
> what I am running. My driver is SDR. I have verified that data is being
> received and stored into the database, but what I am not getting is any
> type of graph with the distance and strike counts on the web site. That is
> what I need help with. How do I make that show up?
>
>
>
> I have included a log output
>
>
>
> Thanks
>
> Dave
>
>
>
> *From:* [email protected] <[email protected]> *On Behalf
> Of *gjr80
> *Sent:* Monday, June 6, 2022 7:14 PM
> *To:* weewx-user <[email protected]>
> *Subject:* [weewx-user] Re: Adding lightening sensor to weewx
>
>
>
> Hi,
>
>
>
> Going to need a little more info. What driver are you using? SDR? If so
> what does your weewx.conf [SDR] stanza contain? Again assuming SDR, have
> you run the driver directly as per the SDR readme
> <https://github.com/matthewwall/weewx-sdr#readme>? What does the WeeWX
> log show? Post a log extract with debug = 1 showing the full WeeWX
> startup and a couple of archive periods, this WeeWX wiki page
> <https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user#the-system-log>
>
> will give you instructions on how to get such a log extract.
>
>
>
> Gary
>
>
>
> On Tuesday, 7 June 2022 at 08:16:10 UTC+10 [email protected] wrote:
>
> Good afternoon all, I am trying to get the lightening detector sensor to
> show in weewx. The sensor is Acurite Atlas
>
>
>
> I have added the following under [[sensor_map]]
>
> lightning_distance = strike_distance.0010.AcuriteAtlasPacket
>
> lightning_strike_count = strike_count.0010.AcuriteAtlasPacket
>
>
>
> Any help getting this working would be great
>
>
>
> Thanks
>
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/cce095de-a364-4987-ad60-cae4f905c70fn%40googlegroups.com
>
> <https://groups.google.com/d/msgid/weewx-user/cce095de-a364-4987-ad60-cae4f905c70fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/872288eb-7a27-4476-a242-7950a96c9129n%40googlegroups.com.