Page 1 of 1

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

Posted: Mon Dec 03, 2018 5:23 pm
by Bastian
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

Re: How to use the #pragma emptyline command?

Posted: Tue Dec 04, 2018 1:18 am
by admin
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.

Re: How to use the #pragma emptyline command?

Posted: Tue Dec 04, 2018 2:09 am
by admin
Has been fixed with just released update.

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

Posted: Tue Dec 04, 2018 8:44 am
by Bastian
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?

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

Posted: Wed Dec 05, 2018 12:36 am
by admin
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.

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

Posted: Wed Dec 05, 2018 8:58 pm
by Bastian
Now it works! Thank you!