cloudy

Author Topic: "%daysTmax<0C%" tags not working  (Read 374 times)

0 Members and 1 Guest are viewing this topic.

Offline dan43

  • Posts: 395
  • Oregon Scientific WMR300
  • Port Coquitlam, British Columbia, Canada
  • OS/Browser:
  • Win NT 10.0
  • Chrome 50.0.2661.102
    • Port Coquitlam Weather
"%daysTmax<0C%" tags not working
« on: June 09, 2016, 01:00:33 AM »
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.

Offline Carsten

  • Posts: 63
  • Schluchsee / Germany
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • http://www.schluchsee.org/
Re: "%daysTmax<0C%" tags not working
« Reply #1 on: January 07, 2017, 05:33:46 PM »
Hello,

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

WD: 10.37S39

best regards
Carsten
Weatherstation Schluchsee (992m) Blackforest Germany
http://www.schluchsee.org/

Offline neildockar

  • Crondall Weather
  • Posts: 82
  • Still a classic - like so many of us....
  • Crondall - UK
  • OS/Browser:
  • Win NT 10.0
  • Chrome 55.0.2883.87
    • Crondall Weather
Re: "%daysTmax<0C%" tags not working
« Reply #2 on: January 11, 2017, 06:39:06 AM »
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


Offline Weather Display

  • Posts: 79,825
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 55.0.2883.87
    • Weather Display
Re: "%daysTmax<0C%" tags not working
« Reply #3 on: January 11, 2017, 05:42:23 PM »
@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

Offline Weather Dog

  • Posts: 113
  • Peet Bros. Ultimeter 2100 Pro
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • New Milford Ct Weather
Re: "%daysTmax<0C%" tags not working
« Reply #4 on: January 11, 2017, 07:24:01 PM »
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

Offline Weather Display

  • Posts: 79,825
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 55.0.2883.87
    • Weather Display
Re: "%daysTmax<0C%" tags not working
« Reply #5 on: January 11, 2017, 07:29:27 PM »
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

Offline Weather Dog

  • Posts: 113
  • Peet Bros. Ultimeter 2100 Pro
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • New Milford Ct Weather
Re: "%daysTmax<0C%" tags not working
« Reply #6 on: January 11, 2017, 09:09:34 PM »
On it's way.

from testtags:

$daysTmaxLT0C = '0';
$daysTmaxLT0Clg = '4';
$daysTmaxyearLT0C = '0';
$daysTmaxyearLT0Clg = '5';

Offline Weather Display

  • Posts: 79,825
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 55.0.2883.87
    • Weather Display
Re: "%daysTmax<0C%" tags not working
« Reply #7 on: January 11, 2017, 09:55:51 PM »
try a new .zip update, ready now

Offline Weather Dog

  • Posts: 113
  • Peet Bros. Ultimeter 2100 Pro
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • New Milford Ct Weather
Re: "%daysTmax<0C%" tags not working
« Reply #8 on: January 11, 2017, 11:30:28 PM »
Hi Brian,
Those two tags are now working but the one day discrepancy is still there:

$daysTmaxLT0C = '4';
$daysTmaxLT0Clg = '4';
$daysTmaxyearLT0C = '5';
$daysTmaxyearLT0Clg = '5';

Offline Weather Display

  • Posts: 79,825
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 55.0.2883.87
    • Weather Display
Re: "%daysTmax<0C%" tags not working
« Reply #9 on: January 12, 2017, 01:49:35 AM »
I will look into that for the next update

Offline dan43

  • Posts: 395
  • Oregon Scientific WMR300
  • Port Coquitlam, British Columbia, Canada
  • OS/Browser:
  • Win NT 10.0
  • Chrome 55.0.2883.87
    • Port Coquitlam Weather
Re: "%daysTmax<0C%" tags not working
« Reply #10 on: January 12, 2017, 04:53:53 AM »
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.  :)

Offline Weather Dog

  • Posts: 113
  • Peet Bros. Ultimeter 2100 Pro
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • New Milford Ct Weather
Re: "%daysTmax<0C%" tags not working
« Reply #11 on: January 12, 2017, 10:12:00 AM »
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

Offline Weather Display

  • Posts: 79,825
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 55.0.2883.87
    • Weather Display
Re: "%daysTmax<0C%" tags not working
« Reply #12 on: January 12, 2017, 05:49:30 PM »
I think its a number of fence posts, gaps between fence posts thing
use the latest .zip update

Offline Weather Dog

  • Posts: 113
  • Peet Bros. Ultimeter 2100 Pro
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • New Milford Ct Weather
Re: "%daysTmax<0C%" tags not working
« Reply #13 on: January 12, 2017, 07:46:52 PM »
Thanks, Brian...I'll try it tonight

Offline Weather Dog

  • Posts: 113
  • Peet Bros. Ultimeter 2100 Pro
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • New Milford Ct Weather
Re: "%daysTmax<0C%" tags not working
« Reply #14 on: January 12, 2017, 09:59:06 PM »
Brian,
Tags working great!!

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

 

cumulus