How to use the #pragma emptyline command? **solved**

This section covers the Meteobridge PRO units exclusively

Moderator: Mattk

Post Reply
Bastian
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Fri Mar 20, 2015 11:04 am

How to use the #pragma emptyline command? **solved**

Post by Bastian » Mon Dec 03, 2018 5:23 pm

Hello,

could anybody give me a note how to use the command to suppress empty lines in an export file?

I found the following in the tutorial: "#pragma emptyline=n" does even printout rows, when it is completely empty, which means it has no data. "emptyline=n" does not print out empty lines.

But when i insert it in the template nothing happens in the exported file. Nevertheless the empty lines are printed out.

Thanks
Bastian

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5479
Joined: Mon Oct 01, 2007 10:51 pm

Re: How to use the #pragma emptyline command?

Post by admin » Tue Dec 04, 2018 1:18 am

Are the lines completely empty? If there are date and time stamps that is enough to regard the line non-empty. Can you please paste in an example?

Erratum: date and time stamps are not rendering a line being non-empty. I will have to get deeper into that.

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5479
Joined: Mon Oct 01, 2007 10:51 pm

Re: How to use the #pragma emptyline command?

Post by admin » Tue Dec 04, 2018 2:09 am

Has been fixed with just released update.

Bastian
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Fri Mar 20, 2015 11:04 am

Re: How to use the #pragma emptyline command? **solved**

Post by Bastian » Tue Dec 04, 2018 8:44 am

Thank you, i will reboot the system to get the newest firmware.

But i am not sure how to handle the command in the template:

# Standard CSV template with data in metric units
#pragma emptyline=n
$# date, time, temperature[C], humidity[%], dew point[C], sealevel pressure[hPa], avg wind speed[m/s], gust speed[m/s], winddir, rainfall[mm]<BR>
[YYYY]-[MM]-[DD],[hh]:[mm],[th0temp-avg.1:],[th0hum-avg.0:],[th0dew-avg.1:],[thb0seapress-avg.1:],[wind0avgwind-avg.1:],[wind0wind-max.1:],..

or before the line:

# Standard CSV template with data in metric units
#
$# date, time, temperature[C], humidity[%], dew point[C], sealevel pressure[hPa], avg wind speed[m/s], gust speed[m/s], winddir, rainfall[mm]<BR>
#pragma emptyline=n [YYYY]-[MM]-[DD],[hh]:[mm],[th0temp-avg.1:],[th0hum-avg.0:],[th0dew-avg.1:],[thb0seapress-avg.1:],[wind0avgwind-avg.1:],...

Is this the right way? Could you give me an example?

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5479
Joined: Mon Oct 01, 2007 10:51 pm

Re: How to use the #pragma emptyline command? **solved**

Post by admin » Wed Dec 05, 2018 12:36 am

Bastian wrote:
Tue Dec 04, 2018 8:44 am
# Standard CSV template with data in metric units
#pragma emptyline=n
$# date, time, temperature[C], humidity[%], dew point[C], sealevel pressure[hPa], avg wind speed[m/s], gust speed[m/s], winddir, rainfall[mm]<BR>
[YYYY]-[MM]-[DD],[hh]:[mm],[th0temp-avg.1:],[th0hum-avg.0:],[th0dew-avg.1:],[thb0seapress-avg.1:],[wind0avgwind-avg.1:],[wind0wind-max.1:],.
Pragma statement needs to be in a separate line and is valid for all following lines. Please note that it is "emptylines" with "s" at the end.

Bastian
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Fri Mar 20, 2015 11:04 am

Re: How to use the #pragma emptyline command? **solved**

Post by Bastian » Wed Dec 05, 2018 8:58 pm

Now it works! Thank you!

Post Reply