graphCombined block

Post Reply
User avatar
meteoesine
Forecaster
Forecaster
Posts: 186
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

graphCombined block

Post by meteoesine » Sun Dec 02, 2018 10:06 am

Hi there,
I'm looking for who has modified this block with colored lines.
I saw his template some days/weeks ago but now I do not remeber he was and I can't find it anymore.
If you are reading, pls kindly share your interesting modification.
Thanks
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

WSKO_Karlchen
Observer
Observer
Posts: 13
Joined: Fri Apr 20, 2018 10:41 am
Location: Koblenz / Germany
Station model: Davis Pro 2 aktiv
Software: weewx 4.1.1
Contact:

Re: graphCombined block

Post by WSKO_Karlchen » Mon Jan 28, 2019 2:38 pm

How can i add TS1 to TS4 and SM1 to SM4 to the graphcombined Block?
Tried it by myself - but failed...

A hint from anybody - or maybe a running script?

Tried to add this in data.php

Code: Select all

if(in_array("TS1", $graphsToInclude)){
            if($row['TS1'] === "" || $row['TS1'] === null){
                $rawData['TS1'][] = null;
            }
            else{
                $rawData['TS1'][] = convertT($row['TS1']);
            }
        }
and add this

Code: Select all

if($parameter == "TS1"){
            $data['datasets'][] = array("name" => lang('soil temperature 1','c'), "data" => $rawData['TS1'], "unit" => unitFormatter($displayTempUnits), "type" => "line", "valueDecimals" => 1);
        }
