No apologies for your English are necessary .. you are quite understandable
Sorry that I'd assumed the example site in the post above was a link to your site at
http://druss.alwaysdata.net/meteo/wxindex.phpThe conditions color word is set by:
1) The PHP ajax-dashboard.php Version 1.21 - 01-Oct-2011 uses
<span class="ajax" id="ajaxheatcolorword">
<?php langtrans($heatcolourword); ?></span>
to display the color word.
2) the PHP value for $heatcolourword comes from the MH-defs.php (for the Meteohub plugin) which has
list($feelslike,$heatcolourword) = MH_setFeelslike ($temperature,$windch,$heati,$uomtemp);
to set both the feelslike and heatcolorword based on the temperature, windchill, heatindex and units-for temp.
3) the MH-defs.php file has the following mappings for those items to your Meteohub tags data
$temperature = $WX['actual_th0_temp_c'];
$windch = $WX['actual_wind0_chill_c'];
$heati = $WX['actual_th0_heatindex_c'];
if(isset($WX['actual_system_temp_unit'])) { $uomtemp = $WX['actual_system_temp_unit']; }
4) your MHtags.php?sce=dump shows the following values
$WX['actual_th0_temp_c'] = '16.5';
$WX['actual_wind0_chill_c'] = '0.0';
$WX['actual_th0_heatindex_c'] = '16.5';
$WX['actual_system_temp_unit'] = 'c';
5) the MH_setFeelslike() function (which is in MH-defs.php) uses
#-------------------------------------------------------------------------------------
# MH support function - MH_setFeelslike
#-------------------------------------------------------------------------------------
function MH_setFeelslike ($temp,$windchill,$heatindex,$tempUOM) {
global $Debug;
// establish the feelslike temperature and return a word describing how it feels
$HeatWords = array(
'Unknown', 'Extreme Heat Danger', 'Heat Danger', 'Extreme Heat Caution', 'Extremely Hot', 'Uncomfortably Hot',
'Hot', 'Warm', 'Comfortable', 'Cool', 'Cold', 'Uncomfortably Cold', 'Very Cold', 'Extreme Cold' );
// first convert all temperatures to Centigrade if need be
$TC = $temp;
$WC = $windchill;
$HC = $heatindex;
if(strpos($TC,',') !== false) {
$TC = preg_replace('|,|','.',$temp);
$WC = preg_replace('|,|','.',$windchill);
$HC = preg_replace('|,|','.',$heatindex);
}
if (preg_match('|F|i',$tempUOM)) { // convert F to C if need be
$TC = sprintf("%01.1f",round(($TC-32.0) / 1.8,1));
$WC = sprintf("%01.1f",round(($WC-32.0) / 1.8,1));
$HC = sprintf("%01.1f",round(($HC-32.0) / 1.8,1));
}
// Feelslike
if ($TC <= 16.0 ) {
$feelslike = $WC; //use WindChill
} elseif ($TC >=27.0) {
$feelslike = $HC; //use HeatIndex
} else {
$feelslike = $TC; // use temperature
}
if (preg_match('|F|i',$tempUOM)) { // convert C back to F if need be
$feelslike = (1.8 * $feelslike) + 32.0;
}
$feelslike = round($feelslike,0);
// determine the 'heat color word' to use
$hcWord = $HeatWords[0];
$hcFound = false;
if ($TC > 32 and $HC > 29) {
if ($HC > 54 and ! $hcFound) { $hcWord = $HeatWords[1]; $hcFound = true;}
if ($HC > 45 and ! $hcFound) { $hcWord = $HeatWords[2]; $hcFound = true; }
if ($HC > 39 and ! $hcFound) { $hcWord = $HeatWords[4]; $hcFound = true; }
if ($HC > 29 and ! $hcFound) { $hcWord = $HeatWords[6]; $hcFound = true; }
} elseif ($WC < 16 ) {
if ($WC < -18 and ! $hcFound) { $hcWord = $HeatWords[13]; $hcFound = true; }
if ($WC < -9 and ! $hcFound) { $hcWord = $HeatWords[12]; $hcFound = true; }
if ($WC < -1 and ! $hcFound) { $hcWord = $HeatWords[11]; $hcFound = true; }
if ($WC < 8 and ! $hcFound) { $hcWord = $HeatWords[10]; $hcFound = true; }
if ($WC < 16 and ! $hcFound) { $hcWord = $HeatWords[9]; $hcFound = true; }
} elseif ($WC >= 16 and $TC <= 32) {
if ($TC <= 26 and ! $hcFound) { $hcWord = $HeatWords[8]; $hcFound = true; }
if ($TC <= 32 and ! $hcFound) { $hcWord = $HeatWords[7]; $hcFound = true; }
}
if(isset($_REQUEST['debug'])) {
echo "<!-- MH_setFeelslike input T,WC,HI,U='$temp,$windchill,$heatindex,$tempUOM' cnvt T,WC,HI='$TC,$WC,$HC' feelslike=$feelslike hcWord=$hcWord -->\n";
}
return(array($feelslike,$hcWord));
} // end of MH_setFeelslike
to generate both the feelslike and colorword.
6) since your station's windchill is '0.0', that seems to determine why the word 'cold' (froid in French) is displaying.
7) a similar calculation is done by the AJAX routine ajaxMHwx.js on the temperature, wind-chill, heatindex values from the Meteohub clientraw.txt file.
So... the reading is likely caused by Meteohub (4.9i b1061 - SheevaPlug) not calculating the wind-chill in actual_wind0_chill_c correctly.
My older Meteohub (4.9g b1046 - SheevaPlug) is not showing this issue, so I'd suggest you report the problem to Boris on the Meteohub forum as a bug.
Hope this helps...
Best regards,
Ken