If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Daily windrun in datasummary.php

Discussion of Jacques DesRoches's web site templates

Moderator: JacquesD

Altaelva
Posts: 12
Joined: Sun Jul 14, 2013 6:35 pm
Weather Station: Davis Vantage Vue
Operating System: Win 10
Location: Alta, Norway
Contact:

Daily windrun in datasummary.php

Postby Altaelva » Sat Nov 19, 2016 8:29 pm

Has anyone integrated daily windrun in datasummary.php?
Is it possible?

Kvikklunsj.net

User avatar
Mapantz
Posts: 419
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK

Re: Daily windrun in datasummary.php

Postby Mapantz » Sat Nov 19, 2016 11:13 pm

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?
Image
Image

Altaelva
Posts: 12
Joined: Sun Jul 14, 2013 6:35 pm
Weather Station: Davis Vantage Vue
Operating System: Win 10
Location: Alta, Norway
Contact:

Re: Daily windrun in datasummary.php

Postby Altaelva » Sun Nov 20, 2016 6:18 pm

ok. see that you have windrun on your website. but I can not figure out where to put the code you suggest.


Return to “Weather by You Templates”

Who is online

Users browsing this forum: No registered users and 2 guests