NOAA data mixed (F and C)

164 views
Skip to first unread message

Yves Martin

unread,
Sep 8, 2023, 4:07:11 PM9/8/23
to weewx-user
Hi,

I have a bilingual web site, English and French.
When I upgraded weewx, the NOAA data were mixed-up for the French version in F and C !

How to re-generate all the NOAA data in C (For the French side) from the database?

Regards,
Yves, YMartin.com/meteo

Tom Keffer

unread,
Sep 8, 2023, 7:00:02 PM9/8/23
to weewx...@googlegroups.com
Not much information here.

Which skin? Which version?

Which values were in C, which in F?

In weewx.conf, under [StdReport] / [[Defaults]] what settings did you use for unit_system? Did you override group_temperature? Did you override for the specific skin?

How did you manage the mixed unit systems? With separate reports, each using a different value for unit_system? Some other way?

It might be easiest if you post your [StdReport] section.

-tk

--
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/430ac885-d7c9-4dec-8108-98106719375en%40googlegroups.com.

Tom Keffer

unread,
Sep 13, 2023, 12:21:07 PM9/13/23
to weewx...@googlegroups.com
Yves, did you resolve this?

Yves Martin

unread,
Sep 22, 2023, 3:28:42 PM9/22/23
to weewx-user
Hi Tom,

Sorry for the delay... had a lot of work...

 unit_system = us

I'm using the Bootstrap skin. This happen when I upgraded from old version to the new one... and the tests I did with the last Bootstrap (before the 4.1 was released).

YM

Yves Martin

unread,
Sep 22, 2023, 3:30:07 PM9/22/23
to weewx-user
... On the French side, C and F and mixed in the NOAA reports.
... On the English one, all is correct.

YM

Tom Keffer

unread,
Sep 22, 2023, 5:03:35 PM9/22/23
to weewx...@googlegroups.com
Thanks. How about the rest of my questions? Also, post your [StdReport] section.





Yves Martin

unread,
Sep 23, 2023, 9:33:42 AM9/23/23
to weewx-user
Here is the config file:

[StdReport]

    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins

    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = /var/www/html/weewx

    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding

    [[StandardReport]]
        # See the customizing guide to change the units, plot types and line
        # colors, modify the fonts, display additional sensor data, and other
        # customizations. Many of those changes can be made here by overriding
        # parameters, or by modifying templates within the skin itself.

        # The StandardReport uses the 'Standard' skin, which contains the
        # images, templates and plots for the report.
        skin = Bootstrap
        enable = True
        lang = fr

    #    [[wxobs]]
    #        HTML_ROOT = /var/www/html/weewx/wxobs
    #        skin = wxobs

    [[SeasonsReport]]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = false

    [[SmartphoneReport]]
        # The SmartphoneReport uses the 'Smartphone' skin, and the images and
        # files are placed in a dedicated subdirectory.
        skin = Smartphone
        enable = false
        HTML_ROOT = public_html/smartphone

    [[MobileReport]]
        # The MobileReport uses the 'Mobile' skin, and the images and files
        # are placed in a dedicated subdirectory.
        skin = Mobile
        enable = false
        HTML_ROOT = public_html/mobile

    [[Bootstrap-en]]
        skin = Bootstrap
        enable = true
        lang = en
        HTML_ROOT = /var/www/html/weewx/en

    [[Bootstrap]]
        skin = Bootstrap
        enable = true
        lang = fr
        HTML_ROOT = /var/www/html/weewx

        [[[Units]]]
            [[[[Groups]]]]
                group_speed = km_per_hour

    #            [[[LiveGauges]]]

    #                [[[[windSpeed]]]]
    #                    maxvalue = 100
    #                    splitnumber = 5
    #                    lineColorUntil = 75

    #                [[[[windGust]]]]
    #                    maxvalue = 160
    #                    splitnumber = 8
    #                    lineColorUntil = 75

    [[lastrain]]
        skin = lastrain
        HTML_ROOT = /var/www/html/weewx/lastrain

    [[AirLinkReport]]
        HTML_ROOT = /var/www/html/weewx/airlink
        enable = true
        skin = airlink

    [[FTP]]
