Author Topic: Rainfall chart too high: Weather34 HWS-2019-02 Ambient WS-2000 ATMOCOM version  (Read 1019 times)

0 Members and 1 Guest are viewing this topic.

Offline gszlag

  • Forecaster
  • *****
  • Posts: 436
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
 The monthly chart on the weather template is showing way too high daily rainfall.

Total rain for the days (June 4th and 5th) is showing 8 to 9 times higher  (approx. 8.6 times higher) than what Ambient WS-2000 display is reading.
 
See the weather34 template here:: http://www.weather.glenns.ca and click on the rain chart for June. The 12.5mm rainfall for June in the Almanac rainfall section of the template is correct. It is the pop-up chart that is way out.
 
Compare it to the source data from WU ( take at look at the June 4th or June 5th readings)
see: https://www.wunderground.com/dashboard/pws/ITEHKUMM2

Relko the developer/inventor of the ATMOCOM has confirmed that his device is not in error. The captured readings corresponds with my total monthly rain on my WS-2000 display.

Has anyone has had a similar discrepancy and is there any way to correct it?

 [ You are not allowed to view attachments ]
Ambient Weather WS-2000
Ecowitt WS3900 console
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W (WeeWX/MQTT/Belchertown)
---
Barometer wiki: http://meshka.eu/Ecowitt/dokuwiki/doku.php?id=barometer#barometer
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
It looks like you are using the CU-HWS base, but have some local mods to use Atmocom for data instead of the (expected) Cumulus-style realtime.txt data.  In the stock rainfall.php module, the data displayed are from
Code: [Select]
$weather["rain_year"]
$weather["rain_month"]
$weather["rain_lasthour"]
$weather["rainydmax"]
and the $weather[] array is set in livedata.php for Cumulus-like realtime.txt via
Code: [Select]
$weather["rain_today"]         = $cumulus[9];
$weather["rain_month"]         = $cumulus[19]; // rain month total
$weather["rain_year"]          = $cumulus[20]; // rain year total
$weather["rain_units"]         = $cumulus[16]; // mm or in
$weather["rainydmax"]          = $cumulus[21]; // rain yesterday total
$weather["rain_lasthour"]      = $cumulus[47]; // rain last hour tnx Ian

I don't know how the Atmocom mods change the source of that data, but that is where you need to investigate.  Unfortunately, I do not have the Atmocom mods to look at, so I can't debug your issue further.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline lightmaster

  • MB-HWS Template Dev
  • Forecaster
  • *****
  • Posts: 324
    • Baxley,GA Weather
Your chartswudata/062019.txt has the right data in it it looks like, so the chart file must be applying a factor of 10 to each value. Can you upload your chartswu/weeklyrainfall.php?

Offline gszlag

  • Forecaster
  • *****
  • Posts: 436
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Thanks Ken for investigating,

I had asked Relko if it could be an issue with the.ATMOCOM.. His response was that the data uploaded to WU is not modified by the ATMOCOM in any way (other than converting inches to mm)and the data is not processed by any scripts. None of the RAIN nnn values are touched by the ATMOCOM or associated scripts.
Relko says you can see the raw data generated by the ATMOCOM script here:
view-source:http://glenns.ca/atmocom/wxloader.php?id=ITEHKUMM2&fmt=j
The data looks OK.

The ATMOCOM mod/patch for your template is on their github site:
https://github.com/atmocom/php-misc


It looks like you are using the CU-HWS base, but have some local mods to use Atmocom for data instead of the (expected) Cumulus-style realtime.txt data.  In the stock rainfall.php module, the data displayed are from
Code: [Select]
$weather["rain_year"]
$weather["rain_month"]
$weather["rain_lasthour"]
$weather["rainydmax"]
and the $weather[] array is set in livedata.php for Cumulus-like realtime.txt via
Code: [Select]
$weather["rain_today"]         = $cumulus[9];
$weather["rain_month"]         = $cumulus[19]; // rain month total
$weather["rain_year"]          = $cumulus[20]; // rain year total
$weather["rain_units"]         = $cumulus[16]; // mm or in
$weather["rainydmax"]          = $cumulus[21]; // rain yesterday total
$weather["rain_lasthour"]      = $cumulus[47]; // rain last hour tnx Ian

