Page 1 of 1
problems with the export template
Posted: Tue Jan 28, 2025 9:20 pm
by jailbreaker07
I have problems with the export. I have a template with the following content:
Code: Select all
# Standard CSV template with data in metric units
#
# date, time, sol[w], temperature[C]
[YYYY]-[MM]-[DD],[hh]:[mm],[sol2rad-avg:],[th0temp-avg=C.1:]
The written file, however, has no Data:
Code: Select all
2022-01-01,00:00,,
2022-01-01,00:30,,
2022-01-01,01:00,,
2022-01-01,01:30,,
2022-01-01,02:00,,
2022-01-01,02:30,,
2022-01-01,03:00,,
2022-01-01,03:30,,
What could be the reason for this? The data from both sensors exists.
Regards
T.Meißner
Re: problems with the export template
Posted: Wed Jan 29, 2025 4:56 am
by Mattk
Possibly trying to export 30 minute data when there is no 30 minute specific data?
You appear to be exporting from the Database>Import/Export tab using Custom Export in 30 minutes? Try changing to [Hour] and if not then lets know exactly how you have the Export configured and from where?
Re: problems with the export template
Posted: Wed Jan 29, 2025 7:46 am
by jailbreaker07
Mattk wrote: ↑Wed Jan 29, 2025 4:56 am
Possibly trying to export 30 minute data when there is no 30 minute specific data?
You appear to be exporting from the Database>Import/Export tab using Custom Export in 30 minutes? Try changing to [Hour] and if not then lets know exactly how you have the Export configured and from where?
Hello, thank you for the quick reply. The solution was too simple and I can understand the reason very well. Maybe you can help with this too, otherwise I'll start a new topic. I want to output the number of summer days that are over 25 degrees in a template. Is that possible? I haven't managed it yet.
Many thanks. Regards, Thorsten
Re: problems with the export template
Posted: Wed Jan 29, 2025 11:17 am
by Mattk
Anything that has to do with counting up days over a period of time relative to a certain value is not something that a template variable will handle. A typical solution to this type of scenario is going to require a script and some logic.
Re: problems with the export template
Posted: Thu Jan 30, 2025 7:51 pm
by jailbreaker07
Thanks for the idea, I realized it with the help of Ki with PHP and HTML

Re: problems with the export template
Posted: Sat Feb 01, 2025 6:22 am
by paul_1055
would you share your script with us, I would also be interested in it
Re: problems with the export template
Posted: Sat Feb 01, 2025 10:31 am
by jailbreaker07
Hello, I can share it in a new post during the day. My page where you can see it is
http://www.wetter-keppeln.de/sommertage.html