Permalink
Browse files

added: Current.WindSpeed weather info-label

only holds the speed and unit, e.g. '3 km/h'
  • Loading branch information...
1 parent f0e75fa commit 3e6c1bb95bafc931dd8310194cc9370934ba27f5 spiff committed Nov 15, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 xbmc/utils/Weather.cpp
View
3 xbmc/utils/Weather.cpp
@@ -304,6 +304,9 @@ void CWeatherJob::SetFromProperties()
m_info.currentWind.Format(g_localizeStrings.Get(434).c_str(),
direction, speed, g_langInfo.GetSpeedUnitString().c_str());
}
+ CStdString windspeed;
+ windspeed.Format("%i %s",speed,g_langInfo.GetSpeedUnitString().c_str());
+ window->SetProperty("Current.WindSpeed",windspeed);
FormatTemperature(m_info.currentDewPoint,
strtol(window->GetProperty("Current.DewPoint").asString().c_str(),0,10));
if (window->GetProperty("Current.Humidity").asString().empty())

0 comments on commit 3e6c1bb

Please sign in to comment.