From 123b0284d5af09b31a362d650c7d9798f0eeb3dc Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 25 May 2013 15:44:43 +0000 Subject: - fixed escaping minus sign (patch by $sergi0) - added gismeteo and msn ini files (patch by $sergi0) git-svn-id: http://svn.miranda-ng.org/main/trunk@4819 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/docs/weather/gismeteo.ini | 906 ++++++++++++++++++++++++++++++ plugins/Weather/docs/weather/msn.ini | 365 ++++++++++++ plugins/Weather/src/weather_data.cpp | 9 + 3 files changed, 1280 insertions(+) create mode 100644 plugins/Weather/docs/weather/gismeteo.ini create mode 100644 plugins/Weather/docs/weather/msn.ini (limited to 'plugins/Weather') diff --git a/plugins/Weather/docs/weather/gismeteo.ini b/plugins/Weather/docs/weather/gismeteo.ini new file mode 100644 index 0000000000..093ad1abe4 --- /dev/null +++ b/plugins/Weather/docs/weather/gismeteo.ini @@ -0,0 +1,906 @@ +[Weather 0.3.x Update Data 1.4] + +;********************************************************* +; +; Подробный прогноз на 3 дня для НОВОГО gismeteo.com(ua/ru). +; +; Поиска по названию города нет и не будет пока не изменится плагин погоды! +; Искать _только_ по ID города, который предварительно выясняем на сайте гисметео. +; +; Перед использованием желательно удалить старые контакты +; с погодой и найти нужные города по новой. Первый раз обновиться +; из меню (правый клик на контакте) через "Удалить данные и обновить" . +; +; Чтобы все было красиво и понятно видно в миранде идем в +; Параметры->Модули->Погода->Показывать и поле "Кратко" (остальные поля по вкусу) +; полностью заменяем на: + + +; Состояние погоды в %[CityName] на %u +; ---------------------------------------------------------------- +; Условия: %c +; Температура: %t +; Давление: %p +; Влажность: %m +; Ветер: %i %w +; Температура воды: %[TW] +; Восход: %r, Закат: %y, Продолжительность дня: %[Day Length], Фаза Луны: %[Moon Phase] +; +; Прогноз (Дата, Температура [Комфорт], Условия, Ветер, Давление, Влажность) +; ------------------------------------------------------------------------------------------------------- +; %[Forecast Day 1] +; %[Forecast Day 2] +; %[Forecast Day 3] +; %[Forecast Day 4] +; %[Forecast Day 5] +; %[Forecast Day 6] +; %[Forecast Day 7] +; %[Forecast Day 8] +; %[Forecast Day 9] +; %[Forecast Day 10] +; %[Forecast Day 11] +; %[Forecast Day 12] + + +; Решение проблем +; ~~~~~~~~~~~~~~~ +; Если ничего не работет попробуйте исправить в адресе http://www.gismeteo.xxx +; xxx - на "com" либо вашу страну, т.е. "ru", "ua" и тп., чтобы не происходило редиректа +; +;********************************************************* + +[Header] +Name=GisMeteo +Internal Name=gm +Description=Weather information from Gismeteo +Author=Eugene +Version=2012.05.03 +[/Header] + + +[Default] +Default URL=http://www.gismeteo.ua/city/daily/%s/ +Default Map= +Update URL=http://www.gismeteo.ua/city/daily/%s/ +[/Default] + + +;------хз, что делать, когда у них нет текущей погоды +;------TODO в общем... +;[nodata] +;Start=
+;End=
+;[/nodata] +;----------------------------------------------------- + +[CityName] +Start=Погода в +End=на +[/CityName] + +[Condition] +Start=
+End=
+[/Condition] + +[Temperature] +Start=
+End=< +Unit=C +[/Temperature] + +;[Visibility] +;Set Data=[Condition] +;[/Visibility] + +[Wind Direction] +Start=
+End= +Unit=m/s +[/Wind Speed] + + +[Pressure] +Start=
+End= +Unit=mm +[/Pressure] + +[Humidity] +Start=
+End= +Unit=% +[/Humidity] + +[Update] +Start= +End= +[/Update] + +;[Cloudy] +;Start=Облачность +;End= +;[/Cloudy] + +; DATE: T - time, D - day, M - month, W - weekday +[FD1DW] +Start=
+End= +Hidden=true + +[FD1DDM] +Start=
+End=
+Hidden=true + +;------------- +[Low] +Start=
+End= +Unit=C +[/Low] + +[High] +Start=.. +End= +Unit=C +[/High] +;------------- + +[FD2DW] +Start=
+End=
+Hidden=true + +[FD2DDM] +Start=
+End=
+Hidden=true + +[FD3DW] +Start=
+End=
+Hidden=true + +[FD3DDM] +Start=
+End=
+Hidden=true + + + +;---------------////////////////////////// +;------1--------////////////////////////// +;---------------////////////////////////// +;---------1-234-------------- + +[FD1DT] +Start= +End= + +[FD1D] +Set Data=[FD1DW] & " " & [FD1DDM] & " " & [FD1DT] + + +; CONDITION +[FD1C] +Start= +End= + +;temperature +[FD1T] +Start= +End= + +; PRESSURE +[FD1P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD1WD] +Start=
+End= +Hidden=true +[FD1WS] +Start=
+End= +Hidden=true +[FD1W] +Set Data=[FD1WD] & " " & [FD1WS] & "m/s" + +; Humidity +[FD1H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD1F] +Start= +End= +Hidden=true + +;================================================ + +;---------1-2-34-------------- + +[FD2DT] +Start= +End= +[FD2D] +Set Data=[FD1DW] & " " & [FD1DDM] & " " & [FD2DT] +; CONDITION +[FD2C] +Start= +End= +;temperature +[FD2T] +Start= +End= +; PRESSURE +[FD2P] +Start= +End= +; WIND: H - Hidden data D - direction, S - Speed +[FD2WD] +Start=
+End= +Hidden=true +[FD2WS] +Start=
+End= +Hidden=true +[FD2W] +Set Data=[FD2WD] & " " & [FD2WS] & "m/s" +; Humidity +[FD2H] +Start= +End= +Hidden=true +; Feel Like Temperature +[FD2F] +Start= +End= +Hidden=true + +;================================================ +;---------12-3-4-------------- + +[FD3DT] +Start= +End= +[FD3D] +Set Data=[FD1DW] & " " & [FD1DDM] & " " & [FD3DT] +; CONDITION +[FD3C] +Start= +End= +;temperature +[FD3T] +Start= +End= +; PRESSURE +[FD3P] +Start= +End= +; WIND: H - Hidden data D - direction, S - Speed +[FD3WD] +Start=
+End= +Hidden=true +[FD3WS] +Start=
+End= +Hidden=true +[FD3W] +Set Data=[FD3WD] & " " & [FD3WS] & "m/s" +; Humidity +[FD3H] +Start= +End= +Hidden=true +; Feel Like Temperature +[FD3F] +Start= +End= +Hidden=true + +;================================================ +;---------123-4-------------- + +[FD4DT] +Start= +End= + +[FD4D] +Set Data=[FD1DW] & " " & [FD1DDM] & " " & [FD4DT] + + +; CONDITION +[FD4C] +Start= +End= + +;temperature +[FD4T] +Start= +End= + +; PRESSURE +[FD4P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD4WD] +Start=
+End= +Hidden=true +[FD4WS] +Start=
+End= +Hidden=true +[FD4W] +Set Data=[FD4WD] & " " & [FD4WS] & "m/s" + +; Humidity +[FD4H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD4F] +Start= +End= +Hidden=true + +;================================================ +;====================1=========================== +;================================================ + + +;---------------////////////////////////// +;------2--------////////////////////////// +;---------------////////////////////////// +;---------1-234-------------- + +[FD5DT] +Start= +End= + +[FD5D] +Set Data=[FD2DW] & " " & [FD2DDM] & " " & [FD5DT] + + +; CONDITION +[FD5C] +Start= +End= + +;temperature +[FD5T] +Start= +End= + +; PRESSURE +[FD5P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD5WD] +Start=
+End= +Hidden=true +[FD5WS] +Start=
+End= +Hidden=true +[FD5W] +Set Data=[FD5WD] & " " & [FD5WS] & "m/s" + +; Humidity +[FD5H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD5F] +Start= +End= +Hidden=true + +;================================================ + +;---------1-2-34-------------- + +[FD6DT] +Start= +End= + +[FD6D] +Set Data=[FD2DW] & " " & [FD2DDM] & " " & [FD6DT] + + +; CONDITION +[FD6C] +Start= +End= + +;temperature +[FD6T] +Start= +End= + +; PRESSURE +[FD6P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD6WD] +Start=
+End= +Hidden=true +[FD6WS] +Start=
+End= +Hidden=true +[FD6W] +Set Data=[FD6WD] & " " & [FD6WS] & "m/s" + +; Humidity +[FD6H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD6F] +Start= +End= +Hidden=true + +;================================================ + +;---------12-3-4-------------- + +[FD7DT] +Start= +End= + +[FD7D] +Set Data=[FD2DW] & " " & [FD2DDM] & " " & [FD7DT] + + +; CONDITION +[FD7C] +Start= +End= + +;temperature +[FD7T] +Start= +End= + +; PRESSURE +[FD7P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD7WD] +Start=
+End= +Hidden=true +[FD7WS] +Start=
+End= +Hidden=true +[FD7W] +Set Data=[FD7WD] & " " & [FD7WS] & "m/s" + +; Humidity +[FD7H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD7F] +Start= +End= +Hidden=true + + +;================================================ +;---------123-4-------------- + +[FD8DT] +Start= +End= + +[FD8D] +Set Data=[FD2DW] & " " & [FD2DDM] & " " & [FD8DT] + + +; CONDITION +[FD8C] +Start= +End= + +;temperature +[FD8T] +Start= +End= + +; PRESSURE +[FD8P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD8WD] +Start=
+End= +Hidden=true +[FD8WS] +Start=
+End= +Hidden=true +[FD8W] +Set Data=[FD8WD] & " " & [FD8WS] & "m/s" + +; Humidity +[FD8H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD8F] +Start= +End= +Hidden=true + +;================================================ +;====================2=========================== +;================================================ + +;---------------////////////////////////// +;------3--------////////////////////////// +;---------------////////////////////////// +;---------1-234-------------- + +[FD9DT] +Start= +End= + +[FD9D] +Set Data=[FD3DW] & " " & [FD3DDM] & " " & [FD9DT] + + +; CONDITION +[FD9C] +Start= +End= + +;temperature +[FD9T] +Start= +End= + +; PRESSURE +[FD9P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD9WD] +Start=
+End= +Hidden=true +[FD9WS] +Start=
+End= +Hidden=true +[FD9W] +Set Data=[FD9WD] & " " & [FD9WS] & "m/s" + +; Humidity +[FD9H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD9F] +Start= +End= +Hidden=true + +;================================================ + +;---------1-2-34-------------- + +[FD10DT] +Start= +End= + +[FD10D] +Set Data=[FD3DW] & " " & [FD3DDM] & " " & [FD10DT] + + +; CONDITION +[FD10C] +Start= +End= + +;temperature +[FD10T] +Start= +End= + +; PRESSURE +[FD10P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD10WD] +Start=
+End= +Hidden=true +[FD10WS] +Start=
+End= +Hidden=true +[FD10W] +Set Data=[FD10WD] & " " & [FD10WS] & "m/s" + +; Humidity +[FD10H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD10F] +Start= +End= +Hidden=true + +;================================================ + +;---------12-3-4-------------- + +[FD11DT] +Start= +End= + +[FD11D] +Set Data=[FD3DW] & " " & [FD3DDM] & " " & [FD11DT] + + +; CONDITION +[FD11C] +Start= +End= + +;temperature +[FD11T] +Start= +End= + +; PRESSURE +[FD11P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD11WD] +Start=
+End= +Hidden=true +[FD11WS] +Start=
+End= +Hidden=true +[FD11W] +Set Data=[FD11WD] & " " & [FD11WS] & "m/s" + +; Humidity +[FD11H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD11F] +Start= +End= +Hidden=true + +;================================================ +;---------123-4-------------- + +[FD12DT] +Start= +End= + +[FD12D] +Set Data=[FD3DW] & " " & [FD3DDM] & " " & [FD12DT] + + +; CONDITION +[FD12C] +Start= +End= + +;temperature +[FD12T] +Start= +End= + +; PRESSURE +[FD12P] +Start= +End= + +; WIND: H - Hidden data D - direction, S - Speed +[FD12WD] +Start=
+End= +Hidden=true +[FD12WS] +Start=
+End= +Hidden=true +[FD12W] +Set Data=[FD12WD] & " " & [FD12WS] & "m/s" + +; Humidity +[FD12H] +Start= +End= +Hidden=true + +; Feel Like Temperature +[FD12F] +Start= +End= +Hidden=true + +;================================================ +;====================3=========================== +;================================================ + + + +[Forecast Day 1] +Set Data=[FD1D] & " : " & [FD1T] & "C [" & [FD1F] & "C]" & ", " & [FD1C] & ", " & [FD1W] & ", " & [FD1P] & " mm, " & [FD1H] & "%" +[Forecast Day 2] +Set Data=[FD2D] & " : " & [FD2T] & "C [" & [FD2F] & "C]" & ", " & [FD2C] & ", " & [FD2W] & ", " & [FD2P] & " mm, " & [FD2H] & "%" +[Forecast Day 3] +Set Data=[FD3D] & " : " & [FD3T] & "C [" & [FD3F] & "C]" & ", " & [FD3C] & ", " & [FD3W] & ", " & [FD3P] & " mm, " & [FD3H] & "%" +[Forecast Day 4] +Set Data=[FD4D] & " : " & [FD4T] & "C [" & [FD4F] & "C]" & ", " & [FD4C] & ", " & [FD4W] & ", " & [FD4P] & " mm, " & [FD4H] & "%" + +[Forecast Day 5] +Set Data=[FD5D] & " : " & [FD5T] & "C [" & [FD5F] & "C]" & ", " & [FD5C] & ", " & [FD5W] & ", " & [FD5P] & " mm, " & [FD5H] & "%" +[Forecast Day 6] +Set Data=[FD6D] & " : " & [FD6T] & "C [" & [FD6F] & "C]" & ", " & [FD6C] & ", " & [FD6W] & ", " & [FD6P] & " mm, " & [FD6H] & "%" +[Forecast Day 7] +Set Data=[FD7D] & " : " & [FD7T] & "C [" & [FD7F] & "C]" & ", " & [FD7C] & ", " & [FD7W] & ", " & [FD7P] & " mm, " & [FD7H] & "%" +[Forecast Day 8] +Set Data=[FD8D] & " : " & [FD8T] & "C [" & [FD8F] & "C]" & ", " & [FD8C] & ", " & [FD8W] & ", " & [FD8P] & " mm, " & [FD8H] & "%" + +[Forecast Day 9] +Set Data=[FD9D] & " : " & [FD9T] & "C [" & [FD9F] & "C]" & ", " & [FD9C] & ", " & [FD9W] & ", " & [FD9P] & " mm, " & [FD9H] & "%" +[Forecast Day 10] +Set Data=[FD10D] & " : " & [FD10T] & "C [" & [FD10F] & "C]" & ", " & [FD10C] & ", " & [FD10W] & ", " & [FD10P] & " mm, " & [FD10H] & "%" +[Forecast Day 11] +Set Data=[FD11D] & " : " & [FD11T] & "C [" & [FD11F] & "C]" & ", " & [FD11C] & ", " & [FD11W] & ", " & [FD11P] & " mm, " & [FD11H] & "%" +[Forecast Day 12] +Set Data=[FD12D] & " : " & [FD12T] & "C [" & [FD12F] & "C]" & ", " & [FD12C] & ", " & [FD12W] & ", " & [FD12P] & " mm, " & [FD12H] & "%" + + + +;-------------------------------------------- +[TW] +Start=Температура воды: +End=° +Unit=C +[/TW] + + +[Feel] +Start=

