Block Current

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

Block Current

Post by Jolumarali » Wed Feb 09, 2022 7:59 am

Hello
Would a meteotemplate user have an idea to change the colors of the data display (see image) on the Block current
thank you
José Luis

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

https://meteo-lignerolles.fr

José Luis

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

Re: Block Current

Post by lemimi » Wed Feb 09, 2022 9:18 am

Bonjour,

J'ai fais cela dans le fichier "/pages/station/liveData.php".
J'ai ajouté <div style='color: red'> . . .</div>
Tu peux l'insérer un peu n'importe où, le tout est de trouver ce qui affiche les données que tu veux colorer.

<td class="current">
<div style='color: red'>
<span class="mticon-temp unitsImg tooltip" title="<?php echo lang("temperature",'c')?>"></span>
<br>
<div class="value"><?php echo number_format($temperature,1)?></div></div>
</td>

Image

I did this in the "/pages/station/liveData.php" file.
I added <div style='color:red'> . . .</div>
You can insert it just about anywhere, the trick is to find what displays the data you want to color.

Au plaisir...Lemimi

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

Re: Block Current

Post by lemimi » Wed Feb 09, 2022 9:25 am

Si tu décales <div style='color: red'> et fais:
<div style='color: red'>
<div class="value"><?php echo number_format($temperature,1)?></div></div>

Tu auras que la température en couleur.
http://template.lemimi.fr/pages/station/liveData.php
Télécharger le fichier modifié ici: http://www.template.lemimi.fr/chargements/liveData.zip
***
If you shift <div style='color:red'> and do:
<div style='color:red'>
<div class="value"><?php echo number_format($temperature,1)?></div></div>

You will only have the color temperature.

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

Re: Block Current

Post by Jolumarali » Wed Feb 09, 2022 11:54 am

Merci beaucoup
ta solution fonctionne parfaitement pour plugin conditions actuelles

celle que je recherche c'est pour le BLOCk CURRENT

Image

merci encore

à bientôt

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

https://meteo-lignerolles.fr

José Luis

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

Re: Block Current

Post by lemimi » Wed Feb 09, 2022 5:00 pm

J'arrive à isoler la donnée, la supprimer, mais je n'arrive pas à la colorer...sniff ! :(

Voici ce que je suis arrivé à faire: http://www.template.lemimi.fr/indexDesktop.php
Télécharger le fichier modifié ici: http://www.template.lemimi.fr/chargemen ... tBlock.zip

Il ne reste plus qu'à espérer trouver quelqu'un plus doué que moi :-)
Last edited by lemimi on Wed Feb 09, 2022 5:43 pm, edited 1 time in total.

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

Re: Block Current

Post by Jolumarali » Wed Feb 09, 2022 5:09 pm

Merci
dans updater.php
J'ai essayé comme toi pas mal de combinaisons, mais aucun résultat.
Augmente un peu la hauteur des données pour qu'elles ressortent. style="font-size:1.5em"
Peut-être Davide ?

Bonne soirée

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

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Block Current

Post by davidefa » Wed Feb 09, 2022 6:58 pm

I've added an option ( it is the sixth ) to define sensor values colour ( time, icons, unit of measure and trends unchanged ). Don't know if this is the effect you are referring.

current1.png
current1.png (23.26 KiB) Viewed 4610 times
Attachments
current_24.2.zip
(355.41 KiB) Downloaded 78 times
Image

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

Re: Block Current

Post by Jolumarali » Wed Feb 09, 2022 8:11 pm

perfect, and thank you again Davide
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

User avatar
MeteoElMasnou
Observer
Observer
Posts: 26
Joined: Sat Feb 05, 2022 1:56 pm
Location: El Masnou / Catalunya
Station model: Davis Vantage Vue
Software: Weewx
Contact:

Re: Block Current

Post by MeteoElMasnou » Fri Feb 11, 2022 6:48 am

davidefa wrote: Wed Feb 09, 2022 6:58 pm I've added an option ( it is the sixth ) to define sensor values colour ( time, icons, unit of measure and trends unchanged ). Don't know if this is the effect you are referring.


current1.png
This is what I was looking for a long time.
Thank you very much for the time invested Davidefa.

Health

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

Re: Block Current

Post by meteoesine » Fri Feb 11, 2022 2:18 pm

Hi,
nice the weather icons, where can I found them?
thanks in advance
ciao
ScreenShot00952.jpg
ScreenShot00952.jpg (4.95 KiB) Viewed 4553 times
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

User avatar
Meteofabro
Observer
Observer
Posts: 35
Joined: Wed Aug 23, 2017 5:20 pm
Location: Fabro
Station model: Davis Vantage Vue
Software: Meteobridge RED PRO
Contact:

Re: Block Current

Post by Meteofabro » Tue Feb 15, 2022 1:37 pm

Hi Davideta.

I upgraded to version 24.2 of the Current Conditions block.
By extending the block, the wind speed data is superimposed on the pressure data.
Is it possible to fix the bug?
Attachments
2022-02-15 14_30_52-MeteoFabro.png
2022-02-15 14_30_52-MeteoFabro.png (84.42 KiB) Viewed 4490 times
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Block Current

Post by davidefa » Tue Feb 15, 2022 10:16 pm

ver 24.3

