This is solving the issue! Thanks a lot, Tom!
On Wednesday, 23 March 2022 at 13:33:14 UTC+1 [email protected] wrote: > It looks like it (and lowOutTemp) were never assigned to a unit group. > > Fixed in commit a55892e > <https://github.com/weewx/weewx/commit/a55892e1d5cd41167d7eff9635f5a1750ad2a850> > . > > You can either patch your copy of weewx/units.py, or download a fresh one > <https://raw.githubusercontent.com/weewx/weewx/a55892e1d5cd41167d7eff9635f5a1750ad2a850/bin/weewx/units.py> > . > > On Wed, Mar 23, 2022 at 1:04 AM Saverio Guzzo <[email protected]> wrote: > >> Hi Tom, >> >> Using the function *weewx.units.to_METRICWX *is working well for all the >> fields but *highOutTemp*, which keeps still being reported in >> Fahrenheit. Would you have any ideas on the reason for this? >> >> Thanks again! >> Saverio >> On Wednesday, 23 February 2022 at 13:23:00 UTC+1 Saverio Guzzo wrote: >> >>> Wow, thanks Tom! >>> Such an excellent program! >>> >>> SG >>> >>> On Monday, 21 February 2022 at 18:01:52 UTC [email protected] wrote: >>> >>>> The Vantage series reports measurements in the US Customary unit >>>> system. Because you are printing packets directly from the driver, that's >>>> what you're going to get. >>>> >>>> One thing you can do is take advantage of one of the functions in >>>> units.py. Try this: >>>> >>>> import weewx.units >>>> for packet in vantage.genDavisArchiveRecords(since_ts): >>>> new_packet = weewx.units.to_METRICWX(packet) >>>> print(new_packet) >>>> >>>> >>>> >>>> On Mon, Feb 21, 2022 at 6:40 AM Saverio Guzzo <[email protected]> >>>> wrote: >>>> >>>>> Hello community! >>>>> >>>>> I'm using the vantage's driver as a standalone program and I'm >>>>> wondering if there is an way to convert the measurements to the metric >>>>> system. >>>>> I tried to edit the entry "*unit_system*" of the file " >>>>> *weewx-x.y.z/weewx.conf*" to 'metric', but when running the following >>>>> piece of code >>>>> >>>>> *for packet in vantage.genDavisArchiveRecords(since_ts):* >>>>> * print(packet)* >>>>> >>>>> I still get all the measurements in US system. >>>>> >>>>> What I am missing? >>>>> >>>>> Thank you very much for your help, I appreciate it :) >>>>> Saverio >>>>> >>>>> -- >>>>> 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]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/weewx-user/9e5b1613-3b95-4696-aa40-f928d42d3c92n%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/weewx-user/9e5b1613-3b95-4696-aa40-f928d42d3c92n%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 [email protected]. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/321e3695-adfc-4b73-8d33-5fbbb2a2bab0n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/321e3695-adfc-4b73-8d33-5fbbb2a2bab0n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3284c802-db98-49ee-b631-11bf0988a040n%40googlegroups.com.
