I don’t see any obvious issues but we need to see the log to see what is 
being received, decoded and mapped by sdr.
Could you edit weewx.conf, set debug=1 and restart WeeWX. Let WeeWX run for 
10 minutes or so then post a log extract covering the full WeeWX startup 
and the next 10 or so minutes.

Gary

On Tuesday, 28 September 2021 at 08:45:14 UTC+10 [email protected] wrote:

> Hi,
>
> I'm unable to get Weewx to light lightning - even with a clean install 
> of 4.5.1.
>
> My lightning sensor is the one that fits inside the Acurite Atlas 7 in 1 
> sensor.
>
> I'm intercepting the data via a BME280 plugin. 
>
> In sdr.py, I've modified the AcuriteAtlasPacket class to include the below 
> additional lines that reference lightning:
>
>         if 'lux' in obj:
>             pkt['lux'] = Packet.get_int(obj, 'lux')
> *        if 'strike_count' in obj:*
> *            pkt['strike_count'] = obj.get('strike_count')*
> *        if 'strike_distance' in obj:*
> *            pkt['strike_distance'] = obj.get('strike_distance')*
>         pkt['battery'] = 1 if Packet.get_int(obj, 'battery_ok') == 0 else 0
>
>
> In weewx.conf:
>
>     [[sensor_map]]
>         outTemp = temperature.02BC.AcuriteAtlasPacket
>         outHumidity = humidity.02BC.AcuriteAtlasPacket
>         windSpeed = wind_speed.02BC.AcuriteAtlasPacket
>         windDir = wind_dir.02BC.AcuriteAtlasPacket
>         UV = uv.02BC.AcuriteAtlasPacket
>         #rain_total = rain_total.02BC.AcuriteAtlasPacket
>         radiation = lux.02BC.AcuriteAtlasPacket
>         lux = lux.02BC.AcuriteAtlasPacket
>         Atlas_rain_total = rain_total.02BC.AcuriteAtlasPacket
>
>         strikes_total = strike_count.02BC.AcuriteAtlasPacket
>         strike_dist = strike_distance.02BC.AcuriteAtlasPacket
>
>         windBatteryStatus = battery.02BC.AcuriteAtlasPacket
>
>     [[deltas]]
>         rain = Atlas_rain_total
>         lightningStrikes = strikes_total
>         lightningDistance = strike_dist
>
>
> What the heck am I doing wrong?
>
>
>

-- 
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/0466f295-9b2b-46b1-a20f-f0e14f378585n%40googlegroups.com.

Reply via email to