+End=° +Unit=C +[/Feel] + +[Sunrise] +Start=Восход +End= +[/Sunrise] + +[Sunset] +Start=Заход +End= +[/Sunset] + +[Day Length] +Start=Долгота +End= +[/Day Length] + +[MP1] +Start= +End= +Hidden=true + +[MP2] +Start= +End= +Hidden=true + +[Moon Phase] +Set Data=[MP1] & ", " & [MP2] +[/Moon Phase] + +;[Update] +;Start= +;End= +;[/Update] + + +;[Feel] +;Set Data=[FD1FH] + + +[Icons] +Sunny=ясно +Sunny=штиль +Partly Cloudy=малооблачно +Cloudy=облачно +Cloudy=пасмурно +Rain=небольшой дождь +Rain Shower=дождь +Rain Shower=ливень +Snow=снег +Snow=небольшой снег +Snow Shower=слабый снег хлопьями +Snow Shower=снегопад +Snow Shower=шквал +Ligntning=гроза +Fog=туман + + +[ID Search] +Available=TRUE +Search URL=http://www.gismeteo.ua/city/daily/%s/ +Not Found Str=Not Found +Name Start=по г. +Name End=."> +[/ID Search] + +[Name Search] +Single Result=false +Multiple Result=true +Search URL=http://www.gismeteo.ua/city/?gis=%s +Not Found Str=Not found + +Mult First=ID +Mult ID Start=

  • +Mult Name Start=/"> +Mult Name End= \ No newline at end of file diff --git a/plugins/Weather/docs/weather/msn.ini b/plugins/Weather/docs/weather/msn.ini new file mode 100644 index 0000000000..62282797b6 --- /dev/null +++ b/plugins/Weather/docs/weather/msn.ini @@ -0,0 +1,365 @@ +[Weather 0.3.x Update Data 1.3] +[Header] +Name=MSN Weather +Internal Name=msnw +Description=Get Weather from weather.msn.com (fetching ajax request) +Author=HostedDinner +Version=2011-05-25 + +[Default] +Default URL=http://local.msn.com/worldweather.aspx?eid=%s +Default Map=http://local.msn.com/worldweathermap.aspx?eid=%s +Update URL=http://local.msn.com/ajax/worldweather.aspx?weadegreetype=C&eid=%s +;Not needed because 5 day forecast is included in main url +;Update URL2=http://local.msn.com/ajax/weather3day.aspx?weadegreetype=C&eid=%s + + + +[Temperature] +Start= +End=< +Unit=C +Url=1 + +[Condition] +Start="> +End=< +Unit=Cond +Url=1 + +[Feel] +Start=Feels like: +End=< +Unit=C +Url=1 + +[High] +Start=High +End=< +Unit=C +Url=1 + +[Low] +Start=Low +End=< +Unit=C +Url=1 + +[Pressure] +Start=
    +End=< +Unit=mb +Url=1 + +[Wind] +Start=
    +End=< +Url=1 +Hidden=true + +[Wind Speed] +Break Data= km/hr +Source=Wind +End=Wind Direction +Unit=km/h + +;[Wind Direction] +;See above (Wind Speed End) + +[Dewpoint] +Start=
    +End=< +Unit=C +Url=1 + +[Sunrise] +Start=
    +End=< +Url=1 + +[HumidityTEMP] +Start=
    +End=< +Unit=% +Url=1 +Hidden=true + +[Humidity] +Break Data=% +Source=HumidityTEMP +End= +Unit=% + +[Sunset] +Start=
    +End=< +Url=1 + +[Visibility] +Start=
    +End=< +Unit=km +Url=1 + +[UVI] +Start=
    +End= +Url=1 + +[UV] +Start= +End=< +Url=1 + +[UV Index] +Set Data=[UVI] & " " & [UV] + +[PrecipHour] +Start=
    +End=< +Url=1 + +[Precip24] +Start=
    +End=< +Url=1 + +[Update] +Start=(as of +End=) +Url=1 + +[Forecast Day 1 Day] +Start=

    +End=< +Url=1 +Hidden=true + +[Forecast Day 1 Date] +Start=> +End=< +Url=1 +Hidden=true + +[Forecast Day 2 Day] +Start=

    +End=< +Url=1 +Hidden=true + +[Forecast Day 2 Date] +Start=> +End=< +Url=1 +Hidden=true + +[Forecast Day 3 Day] +Start=

    +End=< +Url=1 +Hidden=true + +[Forecast Day 3 Date] +Start=> +End=< +Url=1 +Hidden=true + +[Forecast Day 4 Day] +Start=

    +End=< +Url=1 +Hidden=true + +[Forecast Day 4 Date] +Start=> +End=< +Url=1 +Hidden=true + +[Forecast Day 5 Day] +Start=

    +End=< +Url=1 +Hidden=true + +[Forecast Day 5 Date] +Start=> +End=< +Url=1 +Hidden=true + +[Forecast Day 1 Condition] +Start=

    +End=< +Unit=Cond +Url=1 +Hidden=true + +[Forecast Day 2 Condition] +Start=

    +End=< +Unit=Cond +Url=1 +Hidden=true + +[Forecast Day 3 Condition] +Start=

    +End=< +Unit=Cond +Url=1 +Hidden=true + +[Forecast Day 4 Condition] +Start=

    +End=< +Unit=Cond +Url=1 +Hidden=true + +[Forecast Day 5 Condition] +Start=

    +End=< +Unit=Cond +Url=1 +Hidden=true + +[Forecast Day 1 High] +Start=

    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 1 Low] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 2 High] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 2 Low] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 3 High] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 3 Low] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 4 High] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 4 Low] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 5 High] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 5 Low] +Start=
    +End=< +Unit=C +Url=1 +Hidden=true + +[Forecast Day 1] +Set Data=[Forecast Day 1 Day] & ", " & [Forecast Day 1 Date] & ": " & [Forecast Day 1 Condition] & " (" & [Forecast Day 1 Low] & "/" & [Forecast Day 1 High] & ")" + +[Forecast Day 2] +Set Data=[Forecast Day 2 Day] & ", " & [Forecast Day 2 Date] & ": " & [Forecast Day 2 Condition] & " (" & [Forecast Day 2 Low] & "/" & [Forecast Day 2 High] & ")" + +[Forecast Day 3] +Set Data=[Forecast Day 3 Day] & ", " & [Forecast Day 3 Date] & ": " & [Forecast Day 3 Condition] & " (" & [Forecast Day 3 Low] & "/" & [Forecast Day 3 High] & ")" + +[Forecast Day 4] +Set Data=[Forecast Day 4 Day] & ", " & [Forecast Day 4 Date] & ": " & [Forecast Day 4 Condition] & " (" & [Forecast Day 4 Low] & "/" & [Forecast Day 4 High] & ")" + +[Forecast Day 5] +Set Data=[Forecast Day 5 Day] & ", " & [Forecast Day 5 Date] & ": " & [Forecast Day 5 Condition] & " (" & [Forecast Day 5 Low] & "/" & [Forecast Day 5 High] & ")" + + +[ID Search] +Available=true +Search URL=http://local.msn.com/worldweather.aspx?eid=%s +Not Found Str=Not Found +Name Start=All times shown are local to +Name End=. (as of + + + +[Name Search] +Single Result=false +Multiple Result=true +Search URL=http://local.msn.com/ajax/changelocation.aspx?culture=en-us&weasearchstr=%s +Not Found Str= + +Mult First=ID +Mult ID Start=entityId=" +Mult ID End=" +Mult Name Start=displayName=" +Mult Name End=" + + +[Icons] +;Sunny=Sunny +Sunny=Clear +Sunny=Fair +Sunny=Sunny (Clear) + +;Partly Cloudy=Partly Cloudy +Partly Cloudy=Mostly Cloudy + +;Cloudy=Cloudy + +;Rain=Rain +Rain=Showers + + +;Rain Shower=Rain Shower +Rain Shower=Sprinkles +;To fix this one: +Rain Shower=Sleet + +;Snow=Snow + +;Snow Shower=Snow Shower + +;Ligntning=Ligntning +Ligntning=T-storms +Ligntning=Scattered Thunderstorms +Ligntning=Isolated Thunderstorms + +;Fog=Fog + diff --git a/plugins/Weather/src/weather_data.cpp b/plugins/Weather/src/weather_data.cpp index bcf0e22139..935cf33dfd 100644 --- a/plugins/Weather/src/weather_data.cpp +++ b/plugins/Weather/src/weather_data.cpp @@ -309,7 +309,16 @@ void GetDataValue(WIDATAITEM *UpdateData, TCHAR *Data, TCHAR** szData) else if (szInfo[startloc] == '&' && (szInfo[startloc+1] == ';' || szInfo[startloc+2] == ';' || szInfo[startloc+3] == ';' || szInfo[startloc+4] == ';' || szInfo[startloc+5] == ';' || szInfo[startloc+6] == ';')) + { + // ...but do NOT strip − + if ((endloc - startloc) > 7 &&_tcsncmp(szInfo + startloc, _T("−"), 7) == 0) + { + Data[respos++] = '-'; + startloc += 7; + continue; + } symb = TRUE; + } else if (szInfo[startloc] == '>') tag = FALSE; else if (szInfo[startloc] == ';') symb = FALSE; else { -- cgit v1.2.3