==> Multiple Reports <==

Sometimes you want to have multiple reports. With different data or the same but different versions / languages.

We always create two reports for our main weather station. One in English and one in German with some adjustments and a different theme.

This is easily done with the NeoWX Material skin but should also work with any other WeeWX skin.

->> Adding multiple reports <<-

All reports are defined in your weewx.conf in the [StdReport] section.

Just add a new section for your new report.

Example:

[StdReport]
    [[MaterialReportEN]]
        skin = neowx-material
        HTML_ROOT = /var/www/weather_en
    [[MaterialReportDE]]
        skin = neowx-material
        HTML_ROOT = /var/www/weather_de
        [[[Labels]]]
            [[[[Generic]]]]
                outTemp = Außentemperatur

This will create two reports. One in English and one in German. As you can see I override the [[[Labels]]] on the second report so they get translated.

 

But I also need to make adjustments to the skin.conf in each version. So I make a copy of this skin and adjust the skin.conf there.

cp -R /path/to/weewx/skins/neowx-material /path/to/weewx/skins/neowx-material-de

Now I have a new skin available, but with the same code. I can change the /path/to/weewx/skins/neowx-material-de/skin.conf and set the language to German there and make some more adjustments.

Finally I must set the "new" skin in the weewx.conf. I update my code snippet above (see line 6):

[StdReport]
    [[MaterialReportEN]]
        skin = neowx-material
        HTML_ROOT = /var/www/weather_en
    [[MaterialReportDE]]
        skin = neowx-material-de
        HTML_ROOT = /var/www/weather_de
        [[[Labels]]]
            [[[[Generic]]]]
                outTemp = Außentemperatur

This will use the new created neowx-material-de skin for my German report.

 

Restart weewx and the new report will be generated: sudo service weewx restart

You can find more information on this in the WeeWX Customization Guide. Just search for "StdReport".