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
How to use the #pragma emptyline command? **solved**
Moderator: Mattk
Re: How to use the #pragma emptyline command?
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.
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?
Has been fixed with just released update.
Re: How to use the #pragma emptyline command? **solved**
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?
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**
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 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:],.
Re: How to use the #pragma emptyline command? **solved**
Now it works! Thank you!