OK, this tells us that the problem is in the accumulators. For some reason, they are extracting None for windGustDir.
I'm not very familiar with the FO driver, so could you answer a question for me? If you run from the command line, does it emit a value for windGust in every LOOP packet? Or, just on the archive records? If it does, then I think I understand the problem. If it does not, then I have no idea. :-) -tk On Fri, May 4, 2018 at 10:06 AM, Andrew Milner <[email protected]> wrote: > Here's my log > > > > On Friday, 4 May 2018 17:57:12 UTC+3, Thomas Keffer wrote: >> >> But, if you are truly using software record generation, it should be >> available. >> >> Try as I may, I have been unable to reproduce this using my Vantage >> station. I have modified the vantage driver so that it does not emit >> windGustDir, then turned off software record generation. windGustDir >> appears in the database, as it should. >> >> I've attached a lightly instrumented version of engine.py. It will log >> what kind of record generation it is using, and the value of windGustDir. >> >> Could you both give it a try? Remember to set debug=1. >> >> -tk >> >> On Fri, May 4, 2018 at 5:57 AM, Andrew Milner <[email protected]> >> wrote: >> >>> Well I guess that is simply because the station does not provide wind >>> gust direction. >>> >>> See >>> http://www.jim-easterbrook.me.uk/weather/mm/ >>> for a more definitive structure to the FineOffset data structures. >>> >>> SO, for the FO stations you either have to put up with N/A on your web >>> page, or amend the template to not even attempt to put out the direction or >>> go into convoluted code to obtain the max wind/winddir instead of gust dir >>> >>> Guess you can't have something that cannot be read or derived - and >>> since FO do not provide gust direction you're well and truly st...ed >>> >>> Still, problem solved in effect as it is not really a weewx issue - the >>> data simply is not available!! >>> >>> >>> >>> >>> On Friday, 4 May 2018 14:18:35 UTC+3, Greg from Oz wrote: >>>> >>>> MariaDB [weewx]> select dateTime,windspeed, winddir, windgust, >>>> windgustdir from archive where dateTime > 1523758896; >>>> +------------+-------------------+------------------+------- >>>> -----------+-------------+ >>>> | dateTime | windspeed | winddir | windgust >>>> | windgustdir | >>>> +------------+-------------------+------------------+------- >>>> -----------+-------------+ >>>> | 1523759196 | 2.0000049725819 | 225 | 4.10001019379289 >>>> | NULL | >>>> | 1523759496 | 1.40000348080733 | 315 | 2.40000596709828 >>>> | NULL | >>>> | 1523759796 | 1.70000422669461 | 22.5 | 3.10000770750194 >>>> | NULL | >>>> | 1523760096 | 3.40000845338922 | 225 | 5.8000144204875 >>>> | NULL | >>>> | 1523760396 | 3.40000845338922 | 180 | 4.80001193419655 >>>> | NULL | >>>> | 1523760696 | 0.700001740403664 | 45 | 1.70000422669461 >>>> | NULL | >>>> | 1523760996 | 1.40000348080733 | 45 | 2.70000671298556 >>>> | NULL | >>>> | 1523761296 | 2.70000671298556 | 225 | 5.8000144204875 >>>> | NULL | >>>> | 1523761596 | 2.70000671298556 | 90 | 5.8000144204875 >>>> | NULL | >>>> | 1523761896 | 1.40000348080733 | 0 | 2.40000596709828 >>>> | NULL | >>>> | 1523762196 | 2.0000049725819 | 135 | 3.40000845338922 >>>> | NULL | >>>> | 1523762496 | 2.40000596709828 | 90 | 5.10001268008384 >>>> | NULL | >>>> | 1523762700 | 2.13333863742069 | 37.1235426243259 | 3.70000919927651 >>>> | NULL | >>>> +------------+-------------------+------------------+------- >>>> -----------+-------------+ >>>> 13 rows in set (0.00 sec) >>>> >>>> I have NULL for gustdir as well. >>>> >>>> On Wednesday, 2 May 2018 22:42:30 UTC+10, Andrew Milner wrote: >>>>> >>>>> I cannot say as I do not use the standard skin. >>>>> >>>>> 1. Check the index.html.tmpl and see what the source of the dats >>>>> actually is >>>>> 2. Check the database and see what you actually have in the archive >>>>> table windspeed, winddir, windgust, windgustdir fields, and the >>>>> day_windspeed, day_gustspeed and day_gust dir tables >>>>> >>>>> I appear to have nulls everywhere for gustdir. >>>>> >>>>> On Wednesday, 2 May 2018 15:28:48 UTC+3, Greg from Oz wrote: >>>>>> >>>>>> Why does the direction show up on the current conditions page but not >>>>>> the others? I would have thought it would have carried through to the >>>>>> week >>>>>> and month and year. >>>>>> >>>>> -- >>> 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. >>> >> >> -- > 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. > -- 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.
