Here is the result from running  weewxd  from the command line:

REC:    2022-02-12 14:45:49 CET (1644673549) 'altimeter': 
'29.559632125170864', 'appTemp': '21.798150800000002', 'barometer': 
'29.68039690383254', 'cloudbase': '3612.989261474405', 'dateTime': 
'1644673549', 'delay': '10', 'dewpoint': '27.72361104088051', 'ET': 'None', 
'heatindex': '32.0', 'humidex': '32.0', 'inDewpoint': '20.331537695862405', 
'inHumidity': '40.0', 'inTemp': '42.980000000000004', 'interval': '10', 
'maxSolarRad': '123.63840457180561', 'outHumidity': '84.0', 'outTemp': 
'32.0', 'outTempBatteryStatus': '0', 'pressure': '26.836852640000004', 
'ptr': '37776', 'radiation': 'None', 'rain': 'None', 'rainRate': '0.0', 
'rainTotal': '104.33999999999999', 'rxCheckPercent': '100', 'status': '0', 
'usUnits': '1', 'UV': 'None', 'windchill': '23.361958924222293', 'windDir': 
'225.0', 'windGust': '12.079486000472244', 'windGustDir': 'None', 
'windrun': '1.7895534815514438', 'windSpeed': '10.737320889308663'

Until version 4.6.0 the windGustDir was recorded in the database with a 
value different from NULL. It seems for me that something is changed.
Do you mean that  windGustDir should have the value of windDir (windGust is 
a speed, not a direction)?

On Saturday, February 12, 2022 at 2:41:29 PM UTC+1 tke...@gmail.com wrote:

> FO stations do not supply windGustDir, so the software should substitute 
> windGust in its place.
>
> Could you please run weewxd directly from the command line 
> <http://www.weewx.com/docs/usersguide.htm#Running_directly>? Watch what 
> it prints out for records (marked with "REC:"). What does it show for 
> windGust and windGustDir?
>
> -tk
>
> On Sat, Feb 12, 2022 at 4:19 AM Aslak Vaa <asla...@gmail.com> wrote:
>
>> After upgrating to weewx version 4.6.0/4.6.2 is windGustDir is always set 
>> to NULL in database (sqlite3).
>> Please see results of query from the database and extracts from the 
>> syslog file.
>> I stopped the version 4.5.1 at feb 5 15:02:05, and I started the version 
>> 4.6.0 same date half an hour later at 15:32:19. The windDir is saved as 
>> expected, only windGustDir is missing.
>> My weatherstation is model WH1080 , and I am using the FineOffsetUSB 
>> driver.
>> Contents of database:
>> sqlite3 /var/lib/weewx/weewx.sdb
>> SQLite version 3.34.1 2021-01-20 14:10:07
>> Enter ".help" for usage hints.
>> sqlite> select  dateTime(archive.dateTime, 'unixepoch', 'localtime') 
>> dateTime,
>>    ...>    archive.windSpeed, archive.windDir, archive.windGust, 
>> archive.windGustDir
>>    ...> from archive
>>    ...> where archive.datetime >
>>    ...>   (select max(archive.dateTime) from archive where windGustDir is 
>> not null) - 1000
>>    ...> limit 10;
>> 2022-02-05 
>> 14:50:00|17.1634447548798|234.745604391204|29.7513266307928|247.5
>> 2022-02-05 
>> 15:00:00|17.6108331252676|221.995376457057|27.2906905936595|247.5
>> 2022-02-05 15:14:51|24.3826661861384|202.5|32.6593510383139|
>> 2022-02-05 15:24:51|21.2509475934234|247.5|22.8168068897809|
>> 2022-02-05 15:34:51|22.8168068897809|180.0|27.2906905936595|
>> 2022-02-05 15:40:00|24.3826661861384|225.0|28.1854673344352|
>> 2022-02-05 15:50:00|19.2987074317309|222.892960584793|34.8962928902532|
>> 2022-02-05 16:00:00|19.6444166270306|220.208490631264|34.2252103346714|
>> 2022-02-05 16:10:00|17.3871389400737|226.684593888771|23.4878894453627|
>> 2022-02-05 16:20:00|13.7673603069355|222.317738592905|25.0537487417202|
>> sqlite>
>> Extracts from syslog:
>> aslak-pi0:~ $ grep '4\.5\.' /var/log/syslog.1 | tail
>> Jan 30 09:51:04 aslak-pi0 weewx[952] INFO __main__: Starting up weewx 
>> version 4.5.1
>> Jan 30 19:29:02 aslak-pi0 weewx[976] INFO __main__: Initializing weewx 
>> version 4.5.1
>> Jan 30 19:29:02 aslak-pi0 weewx[979] INFO __main__: Starting up weewx 
>> version 4.5.1
>> Jan 31 19:28:05 aslak-pi0 weewx[965] INFO __main__: Initializing weewx 
>> version 4.5.1
>> Jan 31 19:28:05 aslak-pi0 weewx[968] INFO __main__: Starting up weewx 
>> version 4.5.1
>> Feb  1 20:32:31 aslak-pi0 weewx[1032] INFO __main__: Initializing weewx 
>> version 4.5.1
>> Feb  1 20:32:31 aslak-pi0 weewx[1037] INFO __main__: Starting up weewx 
>> version 4.5.1
>> Feb  2 15:44:42 aslak-pi0 weewx[15495] INFO __main__: Initializing weewx 
>> version 4.5.1
>> Feb  2 15:44:43 aslak-pi0 weewx[15498] INFO __main__: Starting up weewx 
>> version 4.5.1
>> Feb  5 15:02:05 aslak-pi0 weewx[15498] INFO __main__: Terminating weewx 
>> version 4.5.1
>> aslak-pi0:~ $ grep '4\.6\.0' /var/log/syslog.1 | head
>> Feb  5 15:32:19 aslak-pi0 weewx[37838] INFO __main__: Initializing weewx 
>> version 4.6.0
>> Feb  5 15:32:19 aslak-pi0 weewx[37841] INFO __main__: Starting up weewx 
>> version 4.6.0
>> Feb  5 15:33:45 aslak-pi0 weewx[37841] INFO __main__: Terminating weewx 
>> version 4.6.0
>> Feb  5 15:35:28 aslak-pi0 weewx[37964] INFO __main__: Initializing weewx 
>> version 4.6.0
>> Feb  5 15:35:28 aslak-pi0 weewx[37967] INFO __main__: Starting up weewx 
>> version 4.6.0
>> Feb  5 16:46:50 aslak-pi0 weewx[37967] INFO __main__: Terminating weewx 
>> version 4.6.0
>> Feb  5 16:46:54 aslak-pi0 weewx[38640] INFO __main__: Initializing weewx 
>> version 4.6.0
>> Feb  5 16:46:54 aslak-pi0 weewx[38643] INFO __main__: Starting up weewx 
>> version 4.6.0
>> Feb  5 16:57:25 aslak-pi0 weewx[38643] INFO __main__: Terminating weewx 
>> version 4.6.0
>> Feb  5 16:57:29 aslak-pi0 weewx[38793] INFO __main__: Initializing weewx 
>> version 4.6.0
>> aslak-pi0:~ $
>>
>> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/1acfbc59-01a5-44a9-b1a8-bd000823204fn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/1acfbc59-01a5-44a9-b1a8-bd000823204fn%40googlegroups.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/7e95cedd-6db0-4bd2-9209-babeee3218e1n%40googlegroups.com.

Reply via email to