No generation some reports

44 views
Skip to first unread message

enu...@gmail.com

unread,
Nov 25, 2025, 5:28:04 PM (3 days ago) Nov 25
to weewx-user
i have in [StdReport] [[Last24hReport]]
        enable = true
        skin = JSON
        format = JSON
        HTML_ROOT = /var/www/html/weewx/json
        generator = weewx.cheetahgenerator.CheetahGenerator
        [[[last24h]]]
            template = last24h.json.tmpl
   
    [[JSONReport]]
        enable = true
        skin = JSON
        format = JSON
        HTML_ROOT = /var/www/html/weewx/json
        generator = weewx.cheetahgenerator.CheetahGenerator
        # Archivos a generar
        [[[current]]]
            template = current.json.tmpl
        [[[day]]]
            template = day.json.tmpl
        [[[week]]]
            template = week.json.tmpl
        [[[month]]]
            template = month.json.tmpl
        [[[year]]]
            template = year.json.tmpl
        [[[stats]]]
            template = stats.json.tmpl but nothing is generated. Before only generate current.json but i added [last24hReport] and did changes and now nothing is generated. My log is  nov 25 23:25:36 raspberrypi weewxd[793326]: DEBUG weewx.restx: StationRegistry: wait interval (1800 < 86400) has not passed for record 2025-11-25 23:25:00 CET (1764109500)
nov 25 23:25:36 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running reports for latest time in the database.
nov 25 23:25:36 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running report 'Last24hReport'
nov 25 23:25:36 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/JSON/skin.conf for report 'Last24hReport'
nov 25 23:25:36 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running generators for report 'Last24hReport' in directory '/etc/weewx/skins/JSON'
nov 25 23:25:36 raspberrypi weewxd[793326]: DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Di
splayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo
', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
nov 25 23:25:36 raspberrypi weewxd[793326]: DEBUG weewx.manager: Daily summary version is 4.0
nov 25 23:25:36 raspberrypi weewxd[793326]: INFO weewx.cheetahgenerator: Generated 0 files for report Last24hReport in 0.01 seconds
nov 25 23:25:36 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running report 'JSONReport'
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/JSON/skin.conf for report 'JSONReport'
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running generators for report 'JSONReport' in directory '/etc/weewx/skins/JSON'
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Di
splayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo
', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.manager: Daily summary version is 4.0
nov 25 23:25:37 raspberrypi weewxd[793326]: INFO weewx.cheetahgenerator: Generated 0 files for report JSONReport in 0.01 seconds
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running report 'Belchertown'
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Belchertown/skin.conf for report 'Belchertown'
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running generators for report 'Belchertown' in directory '/etc/weewx/skins/Belchertown'
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.cheetahgenerator: Using search list ['user.belchertown.getData', 'user.historicals.SimpleHistoricalSearch', 'weewx.cheetahgenerator
.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelper
s', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
nov 25 23:25:37 raspberrypi weewxd[793326]: DEBUG weewx.manager: Daily summary version is 4.0

Tom Keffer

unread,
Nov 25, 2025, 6:07:16 PM (3 days ago) Nov 25
to weewx...@googlegroups.com
While it is possible to specify which templates to run in weewx.conf, that information is usually put in skin.conf. Follow the pattern set by the Seasons or another report by looking at their skin.conf file. Substitute as necessary.

In particular, pay attention to how the generator is specified. You've got it wrong.

Once you've got that working, if you really want to, you can move that information to weewx.conf, but it will require changing the level of nesting. It's easier to get it working in skin.conf first.

-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 visit https://groups.google.com/d/msgid/weewx-user/02ef047e-ea8e-4856-883b-41c5574494c9n%40googlegroups.com.

enu...@gmail.com

unread,
Nov 25, 2025, 6:28:25 PM (3 days ago) Nov 25
to weewx-user
the log is this  DEBUG weewx.manager: Daily summary version is 4.0
nov 26 00:25:18 raspberrypi weewxd[793326]: INFO weewx.cheetahgenerator: Generated 0 files for report Last24hReport in 0.01 seconds
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running report 'JSONReport'
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/JSON/skin.conf for report 'JSONReport'
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Cannot read localization file /etc/weewx/skins/JSON/lang/es.conf for report 'JSONReport': Config file not found: "/et
c/weewx/skins/JSON/lang/es.conf".
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: **** Using defaults instead.
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running generators for report 'JSONReport' in directory '/etc/weewx/skins/JSON'
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Di

splayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo
', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.manager: Daily summary version is 4.0
nov 26 00:25:18 raspberrypi weewxd[793326]: INFO weewx.cheetahgenerator: Generated 0 files for report JSONReport in 0.00 seconds
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running report 'Belchertown'
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Belchertown/skin.conf for report 'Belchertown'
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.reportengine: Running generators for report 'Belchertown' in directory '/etc/weewx/skins/Belchertown'
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.cheetahgenerator: Using search list ['user.belchertown.getData', 'user.historicals.SimpleHistoricalSearch', 'weewx.cheetahgenerator

.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelper
s', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
nov 26 00:25:18 raspberrypi weewxd[793326]: DEBUG weewx.manager: Daily summary version is 4.0
and my skin.conf is 
[CheetahGenerator]
    encoding = utf8

[Generators]
generator_list = weewx.cheetahgenerator.CheetahGenerator

Tom Keffer

unread,
Nov 25, 2025, 6:34:14 PM (3 days ago) Nov 25
to weewx...@googlegroups.com
There should be a lot more than just 4 lines in skin.conf. Please post the complete file JSON/skin.conf

-tk

enu...@gmail.com

unread,
Nov 25, 2025, 6:48:28 PM (3 days ago) Nov 25
to weewx-user
thank you very much. I made the changes you suggested and changed the templates from weewx.conf to skin.conf. Now I have  [[Last24hReport]]

        enable = true
        skin = JSON
        format = JSON
        HTML_ROOT = /var/www/html/weewx/json
        generator = weewx.cheetahgenerator.CheetahGenerator

   
    [[JSONReport]]
        enable = true
        skin = JSON
        format = JSON
        HTML_ROOT = /var/www/html/weewx/json
        generator = weewx.cheetahgenerator.CheetahGenerator in weewx.conf and [CheetahGenerator]
    encoding = utf8

    [[current]]
            template = current.json.tmpl
        [[day]]
            template = day.json.tmpl
        [[week]]
            template = week.json.tmpl
        [[month]]
            template = month.json.tmpl
        [[monthly]]
            template = montly.json.tmpl

        [[year]]
            template = year.json.tmpl
        [[stats]]
            template = stats.json.tmpl
        [[last24h]]
            template = last24h.json.tmpl

[Generators]
generator_list = weewx.cheetahgenerator.CheetahGenerator in skin.conf and  it works fine.
Reply all
Reply to author
Forward
0 new messages