I don't know how the Atmocom mods change the source of that data, but that is where you need to investigate.  Unfortunately, I do not have the Atmocom mods to look at, so I can't debug your issue further.
Ambient Weather WS-2000
Ecowitt WS3900 console
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W (WeeWX/MQTT/Belchertown)
---
Barometer wiki: http://meshka.eu/Ecowitt/dokuwiki/doku.php?id=barometer#barometer
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline gszlag

  • Forecaster
  • *****
  • Posts: 436
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather


Thanks kindly for looking into this.

I guess I am not allowed to upload php files on the forum? Tried renaming as a text file. No go either. Hopefully it is readable as a cut and paste.

Here is the contents of the weeklyrainfall.php file.:

<?php
   include('../common.php');
   ####################################################################################################
   #   WUDATACHARTS by BRIAN UNDERDOWN 2016                                                           #
   #   CREATED FOR HOMEWEATHERSTATION TEMPLATE at http://weather34.com/homeweatherstation/index.html  #
   #                                                                                                   #
   #    built on CanvasJs                                                                                #
   #   canvasJs.js is protected by CREATIVE COMMONS LICENCE BY-NC 3.0                                #
   #    free for non commercial use and credit must be left in tact .                                   #
   #                                                                                                   #
   #    Weather Data is based on your PWS upload quality collected at Weather Underground               #
   #                                                                                                   #
   #    Second General Release: 4th October 2016                                                        #
   #                                                                                                   #
   #   http://www.weather34.com                                                                       #
   ####################################################################################################
   
   include('../settings.php');include('conversion.php');   
    echo '
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
   <head>
      <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
      <title>OUTDOOR 7-Day RAINFALL DATABASE CHART</title>   
      <script src=../js/jquery.js></script>
      <script src=canvasJs.js></script>
   ';   
   $date= date('D jS Y');$weatherfile = date('mY');?><br>
       <script type="text/javascript">
      // rainfall month
        $(document).ready(function () {
      var dataPoints1 = [];
      var dataPoints2 = [];
      $.ajax({
         type: "GET",
         url: "../chartswudata/<?php echo $weatherfile;?>.txt",
         dataType: "text",
         cache:false,
         success: function(data) {processData1(data),processData2(data);}
      });
   
      function processData1(allText) {
      var allLinesArray = allText.split('\n');
      if(allLinesArray.length>0){
         
         for (var i = 2; i <= allLinesArray.length-1; i++) {
            var rowData = allLinesArray.split(',');
            if ( rowData.length >1)
               dataPoints1.push({label:moment(rowData[0],'YYYY-MM-DD HH:mm:ss').format("ddd Do HH:mm"),y:parseFloat(rowData[15]*<?php echo $rainfallconvmm ;?>)});
         }
      }
      requestTempCsv();}function requestTempCsv(){}
      function processData2(allText) {
      var allLinesArray = allText.split('\n');
      if(allLinesArray.length>0){
         
         for (var i = 2; i <= allLinesArray.length-1; i++) {
            var rowData = allLinesArray.split(',');
            if ( rowData.length >1)
               dataPoints2.push({label:moment(rowData[0],'YYYY-MM-DD HH:mm:ss').format("ddd Do HH:mm"),y:parseFloat(rowData[15]*<?php echo $rainfallconvmm ;?>)});
            
         }
         drawChart(dataPoints1 , dataPoints2 );
      }
   }
      function drawChart( dataPoints1 , dataPoints2 ) {
      var chart = new CanvasJS.Chart("chartContainer", {
       backgroundColor: "RGBA(37, 41, 45, 0.9)",
       animationEnabled: true,
      
      title: {
            text: "",
         fontSize: 12,
         fontColor:' #ccc',
         fontFamily: "arial",
        },
      toolTip:{
            fontStyle: "normal",
            cornerRadius: 4,
            backgroundColor: "RGBA(37, 41, 45, 0.9)",
      
            toolTipContent: " x: {x} y: {y} <br/> name: {name}, label:{label}",
            shared: true,
 },
      axisX: {
         gridColor: "RGBA(64, 65, 66, 0.8)",
          labelFontSize: 10,
         labelFontColor:' #ccc',
         lineThickness: 0.5,
         gridThickness: 1,   
         titleFontFamily: "arial",   
         labelFontFamily: "arial",
         interval:6,               
         },
         
      axisY:{
      title: "<?php echo $lang['Rainfall'] ;?>  (<?php echo $rainunit ;?>) ",
      titleFontColor: "#ccc",
      titleFontSize: 10,
        titleWrap: false,
      margin: 10,
      lineThickness: 0.5,      
      gridThickness: 1,      
        includeZero: true,
      gridColor: "RGBA(64, 65, 66, 0.8)",
      labelFontSize: 11,
      labelFontColor:' #ccc',
      titleFontFamily: "arial",
      labelFontFamily: "arial",
      labelFormatter: function ( e ) {
        return e.value .toFixed(2) + " <?php echo $rainunit ;?> " ; 
         },         
         },
     legend:{
      fontFamily: "arial",
      fontColor:"#ccc",
      },
      
      data: [
      {
         //type: "spline",
         type: "column",
         color:"#00A4B4",
         markerSize:2,
         showInLegend:true,
         legendMarkerType: "circle",
         lineThickness: 2,
         markerType: "none",
         name:"<?php echo $lang['Rainfall'] ;?> ",
         dataPoints: dataPoints1,
         yValueFormatString:"#0.# <?php echo $rainunit ;?>",
      },
      {
         //not used in year rainfall
      }]
      });
      chart.render();   }
});
    </script>
   
