Author Topic: using METAR current conditions as my dashboard current conditions  (Read 391 times)

0 Members and 1 Guest are viewing this topic.

Offline pimohdaimaoh

  • Senior Contributor
  • ****
  • Posts: 222
  • "Be aware to our nature"
    • PIMOHWEATHER
Hello there,

I have another question regarding the use of METAR script by seratoga templates, since Im not using weather display, the current conditions on my webpage dashboard current conditions not working anymore, I have an Idea instead using from WD, I want to use my METAR conditions appear on my ajax dashboard as current conditions.

Can you help me how to import those tags on metar template? and putting it here on my dashboard?

<td align="center" valign="top" class="data1" style="text-align: center;border: none">
                <img src="<?php echo $condIconDir . newIcon($iconnum) ?>" 
                  alt="<?php $t1 = fixupCondition($condwords);
                        echo $t1; ?>"
                        title="<?php echo $t1; ?>" height="74" width="74" />
                        </span>
                    </td>

                    <td align="center" style="text-align: center; border: 1px solid gray;">
                        <span class="ajax" id="ajaxcurrentcond">
                        <?php echo $t1; ?> </span><br/><br/>
                    </td>

                </tr>

above is my dashboard script current conditions which shows "Not Available"

Thank You and regards

-mike-

My test Site:
http://pimohweather.webutu.com
My CWOP ID: EW0758

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7399
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: using METAR current conditions as my dashboard current conditions
« Reply #1 on: April 14, 2019, 06:58:17 PM »
I see you're using the WeeWX Weather-display skin to create testtags.php and clientraw.txt.

You can use the following Weewx-currentconds.php script to get the metar sky conditions for you
Code: [Select]
<?php
/*
 File: Weewx-currentconds.php

 Purpose: provide a current conditions and icon from a WeeWX running the WD bridge software

 Add a include("Weewx-currentconds.php") after an include for testtags.php ($SITE['WXtags']) and
 configure a metar in $SITE['conditionsMETAR'] entry.
 Set $SITE['overrideRain'] = true; to enable local rain to override sky conditions from metar.
 
 Author: Ken True - webmaster@saratoga-weather.org

//Version 1.00 - 14-Apr-2019

*/
// --------------------------------------------------------------------------

// allow viewing of generated source

if (isset($_REQUEST["sce"]) and strtolower($_REQUEST["sce"]) == "view" ) {
//--self downloader --
   
$filenameReal __FILE__;
   
$download_size filesize($filenameReal);
   
header("Pragma: public");
   
header("Cache-Control: private");
   
header("Cache-Control: no-cache, must-revalidate");
   
header("Content-type: text/plain");
   
header("Accept-Ranges: bytes");
   
header("Content-Length: $download_size");
   
header("Connection: close");
   
   
readfile($filenameReal);
   exit;
}
#-------------------------------------------------------------------------------------
# function processed WD variables
#-------------------------------------------------------------------------------------
global $SITE,$Debug;
if(isset(
$SITE['conditionsMETAR'])) { // override with METAR conditions for text and icon if requested.
include_once("get-metar-conditions-inc.php");
list($Currentsolardescription,$iconnumber) = mtr_conditions($SITE['conditionsMETAR'], $time$sunrise$sunset);
    if(isset(
$currentrainratehr) and 
      (!isset(
$SITE['overrideRain']) or (isset($SITE['overrideRain']) and $SITE['overrideRain'])) ) {
print "<!-- Weewx-currentconds before: Currentsolardescription='$Currentsolardescription' icon='$iconnumber' -->\n";
print $Debug;
  list($Currentsolardescription,$iconnumber) = 
  WWX_RainRateIcon($Currentsolardescription,$iconnumber,$currentrainratehr,$uomrain,$time,$sunrise,$sunset);
print "<!-- Weewx-currentconds after: Currentsolardescription='$Currentsolardescription' icon='$iconnumber' -->\n";
    }
}

