"%daysTmax<0C%" tags not working

This is a little embarrassing. I think I might be missing something, but how do I get the %daysTmax<0C% (and similar) tags working? My page renders the tag, not the value.

Thanks for any advice.

Hello,

I have the same problem. %daysTmax<0C% result is always 0!.

WD: 10.37S39

best regards
Carsten

If it helps, I’m using:

%daysTmin<0C%

to show the number of days that the temp is below freezing and it’s working fine for me

Neil

@dan43
are you sure you have the tag set correct in your template?
@Carsten
that is a different issue to what this thread is about though
so have you had says where the maximum temperature has not exceeded 0C?
if so, .zip and email me your 12017.inf data file and I will test/check here

Dan43,

I don’t find where you’re loading that tag in your testtags.php file. I had some troubles with a couple of those tags but the ‘log file’ version worked.
Try putting both ’ %daysTmax<0C% 'and ’ %daysTmax<0Clg% ’ tags into your testtags.txt if they’re not there already.

Brian, for whatever reason I never could get %daysTmax<0C% and %daysTmaxyear<0C% to work, used the lg versions.

Roger

to work as in not show a value above zero you mean?
if you could zip and email me your month12017.inf data file, I will test/check here

On it’s way.

from testtags:

$daysTmaxLT0C = ‘0’;
$daysTmaxLT0Clg = ‘4’;
$daysTmaxyearLT0C = ‘0’;
$daysTmaxyearLT0Clg = ‘5’;

try a new .zip update, ready now

Hi Brian,
Those two tags are now working but the one day discrepancy is still there:

$daysTmaxLT0C = ‘4’;
$daysTmaxLT0Clg = ‘4’;
$daysTmaxyearLT0C = ‘5’;
$daysTmaxyearLT0Clg = ‘5’;

I will look into that for the next update

Thank you all for your replies, but I posted that original message way back in June 2016 when I was experimenting with the tags. I don’t have that issue now, as I’m using the Saratoga scripts on my site. :slight_smile:

Brian,
As I think back more, that one day off error has been around awhile, b81 or before. I remember adjusting for it in the webpage script.
No hurry for me, whenever you get to it.
Thanks for correcting those other tags!!
Roger

I think its a number of fence posts, gaps between fence posts thing
use the latest .zip update

Thanks, Brian…I’ll try it tonight

Brian,
Tags working great!!

$daysTmaxLT0C = ‘4’; //%daysTmax<0C%
$daysTmaxLT0Clg = ‘4’; //%daysTmax<0Clg%
$daysTmaxyearLT0C = ‘4’; //%daysTmaxyear<0C%
$daysTmaxyearLT0Clg = ‘4’; //%daysTmaxyear<0Clg%