<link rel="stylesheet" href="weather34chartstyle.css?ver=3.0">
</head>
<body>
<div class="weather34darkbrowser" url="<?php echo $stationlocation;?> <?php echo $lang['Rainfall'] ;?>  (<?php echo $rainunit ;?>) 7-Day"></div>
<div style="width:auto;background:0;padding:0px;margin-left:5px;font-size: 12px;border-radius:3px;">
<div id="chartContainer" class="chartContainer"></div></div>
<div class="weather34browser-footer">
<span style="position:absolute;color:#fff;font-size:10px;font-family:arial;padding-top:5px;margin-left:25px;border-radius:3px;">
&nbsp;
<svg id="i-external" viewBox="0 0 32 32" width="10" height="10" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.25%">
<path d="M14 9 L3 9 3 29 23 29 23 18 M18 4 L28 4 28 14 M28 4 L14 18" /></svg>
<a href="https://weather34.com/homeweatherstation/" title="https://weather34.com" target="_blank">
<span style="color:#00A4B4;"><?php echo $chartversion  ;?> CSS & PHP scripts by weather34</span> </a></span>
<span style="position:absolute;color:#aaa;font-size:10px;font-family:arial;padding-top:5px;margin-left:25px;display:block;margin-top:12px;">
&nbsp;
<svg id="i-external" viewBox="0 0 32 32" width="10" height="10" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.25%">
<path d="M14 9 L3 9 3 29 23 29 23 18 M18 4 L28 4 28 14 M28 4 L14 18" /></svg>
<a href="https://canvasjs.com" title="https://canvasjs.com" target="_blank"><?php echo $creditschart ;?> </a></span>
<div class="weather34browser-footerlogo"><a href="https://weather34.com/homeweatherstation/" title="https://weather34.com/homeweatherstation/" target="_blank"><img src="../img/weatherlogo34.svg" width="35px"</img></a></div></div>
</body>
<script src='canvasJs.js'></script>
</html>


Your chartswudata/062019.txt has the right data in it it looks like, so the chart file must be applying a factor of 10 to each value. Can you upload your chartswu/weeklyrainfall.php?
Ambient Weather WS-2000
Ecowitt WS3900 console
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W (WeeWX/MQTT/Belchertown)
---
Barometer wiki: http://meshka.eu/Ecowitt/dokuwiki/doku.php?id=barometer#barometer
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline lightmaster

  • MB-HWS Template Dev
  • Forecaster
  • *****
  • Posts: 324
    • Baxley,GA Weather
When you paste code like that, put [.code] in front of the text and [./code] after it, leaving out the periods, those are just there so you can see the tag without it taking effect in this post.

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
The way Brian had arranged the graphs for the CU-HWS template is two processes:
1) the data file is downloaded from WeatherUnderground via the ./jsondata/wuupdate.php script and
2) the cached file from (1) is processed into the chart.js format needed and displayed.

The wuupdate.php script should look like the attached (which uses your WU/TWC PWS API key) and not the older version that accessed www.wunderground.com/weatherstation/WXDailyHistory.asp .

