Re: [weewx-user] Re: Lightning Data Stored in weewx.sdb

2023-06-14 Thread William Reading
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..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.


Re: [weewx-user] Re: Lightning Data Stored in weewx.sdb

2023-06-14 Thread Mark Fraser

On 14/06/2023 19:36, Eric K wrote:

Maybe the better question is, what version of weewx-sdr do you have?
I installed mine in May 2021.
On Wednesday, June 14, 2023 at 1:12:37 PM UTC-5 Eric K wrote:


Think mine is version 0.86 or 0.87.

--
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/e76b5bbe-54e9-695b-a5a5-9cd1aaa0b936%40gmail.com.


Re: [weewx-user] Re: Lightning Data Stored in weewx.sdb

2023-06-14 Thread Mark Fraser
4.10.2

On Wed, 14 Jun 2023, 19:12 Eric K,  wrote:

> Oh, interesting.  I'm running weewx 4.5.1.
> What version are you running?
>
> On Wednesday, June 14, 2023 at 11:59:13 AM UTC-5 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/a570e03a-78bc-4b8a-be4a-6b7e5a504d88n%40googlegroups.com
> 
> .
>

-- 
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/CAPSrEd%3DqdYu0-g6nBtPSvTwD4X1OmpHc6D2UurhTk1MDqwd2uA%40mail.gmail.com.


Re: [weewx-user] Re: Lightning Data Stored in weewx.sdb

2023-06-14 Thread Eric K
Maybe the better question is, what version of weewx-sdr do you have?
I installed mine in May 2021.
On Wednesday, June 14, 2023 at 1:12:37 PM UTC-5 Eric K wrote:

> Oh, interesting.  I'm running weewx 4.5.1.  
> What version are you running?
>
> On Wednesday, June 14, 2023 at 11:59:13 AM UTC-5 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/0b2cc889-2d5b-49bc-abd8-4ef2ffe72b4fn%40googlegroups.com.


Re: [weewx-user] Re: Lightning Data Stored in weewx.sdb

2023-06-14 Thread Eric K
Oh, interesting.  I'm running weewx 4.5.1.  
What version are you running?

On Wednesday, June 14, 2023 at 11:59:13 AM UTC-5 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/a570e03a-78bc-4b8a-be4a-6b7e5a504d88n%40googlegroups.com.


Re: [weewx-user] Re: Lightning Data Stored in weewx.sdb

2023-06-14 Thread Mark Fraser

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/87b7213d-5956-66d8-201f-7ec969e65a6b%40gmail.com.