#-------------------------------------------------------------------------------------
# WeeWX support function - WWX_RainRateIcon
#-------------------------------------------------------------------------------------

function WWX_RainRateIcon($inText,$inIcon,$inRate,$inUOM,$time,$sunrise,$sunset,$lastRain='0000-00-00T00:00:00') {
   global 
$Debug;
   
/*
Rainfall intensity is classified according to the rate of precipitation:

    Light rain  rate is < 2.5 mm (0.098 in) per hour
    Moderate rain  rate is between 2.5 mm (0.098 in) - 7.6 mm (0.30 in) or 10 mm (0.39 in) per hour
    Heavy rain  rate is > 7.6 mm (0.30 in) per hour, or between 10 mm (0.39 in) and 50 mm (2.0 in) per hour
    Violent rain  rate is > 50 mm (2.0 in) per hour
*/

   
$Debug .= "<!-- WWX_RainRateIcon in='$inText' icon='$inIcon' rate='$inRate' uom='$inUOM' -->\n";
   
$newText '';  // assume no changes
   
$newIcon $inIcon;
   
   
$rate $inRate;
   if(
preg_match('|in|i',$inUOM)) { // convert to mm/hr rate
     
$rate $inRate 25.4;
   }
   
   if(
substr($lastRain,0,4) <> '0000') {
  if($rate 0.001 and time()-strtotime($lastRain) < 30*60) {
 $newText 'Moderate Drizzle';
  }
   }

   if (
$rate 0.0 and $rate 2.5) { $newText 'Light Rain'; }
   if (
$rate >=2.5 and $rate 7.6) { $newText 'Moderate Rain'; }
   if (
$rate >=7.6 and $rate 50.0) { $newText 'Heavy Rain'; }
   if (
$rate >= 50.0)         { $newText 'Violent Rain'; }
   
   if(
$newText <> '' or $rate == 0.0) {
   if ($newText <> '' and $inText <> '') {$newText .= ', ';}
   $newText .= 
      preg_replace('/(Light|Moderate|Heavy|Violent|Extreme){0,1}\s*(Rain|Mist|Drizzle), /i','',$inText);
   $newIcon mtr_get_iconnumber ($time,$newText,$sunrise,$sunset); 
   } else {
   $newText $inText;
   }
   
$Debug .= "<!-- WWX_RainRateIcon out='$newText' icon='$newIcon' rate='$rate' mm/hr -->\n";
   return(array(
$newText,$newIcon));
}

?>

In your home page, after the include for $SITE['WXtags'], add an include("Weewx-currentconds.php").  It will use your testtags.php data and the METAR listed in Settings-weather.php $SITE['conditionsMETAR'] to set $Currentsolardescription and $iconnumber for you to work with the dashboard.   It's the same code I used for other weather software that didn't have the unique WD metar settings.

Also, you'll need to edit ajaxWDwx.js to prevent the weewx-generated clientraw.txt from overriding with the default values when the AJAX update happens.  Change ajaxWDwx.js from
Code: [Select]
// current condition icon and description
set_ajax_obs("ajaxconditionicon",
ajax_wxIcon(clientraw[48])
);

set_ajax_obs("ajaxconditionicon2",
ajax_wxIconJPG(clientraw[48])
);


var currentcond = clientraw[49];
// currentcond = currentcond.replace(/_/g,' ');
// currentcond = currentcond.replace(/^\/Dry\//g,'');
currentcond = currentcond.replace(/\\/g,', ');
// currentcond = currentcond.replace(/\//g,', ');
        currentcond = ajaxFixupCondition(currentcond);
set_ajax_obs("ajaxcurrentcond",currentcond);
set_ajax_obs("gizmocurrentcond",currentcond);
to
Code: [Select]
// current condition icon and description
// set_ajax_obs("ajaxconditionicon",
// ajax_wxIcon(clientraw[48])
// );

// set_ajax_obs("ajaxconditionicon2",
// ajax_wxIconJPG(clientraw[48])
// );


