Dynamic Foldername in HTML Output

20 views
Skip to first unread message

Eugen Ledergerber

unread,
Dec 12, 2025, 10:07:48 AM (5 days ago) Dec 12
to weewx-user
I would like to save all daily files that are prepared in JSON format in the HTML root in a folder that corresponds to the year of the daily file. Example:
HTML_ROOT
  2025
    day_20251212.json
    day_20251213.json
    ...
 2026
   day_20260101.json
   ...
Ich habe versucht, im skin.conf mit den Platzhaltern zu arbeiten, die für den Dateinamen funktionieren:
template = YYYY/day_detail_YYYYMMDD.json.tmpl

Unfortunately, I cannot find any information on how to achieve this or whether it is even possible.

Thank you very much for your help.

Reply all
Reply to author
Forward
0 new messages