>From this I gather that strikes_total is a seven bit number and is going to
role, so I guess it's just a matter of aesthetics, and strikes_total is not
going to be a useful number in the database;
It's only value is to let weewx generate strikes, and weewx seems to have
handled the rollover without a problem. So never mind.
dateTime, lightningStrikes, lightningStrikesTotal, lightningDistance
1493445600, 5, 9.23636363636364, 5
1493445300, 2, 6, 5
1493445000, 1, 4.27358490566038, 5
1493444700, 2, 3.14130434782609, 5
1493444400, 3, 62.1792452830189, 7.40566037735849
1493444100, 2, 124.346153846154, 7.17307692307692
1493443800, 3, 123.36, 7
1493443500, 4, 119.809090909091, 7
On Saturday, April 29, 2017 at 1:39:53 AM UTC-4, Craig Thom wrote:
>
> The total strikes I'm showing in my database don't match what's coming
> from the sensor.
>
> This is the relevant entry in [sdr] [[sensor_map]]
>
> lightningStrikesTotal = strikes_total.6FAF.AcuriteLightningPacket
>
> Here's what I've got in the database, and I have no idea why the total
> isn't always a whole number:
>
> dateTime, lightningStrikes, lightningStrikesTotal, lightningDistance
> 1493442900, 2, 110.028571428571, 7
> 1493442600, 7, 102.776699029126, 6.0873786407767
> 1493442300, 1, 98.25, 5
> 1493442000, 9, 86.6132075471698, 5
> 1493441700, 6, 80.6796116504854, 5
> 1493441400, 7, 72.33, 5
> 1493441100, 8, 64.9393939393939, 5
> 1493440800, 9, 57, 5.72897196261682
> 1493440500, 3, 50.3142857142857, 7
> 1493440200, 6, 45.0943396226415, 7
> 1493439900, 5, 40.0106382978723, 7
> 1493439600, 6, 35.3, 5.9
> 1493439300, 9, 27.2380952380952, 4.51428571428571
> 1493439000, 7, 21.2169811320755, 4
> 1493438700, 11, 10.9126213592233, 4
> 1493438400, 10, 70.5208333333333, 4.8125
> 1493438100, 17, 114.601941747573, 5.11650485436893
> 1493437800, 22, 94.4757281553398, 5
> 1493437500, 23, 71.3870967741936, 6.50537634408602
> 1493437200, 14, 52.24, 5.94
> 1493436900, 13, 40.0531914893617, 5
>
>
> Between the last two of the entries I stopped weewx and ran the sdr driver
> alone piped to "grep lightning". This is what I got.
>
> out: ['2017-04-29 05:12:38 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 108 Distance 7 L_status 0x03 - c0 6f af 55 50
> 7d 6c e7 53 \n']
> out: ['2017-04-29 05:12:38 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 108 Distance 7 L_status 0x03 - c0 6f af 55 50
> 7d 6c e7 53 \n']
> out: ['2017-04-29 05:12:38 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 108 Distance 7 L_status 0x03 - c0 6f af 55 50
> 7d 6c e7 53 \n', '{"time" : "2017-04-29 05:12:39", "model" : "Acurite
> tower sensor", "id" : 7059, "channel" : "B", "temperature_C" : 22.300,
> "humidity" : 63, "battery" : 1, "status" : 132}\n', '{"time" :
> "2017-04-29 05:12:39", "model" : "Acurite tower sensor", "id" : 7059,
> "channel" : "B", "temperature_C" : 22.300, "humidity" : 63, "battery" : 1,
> "status" : 132}\n', '{"time" : "2017-04-29 05:12:39", "model" : "Acurite
> tower sensor", "id" : 7059, "channel" : "B", "temperature_C" : 22.300,
> "humidity" : 63, "battery" : 1, "status" : 132}\n', '{"time" :
> "2017-04-29 05:12:39", "temperature" : 104.000, "humidity" : 63, "id" :
> 155, "model" : "LaCrosse TX141TH-Bv2 sensor", "battery" : "LOW", "test" :
> "No"}\n', '{"time" : "2017-04-29 05:12:39", "temperature" : 104.000,
> "humidity" : 63, "id" : 155, "model" : "LaCrosse TX141TH-Bv2 sensor",
> "battery" : "LOW", "test" : "No"}\n', '{"time" : "2017-04-29 05:12:39",
> "temperature" : 104.000, "humidity" : 63, "id" : 155, "model" : "LaCrosse
> TX141TH-Bv2 sensor", "battery" : "LOW", "test" : "No"}\n']
> out: ['2017-04-29 05:12:46 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 109 Distance 7 L_status 0x00 - c0 6f af 55 50
> 7d ed 87 74 \n']
> out: ['2017-04-29 05:12:46 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 109 Distance 7 L_status 0x00 - c0 6f af 55 50
> 7d ed 87 74 \n']
> out: ['2017-04-29 05:12:46 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 109 Distance 7 L_status 0x00 - c0 6f af 55 50
> 7d ed 87 74 \n', '{"time" : "2017-04-29 05:12:48", "model" : "Acurite
> tower sensor", "id" : 15335, "channel" : "A", "temperature_C" : 22.800,
> "humidity" : 61, "battery" : 1, "status" : 132}\n', '{"time" :
> "2017-04-29 05:12:48", "model" : "Acurite tower sensor", "id" : 15335,
> "channel" : "A", "temperature_C" : 22.800, "humidity" : 61, "battery" : 1,
> "status" : 132}\n', '{"time" : "2017-04-29 05:12:48", "model" : "Acurite
> tower sensor", "id" : 15335, "channel" : "A", "temperature_C" : 22.800,
> "humidity" : 61, "battery" : 1, "status" : 132}\n']
> out: ['2017-04-29 05:12:54 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 109 Distance 7 L_status 0x01 - c0 6f af 55 50
> 7d ed 27 14 \n']
> out: ['2017-04-29 05:12:54 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 109 Distance 7 L_status 0x01 - c0 6f af 55 50
> 7d ed 27 14 \n']
> out: ['2017-04-29 05:12:54 Acurite lightning 0x6FAF Ch A Msg Type 0x02:
> 67.3 F 85 % RH Strikes 109 Distance 7 L_status 0x01 - c0 6f af 55 50
> 7d ed 27 14 \n', '{"time" : "2017-04-29 05:12:56", "model" : "Acurite
> tower sensor", "id" : 7059, "channel" : "B", "temperature_C" : 22.300,
> "humidity" : 63, "battery" : 1, "status" : 132}\n', '{"time" :
> "2017-04-29 05:12:56", "model" : "Acurite tower sensor", "id" : 7059,
> "channel" : "B", "temperature_C" : 22.300, "humidity" : 63, "battery" : 1,
> "status" : 132}\n', '{"time" : "2017-04-29 05:12:56", "model" : "Acurite
> tower sensor", "id" : 7059, "channel" : "B", "temperature_C" : 22.300,
> "humidity" : 63, "battery" : 1, "status" : 132}\n', '{"time" :
> "2017-04-29 05:12:56", "temperature" : 104.000, "humidity" : 63, "id" :
> 155, "model" : "LaCrosse TX141TH-Bv2 sensor", "battery" : "LOW", "test" :
> "No"}\n', '{"time" : "2017-04-29 05:12:56", "temperature" : 104.000,
> "humidity" : 63, "id" : 155, "model" : "LaCrosse TX141TH-Bv2 sensor",
> "battery" : "LOW", "test" : "No"}\n', '{"time" : "2017-04-29 05:12:56",
> "temperature" : 104.000, "humidity" : 63, "id" : 155, "model" : "LaCrosse
> TX141TH-Bv2 sensor", "battery" : "LOW", "test" : "No"}\n']
>
>
> Sometimes the parsed output contains the data from a different sensor, but
> I doubt that affects the lightning total. Those LaCross sensors are not
> mine.
>
> Strikes ls always a whole number here, but not in my database.
>
> Earlier I stopped weewx and ran
>
> rtl_433 -R 39 -F json | grep lightning
>
> and got this:
>
> 2017-04-29 01:02:06 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 96 Distance 5 L_status 0x03 - c0 6f af 4e d1 09 60 65
> cb*
> 2017-04-29 01:02:06 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 96 Distance 5 L_status 0x03 - c0 6f af 4e d1 09 60 65
> cb*
> 2017-04-29 01:02:06 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 96 Distance 5 L_status 0x03 - c0 6f af 4e d1 09 60 65
> cb*
> 2017-04-29 01:02:14 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af 4e d1 09 e1 a5
> 8c*
> 2017-04-29 01:02:14 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af 4e d1 09 e1 a5
> 8c*
> 2017-04-29 01:02:14 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af 4e d1 09 e1 a5
> 8c*
> 2017-04-29 01:02:22 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af 4e d1 09 e1 a5
> 8c*
> 2017-04-29 01:02:22 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af 4e d1 09 e1 a5
> 8c*
> 2017-04-29 01:02:22 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 78
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af 4e d1 09 e1 a5
> 8c*
> 2017-04-29 01:02:30 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af cf d1 09 e1 a5
> 0d*
> 2017-04-29 01:02:30 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af cf d1 09 e1 a5
> 0d*
> 2017-04-29 01:02:30 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x01 - c0 6f af cf d1 09 e1 a5
> 0d*
> 2017-04-29 01:02:38 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x00 - c0 6f af cf d1 09 e1 05
> 6d*
> 2017-04-29 01:02:38 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x00 - c0 6f af cf d1 09 e1 05
> 6d*
> 2017-04-29 01:02:38 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x00 - c0 6f af cf d1 09 e1 05
> 6d*
> 2017-04-29 01:02:46 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x03 - c0 6f af cf d1 09 e1 65
> cd*
> 2017-04-29 01:02:46 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x03 - c0 6f af cf d1 09 e1 65
> cd*
> 2017-04-29 01:02:46 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.5 F 79
> % RH Strikes 97 Distance 5 L_status 0x03 - c0 6f af cf d1 09 e1 65
> cd*
> 2017-04-29 01:02:54 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.0 F 79
> % RH Strikes 98 Distance 5 L_status 0x01 - c0 6f af cf d1 84 e2 a5
> 89*
> 2017-04-29 01:02:54 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.0 F 79
> % RH Strikes 98 Distance 5 L_status 0x01 - c0 6f af cf d1 84 e2 a5
> 89*
> 2017-04-29 01:02:54 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.0 F 79
> % RH Strikes 98 Distance 5 L_status 0x01 - c0 6f af cf d1 84 e2 a5
> 89*
> 2017-04-29 01:03:02 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.0 F 79
> % RH Strikes 98 Distance 5 L_status 0x01 - c0 6f af cf d1 84 e2 a5
> 89*
> 2017-04-29 01:03:02 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.0 F 79
> % RH Strikes 98 Distance 5 L_status 0x01 - c0 6f af cf d1 84 e2 a5
> 89*
> 2017-04-29 01:03:02 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.0 F 79
> % RH Strikes 98 Distance 5 L_status 0x01 - c0 6f af cf d1 84 e2 a5
> 89*
> 2017-04-29 01:03:10 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.0 F 79
> % RH Strikes 98 Distance 5 L_status 0x01 - c0 6f af cf d1 84 e2 a5
> 89*
> 2017-04-29
>
> 01:03:10 Acurite lightning 0x6FAF Ch A Msg Type 0x02: 68.0 F 79 % RH
> Strikes 98 Distance 5 L_status 0x01 - c0 6f af cf d1 84 e2 a5 89*
>
> I have to squeeze my monkeying around between archive intervals, because I
> have to stop weewx to access the rtl.
>
>
> As I'm writing this, I'm starting to think that the total in the database
> is the average of the sensor reading over the interval. I don't think it
> should be. I think it should be the last value. But maybe that's a
> philosophical question. If that's the case, it should settle down once
> there's no more lightning in an interval.
>
--
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].
For more options, visit https://groups.google.com/d/optout.