var currentcond = clientraw[49];
// currentcond = currentcond.replace(/_/g,' ');
// currentcond = currentcond.replace(/^\/Dry\//g,'');
currentcond = currentcond.replace(/\\/g,', ');
// currentcond = currentcond.replace(/\//g,', ');
        currentcond = ajaxFixupCondition(currentcond);
// set_ajax_obs("ajaxcurrentcond",currentcond);
// set_ajax_obs("gizmocurrentcond",currentcond);

Best regards,
Ken
« Last Edit: April 15, 2019, 07:24:40 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline pimohdaimaoh

  • Senior Contributor
  • ****
  • Posts: 222
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: using METAR current conditions as my dashboard current conditions
« Reply #2 on: April 16, 2019, 11:35:27 AM »
I see you're using the WeeWX Weather-display skin to create testtags.php and clientraw.txt.

You can use the following Weewx-currentconds.php script to get the metar sky conditions for you
Code: [Select]
<?php
/*
 File: Weewx-currentconds.php

 Purpose: provide a current conditions and icon from a WeeWX running the WD bridge software

 Add a include("Weewx-currentconds.php") after an include for testtags.php ($SITE['WXtags']) and
 configure a metar in $SITE['conditionsMETAR'] entry.
 Set $SITE['overrideRain'] = true; to enable local rain to override sky conditions from metar.
 
 Author: Ken True - webmaster@saratoga-weather.org

//Version 1.00 - 14-Apr-2019

*/
// --------------------------------------------------------------------------

// allow viewing of generated source

if (isset($_REQUEST["sce"]) and strtolower($_REQUEST["sce"]) == "view" ) {
//--self downloader --
   
$filenameReal __FILE__;
   
$download_size filesize($filenameReal);
   
header("Pragma: public");
   
header("Cache-Control: private");
   
header("Cache-Control: no-cache, must-revalidate");
   
header("Content-type: text/plain");
   
header("Accept-Ranges: bytes");
   
header("Content-Length: $download_size");
   
header("Connection: close");
   
   
readfile($filenameReal);
   exit;
}
#-------------------------------------------------------------------------------------
# function processed WD variables
#-------------------------------------------------------------------------------------
global $SITE,$Debug;
if(isset(
$SITE['conditionsMETAR'])) { // override with METAR conditions for text and icon if requested.
include_once("get-metar-conditions-inc.php");
list($Currentsolardescription,$iconnumber) = mtr_conditions($SITE['conditionsMETAR'], $time$sunrise$sunset);
    if(isset(
$currentrainratehr) and 
      (!isset(
$SITE['overrideRain']) or (isset($SITE['overrideRain']) and $SITE['overrideRain'])) ) {
print "<!-- Weewx-currentconds before: Currentsolardescription='$Currentsolardescription' icon='$iconnumber' -->\n";
print $Debug;
  list($Currentsolardescription,$iconnumber) = 
  WWX_RainRateIcon($Currentsolardescription,$iconnumber,$currentrainratehr,$uomrain,$time,$sunrise,$sunset);
print "<!-- Weewx-currentconds after: Currentsolardescription='$Currentsolardescription' icon='$iconnumber' -->\n";
    }
}

#-------------------------------------------------------------------------------------
# WeeWX support function - WWX_RainRateIcon
#-------------------------------------------------------------------------------------

