One thing you could try is running weewx from the command line
<http://weewx.com/docs/usersguide.htm#Running_directly>. It will print out
to the console all the data in an archive record. Watch for entries marked
"REC" (most will be marked "LOOP"). What is the value of txBatteryStatus in
there?

-tk

On Fri, Nov 15, 2019 at 9:13 AM Geoff Cusick <ge...@cusick.org.uk> wrote:

> Thanks for the (very) speedy response, Tom.
>
> I’m running weewx 3.9.2 on a Raspberry Pi, raspbian buster.  I’m using a
> MySQL database, hosted on a Synology NAS (MariaDB 5).  Looking at the
> archive table directly through phpmyadmin shows txBatteryStatus as
> constantly NULL.  A query:
>
> select * FROM  ‘archive’ WHERE txBatteryStatus <> NULL;
>
> returns no records.
>
> Everything else seems to work correctly (see weather.cusick.org.uk);
> having just had to replace the ISS battery, I thought I’d add the battery
> status to the ‘About’ page.
>
> Your help would be much appreciated.
>
> Geoff
>
> 17 Westcroft Road Holsworthy, EX22 6BY
> Phone: +44 (0)1409 254330
> Mobile: +44 (0)7976 285950
> Web: http://www.cusick.org.uk
>
> On 15 Nov 2019, at 16:57, Thomas Keffer <tkef...@gmail.com> wrote:
>
> 
> Yes, both have been emitted since v2.6.3 (released 10-Apr-2014).
>
> Is txBatteryStatus null, or zero? It's normally zero. If it is truly null,
> then something is wrong.
>
> On Fri, Nov 15, 2019 at 8:07 AM Geoff Cusick <ge...@cusick.org.uk> wrote:
>
>> I know this is an old question.....
>>
>> Has the change that Tom mentioned been incorporated in later versions of
>> vantage.py?  I’m using weewx v 3.9.2, but txBatteryStatus is always NULL in
>> the database.
>>
>> I’m using a Davis VantageVue.
>>
>> Thanks
>> Geoff
>>
>> On Monday, 24 February 2014 13:45:43 UTC, Thomas Keffer wrote:
>>>
>>> This is a reasonable thing to want and nearly trivial to add. Here's a
>>> version of the Vantage driver that saves the last value of txBatteryStatus
>>> and consBatteryVoltage seen in a LOOP packet and puts them in the archive
>>> record.
>>>
>>> Replace bin/weewx/drivers/vantage.py with this version:
>>>
>>> wget
>>> https://sourceforge.net/p/weewx/code/HEAD/tree/trunk/bin/weewx/drivers/vantage.py?format=raw
>>> -O vantage.py
>>>
>>> -tk
>>>
>>>
>>> On Mon, Feb 24, 2014 at 3:00 AM, Andrew Milner <andrew....@gmail.com>
>>> wrote:
>>>
>>>> mesowx would certainly be able to pick it up from the LOOP records and
>>>> store in its raw table - and display it graphically also (from the raw
>>>> table).... just not sure how to get the data from the raw table to the
>>>> archive table!!!  My mesowx raw table contains data from LOOP records that
>>>> I am 99% sure nobody else is picking up or doing anything with - but I have
>>>> no real need to move it from raw to archive as I also extended the duration
>>>> of raw to be 14 days!!
>>>>
>>>>
>>>> On 24 February 2014 09:41, Al <vanilla...@gmail.com> wrote:
>>>>
>>>>> Andrew Milner wrote:
>>>>> > Doesn't the stats database have the info?  I don't have a davis
>>>>> station,
>>>>> > but looking at your post it seems as though you have changed the
>>>>> schema
>>>>> > and restarted weewx - in which case the stats DB should have been
>>>>> > rebuilt with the additional info - and the stats part of weewx does
>>>>> > (configurable in weewx.conf) process loop records.... so I would have
>>>>> > thought it would 'capture' your info.
>>>>> > Of course I may be completely off on a tangent here - as I said I
>>>>> don't
>>>>> > have a vantage or the luxury of battery statuses!!
>>>>>
>>>>> That's not how it's working here. The data is in the loop record, but
>>>>> apparently consBatteryVoltage and txBatteryStatus data cannot be
>>>>> captured. So nothing in either the stats DB or the archive DB.
>>>>>
>>>>> I'm coming from wview, where consBatteryVoltage and txBatteryStatus
>>>>> data
>>>>> is in the archive DB, so I thought that it would be the same with
>>>>> weewx.
>>>>>
>>>>> I have seen at least one Vantage station running weewx that has the
>>>>> consBatteryVoltage/txBatteryStatus plot icons with current data, so it
>>>>> must be possible.
>>>>>
>>>>> Al
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "Weewx user's group" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/weewx-user/q-k9stqZqYQ/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> weewx...@googlegroups.com.
>>>>>
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Weewx user's group" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to weewx...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>> --
>> 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/e42336df-3f6f-4884-9339-17dc9af8d59a%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/e42336df-3f6f-4884-9339-17dc9af8d59a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/q-k9stqZqYQ/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAPq0zEDaNCHwLvXHrj4Rek8prjXv-x9inYeEKy1iNpZyCjdKNQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEDaNCHwLvXHrj4Rek8prjXv-x9inYeEKy1iNpZyCjdKNQ%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/B7BE87B4-3729-4C0E-B008-9864C536420E%40cusick.org.uk
> <https://groups.google.com/d/msgid/weewx-user/B7BE87B4-3729-4C0E-B008-9864C536420E%40cusick.org.uk?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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAA44zLHso4N3bxGRGvy9exPFEf%3D5nUfB2LQ6ze5u_xcQ%40mail.gmail.com.

Reply via email to