Resized detail blocks ( only when 5 blocks shown )
Attachments
current_24.3.zip
(355.44 KiB) Downloaded 100 times
Image

User avatar
Meteofabro
Observer
Observer
Posts: 35
Joined: Wed Aug 23, 2017 5:20 pm
Location: Fabro
Station model: Davis Vantage Vue
Software: Meteobridge RED PRO
Contact:

Re: Block Current

Post by Meteofabro » Wed Feb 16, 2022 11:38 am

It works perfectly ... Thanks.
Image

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

Re: Block Current

Post by lemimi » Thu Feb 17, 2022 3:41 pm

Bonjour,

Quelqu’un connait-il le chemin du dossier de ces icônes.
Bien cachées car pas trouvées.
Image
Bonne soirée... Michel
**********************
Does anyone know the folder path of these icons.
Well hidden because not found.

Good evening... Michel

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

Re: Block Current

Post by Jolumarali » Thu Feb 17, 2022 4:56 pm

Bonjour Michel
/admin/menu/menuIcons.php

ce sont des icon mticon
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

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

Re: Block Current

Post by lemimi » Thu Feb 17, 2022 6:38 pm

Merci, je ne connaissais pas.
Y'a pu qu'à étudier le schmilblick :-)

Bonne soirée... Michel

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

Re: Block Current

Post by Jolumarali » Thu Feb 17, 2022 7:48 pm

Tu veux faire quoi ?
Les changer ?
La couleur, je sais que tu l'avais déjà fait
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Block Current

Post by davidefa » Thu Feb 17, 2022 9:46 pm

The available fontastic mticons icons are visible in: css/font/icons-reference.html
If you want to use them in meteotemplate set an element:

Code: Select all

<span class="mticon-temp" ></span>
<span class="mticon-station" style="font-size:1.8em"></span>
<span class="mticon-areachart" style="font-size:1.8em;color:white"></span>

The available font awesome fa icons are visible in: css/fontAwesome/Font Awesome Icons.html
If you want to use them in meteotemplate set an element:

Code: Select all

<span class="fa fa-line-chart" ></span>
<span class="fa fa-check-square" style="font-size:1.8em"></span>
<span class="fa fa-wifi" style="font-size:1.8em;color:white"></span>
Image

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

Re: Block Current

Post by lemimi » Fri Feb 18, 2022 8:39 am

Bonjour,

Ce que je voudrais faire, si c’est possible, c’est avoir ces icônes hébergées directement sur mon serveur.
Cela ne prend pas beaucoup de place et évite de devoir les importer de l’extérieur.
Je peux ainsi les modifier facilement, ou les changer à volonté si elles ne me plaisent pas.

Il en va de même pour les fontes, installer que celles qui sont nécessaires.

D’ailleurs, depuis le début de cette année, cela bouge du côté de l’EuropeTribunal allemand condamne Google-Font

La CNIL, en France, n’est pas en reste: Mise en demeure d’un gestionnaire de site web

Un peu de lecture, en français, https://degooglisons-internet.org/fr/

Bonne journée à tous... Michel

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Block Current

Post by davidefa » Fri Feb 18, 2022 9:10 am

These icons are already on your server:
'mticon' css/font/fonts
'fa' /css/fontAwesome/fonts

I have already posted how to modify the mticons in this thread: viewtopic.php?f=52&t=2013
Image

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

Re: Block Current

Post by lemimi » Fri Feb 18, 2022 4:25 pm

Bonjour Davide et José,

Je crois plus sage de ne pas me lancer là-dedans.
Je pense que c'est encore au-dessus de mes compétences du moment.

En tout cas, un grand merci à vous deux pour votre aide et conseils... Michel

*****************************************************************************
Hello Davide and Jose,

I think it wiser not to get into it.
I think it's still beyond my skills at the moment.

Anyway, many thanks to both of you for your help and advice... Michel

MeteoTenBoer
Newbie
Newbie
Posts: 1
Joined: Sun Apr 04, 2021 11:49 am
Station model: ws-5500
Software: weather underground

Re: Block Current

Post by MeteoTenBoer » Fri Feb 18, 2022 7:53 pm

meteoesine wrote: Fri Feb 11, 2022 2:18 pm Hi,
nice the weather icons, where can I found them?
thanks in advance
ciao
ScreenShot00952.jpg
Hi I came across this post and was also wondering how do I get this done?.

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

Re: Block Current

Post by meteoesine » Sat Feb 19, 2022 6:59 am

Hi,
enclosed in the attachment
Attachments
currentBlock Icons.zip
(68.47 KiB) Downloaded 74 times
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Block Current

Post by mchd17 » Sat May 07, 2022 4:31 pm

Jolumarali wrote: Wed Feb 09, 2022 11:54 am
celle que je recherche c'est pour le BLOCk CURRENT

Image
Jolumarali, how did you change the trend arrow colors?
Image

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

Re: Block Current

Post by meteoesine » Sat May 07, 2022 4:54 pm

on updater.php in current block folder
around line 630 for any parameter (T,H,P,.....) add style='color:xxxx; as in the enclosed pictures
enjoy
Attachments
ScreenShot01030.jpg
ScreenShot01030.jpg (101.58 KiB) Viewed 3742 times
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

Post Reply