function WWX_RainRateIcon($inText,$inIcon,$inRate,$inUOM,$time,$sunrise,$sunset,$lastRain='0000-00-00T00:00:00') {
   global 
$Debug;
   
/*
Rainfall intensity is classified according to the rate of precipitation:

    Light rain  rate is < 2.5 mm (0.098 in) per hour
    Moderate rain  rate is between 2.5 mm (0.098 in) - 7.6 mm (0.30 in) or 10 mm (0.39 in) per hour
    Heavy rain  rate is > 7.6 mm (0.30 in) per hour, or between 10 mm (0.39 in) and 50 mm (2.0 in) per hour
    Violent rain  rate is > 50 mm (2.0 in) per hour
*/

   
$Debug .= "<!-- WWX_RainRateIcon in='$inText' icon='$inIcon' rate='$inRate' uom='$inUOM' -->\n";
   
$newText '';  // assume no changes
   
$newIcon $inIcon;
   
   
$rate $inRate;
   if(
preg_match('|in|i',$inUOM)) { // convert to mm/hr rate
     
$rate $inRate 25.4;
   }
   
   if(
substr($lastRain,0,4) <> '0000') {
  if($rate 0.001 and time()-strtotime($lastRain) < 30*60) {
 $newText 'Moderate Drizzle';
  }
   }

   if (
$rate 0.0 and $rate 2.5) { $newText 'Light Rain'; }
   if (
$rate >=2.5 and $rate 7.6) { $newText 'Moderate Rain'; }
   if (
$rate >=7.6 and $rate 50.0) { $newText 'Heavy Rain'; }
   if (
$rate >= 50.0)         { $newText 'Violent Rain'; }
   
   if(
$newText <> '' or $rate == 0.0) {
   if ($newText <> '' and $inText <> '') {$newText .= ', ';}
   $newText .= 
      preg_replace('/(Light|Moderate|Heavy|Violent|Extreme){0,1}\s*(Rain|Mist|Drizzle), /i','',$inText);
   $newIcon mtr_get_iconnumber ($time,$newText,$sunrise,$sunset); 
   } else {
   $newText $inText;
   }
   
$Debug .= "<!-- WWX_RainRateIcon out='$newText' icon='$newIcon' rate='$rate' mm/hr -->\n";
   return(array(
$newText,$newIcon));
}

?>

In your home page, after the include for $SITE['WXtags'], add an include("Weewx-currentconds.php").  It will use your testtags.php data and the METAR listed in Settings-weather.php $SITE['conditionsMETAR'] to set $Currentsolardescription and $iconnumber for you to work with the dashboard.   It's the same code I used for other weather software that didn't have the unique WD metar settings.

Also, you'll need to edit ajaxWDwx.js to prevent the weewx-generated clientraw.txt from overriding with the default values when the AJAX update happens.  Change ajaxWDwx.js from
Code: [Select]
// current condition icon and description
set_ajax_obs("ajaxconditionicon",
ajax_wxIcon(clientraw[48])
);

set_ajax_obs("ajaxconditionicon2",
ajax_wxIconJPG(clientraw[48])
);


var currentcond = clientraw[49];
// currentcond = currentcond.replace(/_/g,' ');
// currentcond = currentcond.replace(/^\/Dry\//g,'');
currentcond = currentcond.replace(/\\/g,', ');
// currentcond = currentcond.replace(/\//g,', ');
        currentcond = ajaxFixupCondition(currentcond);
set_ajax_obs("ajaxcurrentcond",currentcond);
set_ajax_obs("gizmocurrentcond",currentcond);
to
Code: [Select]
// current condition icon and description
// set_ajax_obs("ajaxconditionicon",
// ajax_wxIcon(clientraw[48])
// );

// set_ajax_obs("ajaxconditionicon2",
// ajax_wxIconJPG(clientraw[48])
// );


var currentcond = clientraw[49];
// currentcond = currentcond.replace(/_/g,' ');
// currentcond = currentcond.replace(/^\/Dry\//g,'');
currentcond = currentcond.replace(/\\/g,', ');
// currentcond = currentcond.replace(/\//g,', ');
        currentcond = ajaxFixupCondition(currentcond);
// set_ajax_obs("ajaxcurrentcond",currentcond);
// set_ajax_obs("gizmocurrentcond",currentcond);

Best regards,
Ken


Hi ken,

Thank You for the assistance. Yes I decided to use weewx because it consumes our electric bill working my CPU 24/7, since our electric company increases again its electric bills which I cannot hold that anymore, so using raspberry pi, I can continue my weather service in the philippines and of course I still want to use your templates on my page still, since for me its more user friendly templates Im using for almost 2-3 years now and as you can see Im still remodelling my weather page because still want to figure out some issues like my weather resports and rain trends.

