Page 1 of 2
Block Current
Posted: Wed Feb 09, 2022 7:59 am
by Jolumarali
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

Re: Block Current
Posted: Wed Feb 09, 2022 9:18 am
by lemimi
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>
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
Re: Block Current
Posted: Wed Feb 09, 2022 9:25 am
by lemimi
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.
Re: Block Current
Posted: Wed Feb 09, 2022 11:54 am
by Jolumarali
Merci beaucoup
ta solution fonctionne parfaitement pour plugin
conditions actuelles
celle que je recherche c'est pour le BLOCk CURRENT
merci encore
à bientôt
José Luis
Re: Block Current
Posted: Wed Feb 09, 2022 5:00 pm
by lemimi
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

Re: Block Current
Posted: Wed Feb 09, 2022 5:09 pm
by Jolumarali
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
Re: Block Current
Posted: Wed Feb 09, 2022 6:58 pm
by davidefa
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 (23.26 KiB) Viewed 55310 times
Re: Block Current
Posted: Wed Feb 09, 2022 8:11 pm
by Jolumarali
perfect, and thank you again Davide
Re: Block Current
Posted: Fri Feb 11, 2022 6:48 am
by MeteoElMasnou
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
Re: Block Current
Posted: Fri Feb 11, 2022 2:18 pm
by meteoesine
Hi,
nice the weather icons, where can I found them?
thanks in advance
ciao

- ScreenShot00952.jpg (4.95 KiB) Viewed 55253 times
Re: Block Current
Posted: Tue Feb 15, 2022 1:37 pm
by Meteofabro
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?
Re: Block Current
Posted: Tue Feb 15, 2022 10:16 pm
by davidefa
ver 24.3
Resized detail blocks ( only when 5 blocks shown )
Re: Block Current
Posted: Wed Feb 16, 2022 11:38 am
by Meteofabro
It works perfectly ... Thanks.
Re: Block Current
Posted: Thu Feb 17, 2022 3:41 pm
by lemimi
Bonjour,
Quelqu’un connait-il le chemin du dossier de ces icônes.
Bien cachées car pas trouvées.

Bonne soirée... Michel
**********************
Does anyone know the folder path of these icons.
Well hidden because not found.
Good evening... Michel
Re: Block Current
Posted: Thu Feb 17, 2022 4:56 pm
by Jolumarali
Bonjour Michel
/admin/menu/menuIcons.php
ce sont des icon mticon
Re: Block Current
Posted: Thu Feb 17, 2022 6:38 pm
by lemimi
Merci, je ne connaissais pas.
Y'a pu qu'à étudier le schmilblick
Bonne soirée... Michel
Re: Block Current
Posted: Thu Feb 17, 2022 7:48 pm
by Jolumarali
Tu veux faire quoi ?
Les changer ?
La couleur, je sais que tu l'avais déjà fait
Re: Block Current
Posted: Thu Feb 17, 2022 9:46 pm
by davidefa
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>
Re: Block Current
Posted: Fri Feb 18, 2022 8:39 am
by lemimi
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’Europe
Tribunal 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
Re: Block Current
Posted: Fri Feb 18, 2022 9:10 am
by davidefa
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
Re: Block Current
Posted: Fri Feb 18, 2022 4:25 pm
by lemimi
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
Re: Block Current
Posted: Fri Feb 18, 2022 7:53 pm
by MeteoTenBoer
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?.
Re: Block Current
Posted: Sat Feb 19, 2022 6:59 am
by meteoesine
Hi,
enclosed in the attachment
Re: Block Current
Posted: Sat May 07, 2022 4:31 pm
by mchd17
Jolumarali wrote: ↑Wed Feb 09, 2022 11:54 am
celle que je recherche c'est pour le BLOCk CURRENT
Jolumarali, how did you change the trend arrow colors?
Re: Block Current
Posted: Sat May 07, 2022 4:54 pm
by meteoesine
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