cloudy cloudy

Author Topic: Cell Page incorrect yesterday values - RESOLVED  (Read 236 times)

0 Members and 1 Guest are viewing this topic.

Offline Bonz

  • Posts: 167
  • Auburn, Mass
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Auburn MA Weather
Cell Page incorrect yesterday values - RESOLVED
« on: April 30, 2019, 06:35:21 PM »
Could someone tell me why my cell page under min and max temps yesterday is displaying "NaN°F"   The time is correct and when I look at the fields for $maxtempyest and $mintempyest within my testtags.php file they state values:

$tempchangehour =  '+0.2';   // Temperature change in the last hour
$maxtempyest =  '57.7';   // Yesterday's max temperature
$maxtempyestt =  '3:30 PM';   // Time of yesterday's max temperature
$mintempyest =  '32.2';   // Yesterday's min temperature
$mintempyestt =  '6:01 AM';   // Time of yesterday's min temperature
//

Cell page is located at: http://www.auburnweatherlive.com/cell.php

cell-ajax-dashboard.php is attached.

Thanks everyone
Bonz



« Last Edit: April 30, 2019, 07:52:32 PM by Bonz »

Offline Bonz

  • Posts: 167
  • Auburn, Mass
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Auburn MA Weather
Re: Cell Page incorrect yesterday values
« Reply #1 on: April 30, 2019, 07:52:14 PM »
Figured it out.

Changed the Span class to Ajax.  not sure why it was convTemp in the first place but this fixed it.


 <span class="convTemp"><b><?php echo strip_units($maxtempyest) . $uomTemp; ?></b></span>

to

<span class="ajax"><b><?php echo strip_units($maxtempyest) . $uomTemp; ?></b></span>