Ok ill get it ken, Ill get back to you if the problem still exist, right now Im studying your instructions here then Ill proceed, can't get to work fast due to  my busy work here.  ](*,)

Thanks in advance and "MABUHAY"

-Mike-
« Last Edit: April 16, 2019, 11:39:53 AM by pimohdaimaoh »

My test Site:
http://pimohweather.webutu.com
My CWOP ID: EW0758

Offline pimohdaimaoh

  • Senior Contributor
  • ****
  • Posts: 222
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: using METAR current conditions as my dashboard current conditions
« Reply #3 on: April 16, 2019, 04:36:13 PM »
Hello ken,

It worked after 4 hrs of trial and error, I figured it out when putting above WxTags without inside the <? and ?>, will definitelly not work at all and after I put ";" on include("Weewx-currentconds.php"); it does work already, However when I do changing my  ajaxWDwx.js , the Date changed to 1933 instead of 2019, after its AJAX updates, I do changing its m/d/y or d/m/y on the settings to see if fixed but nothing happenes.

What would be the possible problem below attached image? (the second image)


Thanks and regards

-Mike-

My test Site:
http://pimohweather.webutu.com
My CWOP ID: EW0758

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7399
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: using METAR current conditions as my dashboard current conditions
« Reply #4 on: April 17, 2019, 12:31:53 PM »
The include for the Weewx-currentconds.php has to be done AFTER the include for the wxtags since it overrides two fields (current conditions and icon).

Your homepage is trying to load http://pimohweather.webutu.com/ajaxWeewx.js and that script is getting a 404.  If you're using the Weewx->WD skin, then you should be using ajaxWDwx.js for the AJAX script.  I'm not familiar with (nor distribute) a ajaxWeewx.js script.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline pimohdaimaoh

  • Senior Contributor
  • ****
  • Posts: 222
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: using METAR current conditions as my dashboard current conditions
« Reply #5 on: April 18, 2019, 12:25:09 PM »
The include for the Weewx-currentconds.php has to be done AFTER the include for the wxtags since it overrides two fields (current conditions and icon).

Your homepage is trying to load http://pimohweather.webutu.com/ajaxWeewx.js and that script is getting a 404.  If you're using the Weewx->WD skin, then you should be using ajaxWDwx.js for the AJAX script.  I'm not familiar with (nor distribute) a ajaxWeewx.js script.

Hello,

Yes, It is actually my intention to dissable ajaxWDwx.js , because when I include it in ajax dashboard, it still works fine as before, however the values like (see attached) the Date values changes to uncorrect yr date, also the wind gust value gives also incorrect value and also to its UV and  solar values, so I decided to disable the .js temnporarily so that the dashboard data shows the correct values, however of course to update the data, I should put like <meta http-equiv="refresh" content="60"> to ajaxdashboard to auto refresh it since no .js script to auto updates data. Still cant figure it out the .js script how to correct those values in  ajaxWDwx.js so that I can use that .js again properly.

Maybe you could help me fixing ajaxWDwx.js to properly puts the correct data on the dashboard but the Weewx-currentconds.php is 100% working on my current dashboard, Thank You so Much on that, I can accurately monitor the event status of weather using METAR. because of this even our local weather forcaster using my webpage as second referenced data.

