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.
El miércoles, 26 de noviembre de 2025 a las 0:34:14 UTC+1, Tom Keffer
escribió:
> There should be a lot more than just 4 lines in skin.conf. Please post the
> complete file JSON/skin.conf
>
> -tk
>
> On Tue, Nov 25, 2025 at 3:28 PM [email protected] <[email protected]> wrote:
>
>> 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
>>
>>
>>
>>
>>
>> El miércoles, 26 de noviembre de 2025 a las 0:07:16 UTC+1, Tom Keffer
>> escribió:
>>
>>> 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
>>>
>>> On Tue, Nov 25, 2025 at 2:28 PM [email protected] <[email protected]>
>>> wrote:
>>>
>>>> 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
>>>>
>>>> --
>>>> 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 visit
>>>> https://groups.google.com/d/msgid/weewx-user/02ef047e-ea8e-4856-883b-41c5574494c9n%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/weewx-user/02ef047e-ea8e-4856-883b-41c5574494c9n%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 visit
>> https://groups.google.com/d/msgid/weewx-user/d4692596-bc67-4afc-9405-c699d56c5848n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/d4692596-bc67-4afc-9405-c699d56c5848n%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 visit
https://groups.google.com/d/msgid/weewx-user/cbf7f786-9d2e-49e6-a624-95f0bc4448b4n%40googlegroups.com.