Author Topic: weather34 template for weeWX  (Read 11067 times)

0 Members and 1 Guest are viewing this topic.

Offline herbo

  • Member
  • *
  • Posts: 1
Re: weather34 template for weeWX
« Reply #25 on: April 17, 2019, 01:27:14 AM »
Hi all,

Has anyone managed to get the UV almanac and solar Almanac pages to produce any information?
I cannot seem to get them to work.

Thanks

Offline balloon101

  • Member
  • *
  • Posts: 4
Re: weather34 template for weeWX
« Reply #26 on: April 17, 2019, 05:18:41 PM »
Hi all,
If you are using the built-in wxcharts for rainfall and you are in the US and using a WS-2316/2317 then the daily rainfall is probably off by a factor of 10. Here are the changes I made to correct the issue. I suspect there are other ways to do this.

First in the file "todayrainfall.php"
Change
dataPoints1.push({label:moment(rowData[0]).format('HH:mm'),y:parseFloat(rowData[12])});

to

dataPoints1.push({label:moment(rowData[0]).format('HH:mm'),y:parseFloat(rowData[12]*<?php echo $rainfallconvmm ;?>)});

then in the file "conversion.php"
Change the following in the US section.
Note there are two locations in the US. One with no units and one with "us" units

  $rainfallconvmm='1';

to

  $rainfallconvmm='.1';

Well that is it hope this helps.

 

anything