(...)

    [[RSYNC]]
        # rsync'ing to a webserver is treated as just another report
        skin = Rsync
        delete = 0

    [[Defaults]]

        # Which language to use for all reports. Not all skins support all languages.
        # You can override this for individual reports.
        lang = en

        # Which unit system to use for all reports. Choices are 'us', 'metric', or 'metricwx'.
        # You can override this for individual reports.
        unit_system = us

        [[[Units]]]
            # Option "unit_system" above sets the general unit system, but overriding specific unit
            # groups is possible. These are popular choices. Uncomment and set as appropriate.
            # NB: The unit is always in the singular. I.e., 'mile_per_hour',
            # NOT 'miles_per_hour'
            [[[[Groups]]]]
                # group_altitude     = meter              # Options are 'foot' or 'meter'
                # group_pressure     = mbar               # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
                # group_rain         = mm                 # Options are 'inch', 'cm', or 'mm'
                # group_rainrate     = mm_per_hour        # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
                # The following line is used to keep the above lines indented properly.
                # It can be ignored.
                unused = unused

            # Uncommenting the following section frequently results in more
            # attractive formatting of times and dates, but may not work in
            # your locale.
            [[[[TimeFormats]]]]
                # day        = %H:%M
                # week       = %H:%M on %A
                # month      = %d-%b-%Y %H:%M
                # year       = %d-%b-%Y %H:%M
                # rainyear   = %d-%b-%Y %H:%M
                # current    = %d-%b-%Y %H:%M
                # ephem_day  = %H:%M
                # ephem_year = %d-%b-%Y %H:%M
                # The following line is used to keep the above lines indented properly.
                # It can be ignored.
                unused = unused

        [[[Labels]]]
            # Users frequently change the labels for these observation types
            [[[[Generic]]]]
                # inHumidity     = Inside Humidity
                # inTemp         = Inside Temperature
                # outHumidity    = Outside Humidity
                # outTemp        = Outside Temperature
                # extraTemp1     = Temperature1
                # extraTemp2     = Temperature2
                # extraTemp3     = Temperature3
                # The following line is used to keep the above lines indented properly.
                # It can be ignored.
                unused = unused

(...)

YM

Tom Keffer

unread,
Sep 23, 2023, 10:30:41 AM9/23/23
to weewx...@googlegroups.com
You still haven't answered my questions, but, nevertheless, I do see one change you made. The report under [[StandardReport]] uses the "Bootstrap" skin, rather than the "Standard" skin. That would mean the Bootstrap skin would be run a total of 3 times.

Try changing it back and disabling it:

    [[StandardReport]]
        # See the customizing guide to change the units, plot types and line
        # colors, modify the fonts, display additional sensor data, and other
        # customizations. Many of those changes can be made here by overriding
        # parameters, or by modifying templates within the skin itself.

        # The StandardReport uses the 'Standard' skin, which contains the
        # images, templates and plots for the report.
        skin = Standard
        enable = False
        lang = fr



Yves Martin

unread,
Sep 26, 2023, 8:42:24 AM9/26/23
to weewx-user
Hi Tom,

Sorry if I missed some questions:

> Which skin? Which version? 
- Bootstrap 3.0

> Which values were in C, which in F?
- in the French part of the web site (https://ymartin.com/meteo/history.html) the NOAA reports are mixed. I was able to get some old backup but the last 3 years have some reports in imperal values and other in metrics.

(...)

But my question is simple, is there a way to re-generated all NOAA reports (for the metric part) ?

regards,
YM

Tom Keffer

unread,
Sep 26, 2023, 9:03:37 AM9/26/23
to weewx...@googlegroups.com
Just delete them. Weewx will automatically regenerate them on then next reporting cycle.

Yves Martin

unread,
Sep 26, 2023, 9:06:56 AM9/26/23
to weewx-user
Oh! Great, thanks ;)

Regards,
YM

Reply all
Reply to author
Forward
0 new messages