but it wont work :(
Wetterservice Koblenz

User avatar
lemimi
Forecaster
Forecaster
Posts: 106
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: graphCombined block

Post by lemimi » Wed Jan 30, 2019 5:31 pm

Hello,

If colored lines in graphCombinedblock still interest you, I just did this:
https://www.lemimi.fr/template/indexDesktop.php

In the graphCombinedBlock.php file,
line 286, I replaced:
color: '# <? php echo $ graphColor?>',
by
lineColor: dataset.lineColor,

In the data.php file,
I added:
, "lineColor" => "#dddddd"
to lines 133,136,139,142,145,148,151,154 and 157
Like this:
$ data ['datasets'] [] = array ("name" => lang ('temperature', 'c'), "data" => $ rawData ['T'], "unit" => unitFormatter ($ displayTempUnits ), "type" => "line", "valueDecimals" => 1, "lineColor" => "#dddddd");

And just change the value of #dddddd to change the color of the line.
The transformed files are downloadable here:
www.lemimi.fr/download/data.zip
www.lemimi.fr/download/graphCombinedBlock.zip

Michel
Last edited by lemimi on Tue Feb 05, 2019 1:12 pm, edited 1 time in total.

User avatar
meteoesine
Forecaster
Forecaster
Posts: 186
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: graphCombined block

Post by meteoesine » Thu Jan 31, 2019 7:32 am

good job. well done!
tnx
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

User avatar
Jolumarali
Professional
Professional
Posts: 252
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: graphCombined block

Post by Jolumarali » Thu Jan 31, 2019 8:53 am

Merci Michel, parfait

José Luis
Image
Station météo amateur Lignerolles
OS : Windows 11 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

User avatar
lemimi
Forecaster
Forecaster
Posts: 106
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: graphCombined block

Post by lemimi » Thu Jan 31, 2019 6:10 pm

Bonsoir José Luis,

Comme beaucoup de français, je ne maitrise pas parfaitement l'anglais et le traducteur de Google m'aide beaucoup.
Aussi lorsque j'ai installé Meteotemplate, je me suis amusé à traduire le setup et le menu en français pour pouvoir m'y retrouver plus facilement.
Et aussi et surtout à sauvegarder au fur et à mesure!

- pour /template/install/setup.php en français:
http://www.lemimi.fr/download/mtotemplate/setup.zip

- pour /template/admin/menu/menuTabs.php en français:
https://www.lemimi.fr/download/mtotemplate/menuTabs.zip

J'ai aussi modifier le fichier /template/lang/fr.php
https://www.lemimi.fr/download/mtotemplate/fr.zip

J'ai mis ' à la place de \\'
72 modifications et cela corrige les problèmes d'affichage de l'apostrophe dans les différents menus.
On a ainsi par exemple:
Qualité de l'air au lieu de Qualité de l\'air

Si cela peut aider certains que l'anglais rebute...

Bonne soirée et au plaisir... Michel
Last edited by lemimi on Mon Feb 11, 2019 10:09 am, edited 1 time in total.

User avatar
Jolumarali
Professional
Professional
Posts: 252
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: graphCombined block

Post by Jolumarali » Sun Feb 03, 2019 6:15 pm

Merci Michel
Idem pour l'anglais , merci Google
Très bon travail.
Mise à jour effectué , en gardant bien les Zip , car si Jachym mets à jour Meteotemplate le setup et menuTbas vont être écrasé,
pour le traducteur, il mettra ta traduction lang. à jour,

et encore bravo

amitiès

José Luis
Image
Station météo amateur Lignerolles
OS : Windows 11 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

andyk1
Professional
Professional
Posts: 433
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: graphCombined block

Post by andyk1 » Tue Feb 05, 2019 10:56 am

lemimi wrote: Wed Jan 30, 2019 5:31 pm Hello,

If colored lines in graphCombinedblock still interest you, I just did this:
https://www.lemimi.fr/template/indexDesktop.php

Michel
Hello and thank you!

More than likely what I was looking for also. I have a light color (gray) background and that block came up blended into a light color also and barely readable.

Thanks for your effort.

Andy
Image

andyk1
Professional
Professional
Posts: 433
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: graphCombined block

Post by andyk1 » Tue Feb 05, 2019 1:36 pm

lemimi wrote: Wed Jan 30, 2019 5:31 pm Hello,

If colored lines in graphCombinedblock still interest you, I just did this:
https://www.lemimi.fr/template/indexDesktop.php

Michel
I tried you're modified blocks but as you can see at www.nicomaparkwx.com at the bottom center the background color is a light color and I need to change the graph and text to a darker shade. Not sure why my MT is doing that as all the other blocks work just right.

Anyway I need to get in there and find the text color and the graph lines and change this block to black.

Thanks again. You put me on the right track.

Andy
Image

User avatar
lemimi
Forecaster
Forecaster
Posts: 106
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: graphCombined block

Post by lemimi » Tue Feb 05, 2019 2:59 pm

I just put my theme in "LIGHT" like you.
On "/template/admin/createHomepage.php?type=desktop",
I added in the box "Highlighted blocks:" graphCombined
Image
See what this gives right now on:
https://www.lemimi.fr/template/indexDesktop.php
It's a little better. . .
Michel

andyk1
Professional
Professional
Posts: 433
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: graphCombined block

Post by andyk1 » Tue Feb 05, 2019 3:58 pm

I did as you suggested. I left it light the first time and added graphCombined to the highlighted Block but still could not see the graph. Dark of course worked but I do not prefer the dark theme. Silver is what I am looking for. I only need to change the graph text color and outlines. I know the color is in the Main setup php to control the color through out the blocks. I just haven't had time to dig through it to see how there controlled and why this one block refuses to cooperate... :roll:

Thanks anyway. I'll leave your suggestion up till you have a chance to look at it before I go digging through the main PHP files.

Andy
Image

User avatar
lemimi
Forecaster
Forecaster
Posts: 106
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: graphCombined block

Post by lemimi » Tue Feb 05, 2019 5:43 pm

Look here (bottom of page):
https://www.nicomaparkwx.com/wx/indexDesktop.php
I do not know how he did to change the fund but
it seems to me that it is close to what you are looking for.
Michel

andyk1
Professional
Professional
Posts: 433
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: graphCombined block

Post by andyk1 » Tue Feb 05, 2019 7:12 pm

lemimi wrote: Tue Feb 05, 2019 5:43 pm Look here (bottom of page):
https://www.nicomaparkwx.com/wx/indexDesktop.php
I do not know how he did to change the fund but
it seems to me that it is close to what you are looking for.
Michel
Hello Michel!!!

Yes you are correct but only in a dark theme. When I change it back to light as I've always had it is hard to read. Actually now it is a light blue but I think that is the setting you changed. The graphs are still hard to read is what I need to fix.

Andy
Image

WSKO_Karlchen
Observer
Observer
Posts: 13
Joined: Fri Apr 20, 2018 10:41 am
Location: Koblenz / Germany
Station model: Davis Pro 2 aktiv
Software: weewx 4.1.1
Contact:

Re: graphCombined block

Post by WSKO_Karlchen » Tue Feb 05, 2019 9:03 pm

Is there no solution to add other sensors to this block? Like I mentioned to add soil moisture and temp data?
Wetterservice Koblenz

andyk1
Professional
Professional
Posts: 433
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: graphCombined block

Post by andyk1 » Wed Feb 06, 2019 5:37 am

Good point. maybe a suggestion for the version 18. I don't have one but am sure a script could be written in by someone that has those sensor.
Image

Post Reply