YearNormals plugin code improvement

Post Reply
User avatar
kocher
Language Admin
Language Admin
Posts: 45
Joined: Sun Aug 20, 2017 6:14 pm
Station model: Davis Pro 2
Software: Weather Display

YearNormals plugin code improvement

Post by kocher » Sat Jul 11, 2020 9:31 am

Good morning everyone, followers of Meteotemplate.

First of all I must congratulate Jachym because, I believe, he has recently married. :D

The reason for my question is the following, it is related to PHP and MySQL, in addition to html code:

In the following script (./plugins/yearNormals), Jachym managed to obtain the means, and deviations of all the parameters of our station (which I consider a marvel):

http://kocher.es/meteotemplate/plugins/ ... rGraph.php

What I would like to achieve is the following:

Add a last column (after December), whose heading was AVG.

In this column, the average values ​​of each parameter should appear per year; The last value in this column would show the Absolute Total Average.

I understand the difficulty that the query to the database can have with PHP / MySQL but, for me, the most devilish thing is the PHP / HTML code of Jachym. :idea:

I am thankful for any kind of help.

Greetings from San Sebastian, Spain
Image

"The mind is like a parachute ... It only works if we have it open.". - Albert Einstein

Post Reply