Page 1 of 1

Daily windrun in datasummary.php

Posted: Sat 19 Nov 2016 8:29 pm
by Altaelva
Has anyone integrated daily windrun in datasummary.php?
Is it possible?

Kvikklunsj.net

Re: Daily windrun in datasummary.php

Posted: Sat 19 Nov 2016 11:13 pm
by Mapantz
Hi

I had it on my old version (before I started using an sql version)
I had this in $label_items = array(

Code: Select all

windrun' => array($translit[$dayfileLang]['windrun'][0], $translit[$dayfileLang]['windrun'][1], true, 16, null, 'sah'),
and then this in the function formatOP() { section

Code: Select all

        if ($dataSet == 'windrun') {

            $col = runColour(DoWind($thisValue, 'mph')); // format to colour range uom;

            $part2 .= ' style="background-color:#' . $col[0] . '; color:#' . $col[1] . '"';

            $native = $thisValue;

            $thisValue = DoWind($thisValue, null); // format to DISPLAY uom

        }
I don't know if that helps or not?

Re: Daily windrun in datasummary.php

Posted: Sun 20 Nov 2016 6:18 pm
by Altaelva
ok. see that you have windrun on your website. but I can not figure out where to put the code you suggest.