problems with the export template

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
jailbreaker07
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Sun Nov 19, 2017 3:12 pm
Contact:

problems with the export template

Post 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
Attachments
Screenshot 2025-01-28 201903.png
Screenshot 2025-01-28 201903.png (56.17 KiB) Viewed 6027 times
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: problems with the export template

Post 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?
jailbreaker07
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Sun Nov 19, 2017 3:12 pm
Contact:

Re: problems with the export template

Post 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
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: problems with the export template

Post 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.
jailbreaker07
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Sun Nov 19, 2017 3:12 pm
Contact:

Re: problems with the export template

Post by jailbreaker07 »

Thanks for the idea, I realized it with the help of Ki with PHP and HTML :)
Attachments
Screenshot 2025-01-30 184944.png
Screenshot 2025-01-30 184944.png (27.45 KiB) Viewed 5944 times
paul_1055
Senior Boarder
Senior Boarder
Posts: 40
Joined: Tue Nov 04, 2008 7:08 pm
Contact:

Re: problems with the export template

Post by paul_1055 »

would you share your script with us, I would also be interested in it
jailbreaker07
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Sun Nov 19, 2017 3:12 pm
Contact:

Re: problems with the export template

Post 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
Post Reply