Does your ./jsondata/wuupdate.php look like the attached? 
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline lightmaster

  • MB-HWS Template Dev
  • Forecaster
  • *****
  • Posts: 324
    • Baxley,GA Weather
If you look at http://www.glenns.ca/weather34_cumulus/chartswudata/062019.txt, for the 4th and 5th, you can see it is pulling the rain as 5.08mm and 7.37mm, so the issue has to with processing the data that's in that file, not in retrieving it from WU

Offline lightmaster

  • MB-HWS Template Dev
  • Forecaster
  • *****
  • Posts: 324
    • Baxley,GA Weather
Each value is multiplied by a conversion factor, so was that changed?

Code: [Select]
dataPoints1.push({label:moment(rowData[0],'YYYY-MM-DD HH:mm:ss').format("ddd Do HH:mm"),y:parseFloat(rowData[15]*<?php echo $rainfallconvmm ;?>)});

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
It could be that the original reporting for rain was in CM, and now is in MM instead.

Try changing ./chartswu/conversion.php
Code: [Select]
if ($restoftheworld == true & $units == 'metric' ) {

$pressureconv='1';$temperatureconvhi='parseFloat(rowData[1]';$temperatureconvlo='parseFloat(rowData[3]';$temperatureconv='parseFloat(rowData[1]';$dewpointconv='parseFloat(rowData[2]';
$windconv = "1";$rainfallconv='10';$pressureinterval= "0.5";  $rainfallconvmm='10';
}
to
Code: [Select]
if ($restoftheworld == true & $units == 'metric' ) {

$pressureconv='1';$temperatureconvhi='parseFloat(rowData[1]';$temperatureconvlo='parseFloat(rowData[3]';$temperatureconv='parseFloat(rowData[1]';$dewpointconv='parseFloat(rowData[2]';
$windconv = "1";$rainfallconv='10';$pressureinterval= "0.5";  $rainfallconvmm='1';
}
I'd not changed any of the original Brian scripts for graphing conversions... 
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline gszlag

  • Forecaster
  • *****
  • Posts: 436
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
I used Notepad++ compare - both files are the same.

The way Brian had arranged the graphs for the CU-HWS template is two processes:
1) the data file is downloaded from WeatherUnderground via the ./jsondata/wuupdate.php script and
2) the cached file from (1) is processed into the chart.js format needed and displayed.

The wuupdate.php script should look like the attached (which uses your WU/TWC PWS API key) and not the older version that accessed www.wunderground.com/weatherstation/WXDailyHistory.asp .

Does your ./jsondata/wuupdate.php look like the attached?
Ambient Weather WS-2000
Ecowitt WS3900 console
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W (WeeWX/MQTT/Belchertown)
---
Barometer wiki: http://meshka.eu/Ecowitt/dokuwiki/doku.php?id=barometer#barometer
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline gszlag

  • Forecaster
  • *****
  • Posts: 436
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
re: http://weather.glenns.ca The fix worked once and only once. It initially showed 5.1 mm and 7.4 mm for the two rain days.. However somehow it has reverted back...

I checked conversion.php and it still has held your changes (see below) - very strange.

Code: [Select]
####################################################################################################
// REST OF WORLD  to conversion WUDATACHARTS HOMEWEATHERSTATION  (metric)     
####################################################################################################

if ($restoftheworld == true & $units == '' ) {

$pressureconv='1';$temperatureconvhi='parseFloat(rowData[1]';$temperatureconvlo='parseFloat(rowData[3]';$temperatureconv='parseFloat(rowData[1]';$dewpointconv='parseFloat(rowData[2]';
$windconv = "1";$rainfallconv='10';$pressureinterval= "0.5";  $rainfallconvmm='10';
}



if ($restoftheworld == true & $units == 'us' ) {

$pressureconv='0.0295299830714';$temperatureconvhi='parseFloat((rowData[1] *1.8) +32';$temperatureconvlo='parseFloat((rowData[3] *1.8) +32';$temperatureconv='parseFloat((rowData[1] *1.8) +32';
$dewpointconv='parseFloat((rowData[2] *1.8) +32';$windconv = "0.621371";$rainfallconv='0.393701';$pressureinterval= "0.5";  $rainfallconvmm='0.393701';
}