My test Site:
http://pimohweather.webutu.com
My CWOP ID: EW0758

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7399
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: using METAR current conditions as my dashboard current conditions
« Reply #6 on: April 18, 2019, 01:29:36 PM »
You seem to be running an older version of Alternative-ajax-dashboard.php - 6.95 - 05-JAN-2016 by Scott, with your own mods (and strangely enough, some Leuven scripts mixed in (module ws_luftdaten1.php),

The customary AJAX script for the alternative dashboard is ajaxWDwx3.js instead of the stock ajaxWDwx.js script for the Saratoga template.

Both of those scripts use http://pimohweather.webutu.com/pimohweewx/WD/clientraw.txt as the clientraw source.

Using my WD parser against your http://pimohweather.webutu.com/pimohweewx/WD/ shows your WeeWX-generated clientraw.txt to be malformed -- there are misplaced values (likely due to extra spaces in the record).  That's why neither AJAX script seems to work properly -- the clientraw.txt data record doesn't have the info in the correct space-delimited record.  I suggest you update your WeeWX skin that creates the clientraw*.txt files to the latest version and see if that fixes the errors you're seeing.  When the WD-parser shows the correct number of fields (and with proper contents), your site will work with the AJAX enabled.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline pimohdaimaoh

  • Senior Contributor
  • ****
  • Posts: 222
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: using METAR current conditions as my dashboard current conditions
« Reply #7 on: April 18, 2019, 02:33:44 PM »
You seem to be running an older version of Alternative-ajax-dashboard.php - 6.95 - 05-JAN-2016 by Scott, with your own mods (and strangely enough, some Leuven scripts mixed in (module ws_luftdaten1.php),

The customary AJAX script for the alternative dashboard is ajaxWDwx3.js instead of the stock ajaxWDwx.js script for the Saratoga template.

Both of those scripts use http://pimohweather.webutu.com/pimohweewx/WD/clientraw.txt as the clientraw source.

Using my WD parser against your http://pimohweather.webutu.com/pimohweewx/WD/ shows your WeeWX-generated clientraw.txt to be malformed -- there are misplaced values (likely due to extra spaces in the record).  That's why neither AJAX script seems to work properly -- the clientraw.txt data record doesn't have the info in the correct space-delimited record.  I suggest you update your WeeWX skin that creates the clientraw*.txt files to the latest version and see if that fixes the errors you're seeing.  When the WD-parser shows the correct number of fields (and with proper contents), your site will work with the AJAX enabled.

Thanks ken, now I see the suspected weewx WD-Extension skin.conf might be the cause, I will try to fix in its skin.conf, however I didnt try to edit skins in weewx yet since, but I will try and see what I got, right now I am running the dashboard without the .js script temporarily while I try to figure those errors. Thank You for the assistance.
« Last Edit: April 18, 2019, 02:39:58 PM by pimohdaimaoh »

My test Site:
http://pimohweather.webutu.com
My CWOP ID: EW0758

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7399
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: using METAR current conditions as my dashboard current conditions
« Reply #8 on: April 18, 2019, 07:14:28 PM »
I think I found the issue with the clientraw.txt format -- there are 5 timestamps that have the format 'hh:mm:ss AM' with a space separating the time from the AM or PM.  I worked up a fix to the clientraw.txt.tmpl file in the weewx/skins/Clientraw directory and have attached the tar-gz'ed version for you.  It does fix the 5 timestamps (I tried it on my 3.9.1 weewx with 1.0.3 version of the WD plugin).

Hope this helps...
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline pimohdaimaoh

  • Senior Contributor
  • ****
  • Posts: 222
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: using METAR current conditions as my dashboard current conditions
« Reply #9 on: April 19, 2019, 12:11:03 PM »
I think I found the issue with the clientraw.txt format -- there are 5 timestamps that have the format 'hh:mm:ss AM' with a space separating the time from the AM or PM.  I worked up a fix to the clientraw.txt.tmpl file in the weewx/skins/Clientraw directory and have attached the tar-gz'ed version for you.  It does fix the 5 timestamps (I tried it on my 3.9.1 weewx with 1.0.3 version of the WD plugin).

Hope this helps...

Oh, Thanks ken. . . . I will paste this when I come back home, for sure this will fix the issue of my yr date using .js script

(UPDATE)

Nice Ken it worked, it correctly post the correct yr and time, will observe if this affects other values


regards

-mike-
« Last Edit: April 19, 2019, 01:20:10 PM by pimohdaimaoh »

My test Site:
http://pimohweather.webutu.com
My CWOP ID: EW0758