if ($restoftheworld == true & $units == 'uk' ) {

$pressureconv='1';$temperatureconvhi='parseFloat(rowData[1]';$temperatureconvlo='parseFloat(rowData[3]';$temperatureconv='parseFloat(rowData[1]';$dewpointconv='parseFloat(rowData[2]';
$windconv = "0.621371";$rainfallconv='10';$pressureinterval= "0.5"; $rainfallconvmm='10';
}

if ($restoftheworld == true & $units == 'scandinavia' ) {

$pressureconv='1';$temperatureconvhi='parseFloat(rowData[1]';$temperatureconvlo='parseFloat(rowData[3]';$temperatureconv='parseFloat(rowData[1]';$dewpointconv='parseFloat(rowData[2]';
$windconv = "0.277778";$rainfallconv='10';$pressureinterval= "0.5";$rainfallconvmm='10';
}

if ($restoftheworld == true & $units == 'metric' ) {

$pressureconv='1';$temperatureconvhi='parseFloat(rowData[1]';$temperatureconvlo='parseFloat(rowData[3]';$temperatureconv='parseFloat(rowData[1]';$dewpointconv='parseFloat(rowData[2]';
$windconv = "1";$rainfallconv='10';$pressureinterval= "0.5";  $rainfallconvmm='1';
}

####################################################################################################
// END REST OF WORLD  to conversion  2ND OCTOBER 2016...
####################################################################################################

It could be that the original reporting for rain was in CM, and now is in MM instead.

Try changing ./chartswu/conversion.php
Code: [Select]
if ($restoftheworld == true & $units == 'metric' ) {

$pressureconv='1';$temperatureconvhi='parseFloat(rowData[1]';$temperatureconvlo='parseFloat(rowData[3]';$temperatureconv='parseFloat(rowData[1]';$dewpointconv='parseFloat(rowData[2]';
$windconv = "1";$rainfallconv='10';$pressureinterval= "0.5";  $rainfallconvmm='10';
}
to
Code: [Select]
if ($restoftheworld == true & $units == 'metric' ) {

$pressureconv='1';$temperatureconvhi='parseFloat(rowData[1]';$temperatureconvlo='parseFloat(rowData[3]';$temperatureconv='parseFloat(rowData[1]';$dewpointconv='parseFloat(rowData[2]';
$windconv = "1";$rainfallconv='10';$pressureinterval= "0.5";  $rainfallconvmm='1';
}
I'd not changed any of the original Brian scripts for graphing conversions...
Ambient Weather WS-2000
Ecowitt WS3900 console
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W (WeeWX/MQTT/Belchertown)
---
Barometer wiki: http://meshka.eu/Ecowitt/dokuwiki/doku.php?id=barometer#barometer
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline gszlag

  • Forecaster
  • *****
  • Posts: 436
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Thanks lightmaster! for the sleuthing.
Today will be a daily rain event and am anxious to see what today's total rainfall will look like on the June chart after changing the conversion values as per Ken.
Thanks for your assistance.


Each value is multiplied by a conversion factor, so was that changed?

Code: [Select]
dataPoints1.push({label:moment(rowData[0],'YYYY-MM-DD HH:mm:ss').format("ddd Do HH:mm"),y:parseFloat(rowData[15]*<?php echo $rainfallconvmm ;?>)});
Ambient Weather WS-2000
Ecowitt WS3900 console
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W (WeeWX/MQTT/Belchertown)
---
Barometer wiki: http://meshka.eu/Ecowitt/dokuwiki/doku.php?id=barometer#barometer
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
I've just done an update to the distribution to change all the processing for the graphs to use mm from the JSON.

Changed:  settings.php and chartswu/conversion.php files

https://github.com/ktrue/CU-HWS
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline gszlag

  • Forecaster
  • *****
  • Posts: 436
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
I am pleased to report that the issue is fixed after applying your updates! June rain totals are now correct.

http://weather.glenns.ca

Thank you!

I've just done an update to the distribution to change all the processing for the graphs to use mm from the JSON.

Changed:  settings.php and chartswu/conversion.php files

https://github.com/ktrue/CU-HWS
Ambient Weather WS-2000
Ecowitt WS3900 console
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W (WeeWX/MQTT/Belchertown)
---
Barometer wiki: http://meshka.eu/Ecowitt/dokuwiki/doku.php?id=barometer#barometer
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW