Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Русский
    3. ioBroker
    4. Скрипты
    5. ioBroker скрипты
    6. Скрипт парсинга Яндекс.Погода

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Скрипт парсинга Яндекс.Погода

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      algar last edited by

      Для тех кому интересен прогноз погоды выкладываю парсер погоды Яндеска. Яндекс.Погода дает текущую погоду и прогноз на текущие сутки (утро, день, вечер, ночь). Также в прогнозе есть время восхода и заката солнца для ваших координат.

      Объект weather.0 создавал в админке руками. Чтобы скрипт заработал этот объект нужно импортировать из JSON:

      ! ````
      {
      "weather.0": {
      "_id": "weather.0",
      "type": "channel",
      "common": {
      "name": "weather.0",
      "role": "info",
      "desc": "Погода Яндекса",
      "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAABFFBMVEUAfblqxfD///8Aba3/zAcAcbH07E5hu+io2+4AeLf17N8Ae7gAdLUAdrb/zQD/zwDk7/YAaavb6fN2yfCCze8ehr4yisAkgrsAbLF+rtKu3u660uXs9PnP4e6ox9+JtdZRl8Zvpc1JkMLE2+sAZKme1+4AXqYAd8D17Oedu9f07ERFn9KT0+/17MBdnspChbo2fLX81CH53TJ6ochUr96GxOHlz27jwzbW0IOZpXhbqNI3lcqcy9UwgazyxQDN1Z9ztdhikJmgqHJwlJL07Gr07IX17MvU0I3Gt1b07Hmu2dnVvUm2sGGNoIGwrWhXjZ9JiaV/m4jK4ai83sfH1bDnzVW318v07J3U5JLqxyPD4bTm6KkUPxDNAAAIKklEQVRogbWb+0PaSBDHgzGVdQkQAkQTCK+EKFAfFdurHNa2tmerXl/X9nr3//8ft3lBso9sNnDfX1S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Ajy3mwxAwpYMLD7GUjKyzjMc/cEobTb0oGGikwYwHXoA6zoXA+p6c5MYGsx7xQXVOXqPQ7LBIYeVxFwMTdxYVSIy0LpxOewslzdVWT5DZj3FVTWlP53uFNZ8vYNrLfg7XCTD54BrImoZ/UEC0DzvHOySY7MUAxamM73K6QwOTzQnbJmsNKpjSjrFd8jjZtchrQNki17nYYYEpLTdwa9zkABNgSpPR9mzOajKitVVtiexgDV05Gsm2Qh7jLWx5Wue2QHaINtxczYIbkxMViw2mtUduSB5T2o5zNoRuRHZonb95W2CLkzWZeoAid9NvUbJzKtD0u0Nrcy5GHl8wAAKN3QXImsbsZhdpZRcmO6fsowNCzftiZI2SvfnA5HEFEfI4o3OfByYPaOQmj884p5BEj6TkImvjM+Zpgdxg/xBOsi2NT9acIRdb5NhRNlkbyxe5jnrlP2glxWw2WXO0UzvnIS+Ro2WD6GgZlaw5jjy0c52xEgT7Cg/T+VuMBBEhHUcZHo+EjvKJgX35xwcPL86iTb5ydnFxbIsxA/0Hh073COmgIq4AAAAASUVORK5CYII="
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526589652342,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast": {
      "_id": "weather.0.forecast",
      "type": "channel",
      "common": {
      "name": "forecast",
      "role": "",
      "desc": "Погода",
      "icon": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCA2OCAyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+WWFuZGV4X3J1PC90aXRsZT48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik05LjM1MiAxNC4zMTRWMjNoM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TguNDY0IDMuOTYyLTcuNTEzaC0yLjUwNGwtMy44MzYgNy4zODZWNy4wMjJoLTIuNDczVjIzaDIuNDczdi03Ljk1N3pNNjQuNyAyMy4yMjJjMS40NTggMCAyLjQ3Mi0uNDc2IDMuMzI4LTEuMjA1bC0uNTctMS44MzhjLS41Ny41MDYtMS40OS45OC0yLjY5NS45OC0xLjk5NyAwLTIuOTQ4LTIuMjgtMi45NDgtNi4yNzUgMC00LjAyNiAxLjI2OC02LjAyMyAzLjA0My02LjAyMyAxLjAxNSAwIDEuOTY2LjU0IDIuNjMgMS4xMWwuMzUtMi4zNDdjLS42OTctLjQ0My0xLjUyMi0uODI0LTIuOTQ4LS44MjQtMy43NCAwLTUuNjc0IDMuMjAzLTUuNjc0IDguMjEyIDAgNS40NTIgMi4wNiA4LjIxIDUuNDg0IDguMjF6IiBmaWxsPSIjMDAwIi8+PC9nPjwvc3ZnPg=="
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594218604,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.current": {
      "_id": "weather.0.forecast.current",
      "type": "channel",
      "common": {
      "name": "current",
      "role": "",
      "desc": "текущаяпогода",
      "icon": ""
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594430283,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.current.temperature": {
      "_id": "weather.0.forecast.current.temperature",
      "type": "state",
      "common": {
      "name": "temperature",
      "role": "value.temperature",
      "type": "number",
      "desc": "Текущая температура",
      "read": true,
      "write": true,
      "def": false,
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594477625,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.current.feels_like": {
      "from": "system.adapter.admin.0",
      "ts": 1526594550643,
      "common": {
      "name": "feels_like",
      "role": "",
      "type": "number",
      "desc": "Ощущаемая температура(°C)",
      "read": true,
      "write": true,
      "def": false,
      "unit": "°C"
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.current.feels_like",
      "type": "state"
      },
      "weather.0.forecast.current.icon": {
      "_id": "weather.0.forecast.current.icon",
      "type": "state",
      "common": {
      "name": "icon",
      "role": "",
      "type": "string",
      "desc": "иконка погоды",
      "read": true,
      "write": true,
      "def": false
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594615269,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.current.condition": {
      "_id": "weather.0.forecast.current.condition",
      "type": "state",
      "common": {
      "name": "condition",
      "role": "",
      "type": "string",
      "desc": "Код расшифровки погодного описания",
      "read": true,
      "write": true,
      "def": false
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594669470,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.current.wind_speed": {
      "_id": "weather.0.forecast.current.wind_speed",
      "type": "state",
      "common": {
      "name": "wind_speed",
      "role": "",
      "type": "number",
      "desc": "Скорость ветра(вм/с)",
      "read": true,
      "write": true,
      "def": false
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594722697,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.current.wind_gust": {
      "_id": "weather.0.forecast.current.wind_gust",
      "type": "state",
      "common": {
      "name": "wind_gust",
      "role": "",
      "type": "number",
      "desc": "Скорость порывов ветра(вм/с)",
      "read": true,
      "write": true,
      "def": false
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594754729,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.current.pressure_mm": {
      "_id": "weather.0.forecast.current.pressure_mm",
      "type": "state",
      "common": {
      "name": "pressure_mm",
      "role": "value.pressure",
      "type": "number",
      "desc": "Давление(мм.рт.ст.).",
      "read": true,
      "write": true,
      "def": false,
      "unit": "mmHg"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594816285,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.current.humidity": {
      "_id": "weather.0.forecast.current.humidity",
      "type": "state",
      "common": {
      "name": "humidity",
      "role": "value.humidity",
      "type": "number",
      "desc": "Влажность воздуха(%)",
      "read": true,
      "write": true,
      "def": false,
      "unit": "%"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594860927,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.current.obs_time": {
      "_id": "weather.0.forecast.current.obs_time",
      "type": "state",
      "common": {
      "name": "obs_time",
      "role": "",
      "type": "number",
      "desc": "Время замера погодных данных в формате Unixtime",
      "read": true,
      "write": true,
      "def": false
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526594913981,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.current.obs_time_hum": {
      "_id": "weather.0.forecast.current.obs_time_hum",
      "type": "state",
      "common": {
      "name": "obs_time_hum",
      "role": "",
      "type": "string",
      "desc": "время обновления прогноза",
      "read": true,
      "write": true,
      "def": false
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526595987250,
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      }
      },
      "weather.0.forecast.date": {
      "from": "system.adapter.admin.0",
      "ts": 1526626531314,
      "common": {
      "name": "date",
      "role": "",
      "type": "string",
      "desc": "Дата прогноза",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.date",
      "type": "state"
      },
      "weather.0.forecast.date_ts": {
      "from": "system.adapter.admin.0",
      "ts": 1526626659183,
      "common": {
      "name": "date_ts",
      "role": "",
      "type": "number",
      "desc": "Дата прогноза в формат еUnixtime",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.date_ts",
      "type": "state"
      },
      "weather.0.forecast.week": {
      "_id": "weather.0.forecast.week",
      "type": "state",
      "common": {
      "name": "week",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Порядковый номер недели"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526626748189,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.sunrise": {
      "_id": "weather.0.forecast.sunrise",
      "type": "state",
      "common": {
      "name": "sunrise",
      "role": "",
      "type": "string",
      "read": true,
      "write": true,
      "desc": "Время восхода Солнца,локальное время",
      "def": ""
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526626802772,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.sunset": {
      "_id": "weather.0.forecast.sunset",
      "type": "state",
      "common": {
      "name": "sunset",
      "role": "",
      "type": "string",
      "read": true,
      "write": true,
      "desc": "Время заката Солнца,локальное время",
      "def": ""
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526626839036,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.moon_code": {
      "_id": "weather.0.forecast.moon_code",
      "type": "state",
      "common": {
      "name": "moon_code",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Код фазы Луны",
      "states": {
      "0": "Полнолуние",
      "1": "Убывающая Луна",
      "2": "Убывающая Луна",
      "3": "Убывающая Луна",
      "4": "Последняя четверть",
      "5": "Убывающая Луна",
      "6": "Убывающая Луна",
      "7": "Убывающая Луна",
      "8": "Новолуние",
      "9": "Растущая Луна",
      "10": "Растущая Луна",
      "11": "Растущая Луна",
      "12": "Перваячетверть",
      "13": "Растущая Луна",
      "14": "Растущая Луна",
      "15": "Растущая Луна"
      }
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526626981588,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night": {
      "_id": "weather.0.forecast.night",
      "type": "channel",
      "common": {
      "name": "night",
      "role": "",
      "desc": "Прогноз на ночь"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629194977,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.part_name": {
      "from": "system.adapter.admin.0",
      "ts": 1526629366666,
      "common": {
      "name": "part_name",
      "role": "",
      "type": "string",
      "desc": "Часть времени суток",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.night.part_name",
      "type": "state"
      },
      "weather.0.forecast.night.temp_min": {
      "from": "system.adapter.admin.0",
      "ts": 1526629437336,
      "common": {
      "name": "temp_min",
      "role": "",
      "type": "number",
      "desc": "Минимальная температура для временисуток(°C)",
      "unit": "°C",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.night.temp_min",
      "type": "state"
      },
      "weather.0.forecast.night.temp_max": {
      "from": "system.adapter.admin.0",
      "ts": 1526629521473,
      "common": {
      "name": "temp_max",
      "role": "",
      "type": "number",
      "desc": "Максимальная температура для временисуток(°C)",
      "unit": "°C",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.night.temp_max",
      "type": "state"
      },
      "weather.0.forecast.night.temp_avg": {
      "_id": "weather.0.forecast.night.temp_avg",
      "type": "state",
      "common": {
      "name": "temp_avg",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Средняя температура для временисуток(°C)",
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629565614,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.feels_like": {
      "_id": "weather.0.forecast.night.feels_like",
      "type": "state",
      "common": {
      "name": "feels_like",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Ощущаемая температура (°C)",
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629600278,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.icon": {
      "from": "system.adapter.admin.0",
      "ts": 1526629638984,
      "common": {
      "name": "icon",
      "role": "",
      "type": "string",
      "desc": "Код иконки погоды",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.night.icon",
      "type": "state"
      },
      "weather.0.forecast.night.condition": {
      "from": "system.adapter.admin.0",
      "ts": 1526629698251,
      "common": {
      "name": "condition",
      "role": "",
      "type": "string",
      "desc": "Код расшифровки погодно гоописания",
      "read": true,
      "write": true,
      "states": {
      "clear": "ясно",
      "partly-cloudy": "малооблачно",
      "cloudy": "облачно с прояснениями",
      "overcast": "пасмурно",
      "partly-cloudy-and-light-rain": "небольшой дождь",
      "partly-cloudy-and-rain": "дождь",
      "overcast-and-rain": "сильный дождь",
      "overcast-thunderstorms-with-rain": "сильный дождь,гроза",
      "cloudy-and-light-rain": "небольшой дождь",
      "overcast-and-light-rain": "небольшой дождь",
      "cloudy-and-rain": "дождь",
      "overcast-and-wet-snow": "дождь со снегом",
      "partly-cloudy-and-light-snow": "небольшойс нег",
      "partly-cloudy-and-snow": "снег",
      "overcast-and-snow": "снегопад",
      "cloudy-and-light-snow": "облачно, небольшой снег",
      "overcast-and-light-snow": "небольшой снег",
      "cloudy-and-snow": "снег"
      }
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.night.condition",
      "type": "state"
      },
      "weather.0.forecast.night.wind_speed": {
      "_id": "weather.0.forecast.night.wind_speed",
      "type": "state",
      "common": {
      "name": "wind_speed",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Скорость ветра",
      "unit": "м/с"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629890041,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.wind_gust": {
      "_id": "weather.0.forecast.night.wind_gust",
      "type": "state",
      "common": {
      "name": "wind_gust",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Скоростьпорывов ветра",
      "unit": "м/с"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629948034,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.pressure_mm": {
      "_id": "weather.0.forecast.night.pressure_mm",
      "type": "state",
      "common": {
      "name": "pressure_mm",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Давление",
      "unit": "mmHg"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629988525,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.humidity": {
      "_id": "weather.0.forecast.night.humidity",
      "type": "state",
      "common": {
      "name": "humidity",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Влажность воздуха",
      "min": 0,
      "max": 100,
      "def": 0,
      "unit": "%"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630017693,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.prec_mm": {
      "_id": "weather.0.forecast.night.prec_mm",
      "type": "state",
      "common": {
      "name": "prec_mm",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Прогнозируемое количество осадков",
      "unit": "мм"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630069398,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.prec_period": {
      "_id": "weather.0.forecast.night.prec_period",
      "type": "state",
      "common": {
      "name": "prec_period",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Прогнозируемый период осадков",
      "unit": "мин"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630101548,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.night.prec_prob": {
      "_id": "weather.0.forecast.night.prec_prob",
      "type": "state",
      "common": {
      "name": "prec_prob",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Вероятность выпадения осадков"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630132707,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening": {
      "_id": "weather.0.forecast.evening",
      "type": "channel",
      "common": {
      "name": "night",
      "role": "",
      "desc": "Прогноз на ночь"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629194977,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.part_name": {
      "from": "system.adapter.admin.0",
      "ts": 1526629366666,
      "common": {
      "name": "part_name",
      "role": "",
      "type": "string",
      "desc": "Часть времени суток",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.evening.part_name",
      "type": "state"
      },
      "weather.0.forecast.evening.temp_min": {
      "from": "system.adapter.admin.0",
      "ts": 1526629437336,
      "common": {
      "name": "temp_min",
      "role": "value.temperature",
      "type": "number",
      "desc": "Минимальная температура для времени суток(°C)",
      "unit": "°C",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.evening.temp_min",
      "type": "state"
      },
      "weather.0.forecast.evening.temp_max": {
      "from": "system.adapter.admin.0",
      "ts": 1526629521473,
      "common": {
      "name": "temp_max",
      "role": "value.temperature",
      "type": "number",
      "desc": "Максимальная температура для временисуток(°C)",
      "unit": "°C",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.evening.temp_max",
      "type": "state"
      },
      "weather.0.forecast.evening.temp_avg": {
      "_id": "weather.0.forecast.evening.temp_avg",
      "type": "state",
      "common": {
      "name": "temp_avg",
      "role": "value.temperature",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Средняя температура для времени суток(°C)",
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629565614,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.feels_like": {
      "_id": "weather.0.forecast.evening.feels_like",
      "type": "state",
      "common": {
      "name": "feels_like",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Ощущаемая температура(°C)",
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629600278,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.icon": {
      "from": "system.adapter.admin.0",
      "ts": 1526629638984,
      "common": {
      "name": "icon",
      "role": "",
      "type": "string",
      "desc": "Код иконки погоды",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.evening.icon",
      "type": "state"
      },
      "weather.0.forecast.evening.condition": {
      "from": "system.adapter.admin.0",
      "ts": 1526629698251,
      "common": {
      "name": "condition",
      "role": "",
      "type": "string",
      "desc": "Код расшифровки погодного описания",
      "read": true,
      "write": true,
      "states": {
      "clear": "ясно",
      "partly-cloudy": "малооблачно",
      "cloudy": "облачно с прояснениями",
      "overcast": "пасмурно",
      "partly-cloudy-and-light-rain": "небольшой дождь",
      "partly-cloudy-and-rain": "дождь",
      "overcast-and-rain": "сильный дождь",
      "overcast-thunderstorms-with-rain": "сильный дождь,гроза",
      "cloudy-and-light-rain": "небольшой дождь",
      "overcast-and-light-rain": "небольшой дождь",
      "cloudy-and-rain": "дождь",
      "overcast-and-wet-snow": "дождь со снегом",
      "partly-cloudy-and-light-snow": "небольшойс нег",
      "partly-cloudy-and-snow": "снег",
      "overcast-and-snow": "снегопад",
      "cloudy-and-light-snow": "облачно, небольшой снег",
      "overcast-and-light-snow": "небольшой снег",
      "cloudy-and-snow": "снег"
      }
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.evening.condition",
      "type": "state"
      },
      "weather.0.forecast.evening.wind_speed": {
      "_id": "weather.0.forecast.evening.wind_speed",
      "type": "state",
      "common": {
      "name": "wind_speed",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Скорость ветра",
      "unit": "м/с"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629890041,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.wind_gust": {
      "_id": "weather.0.forecast.evening.wind_gust",
      "type": "state",
      "common": {
      "name": "wind_gust",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Скорость порывов ветра",
      "unit": "м/с"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629948034,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.pressure_mm": {
      "_id": "weather.0.forecast.evening.pressure_mm",
      "type": "state",
      "common": {
      "name": "pressure_mm",
      "role": "value.pressure",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Давление",
      "unit": "mmHg"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629988525,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.humidity": {
      "_id": "weather.0.forecast.evening.humidity",
      "type": "state",
      "common": {
      "name": "humidity",
      "role": "value.temperature",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Влажность воздуха",
      "min": 0,
      "max": 100,
      "def": 0,
      "unit": "%"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630017693,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.prec_mm": {
      "_id": "weather.0.forecast.evening.prec_mm",
      "type": "state",
      "common": {
      "name": "prec_mm",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Прогнозируемо еколичество осадков",
      "unit": "мм"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630069398,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.prec_period": {
      "_id": "weather.0.forecast.evening.prec_period",
      "type": "state",
      "common": {
      "name": "prec_period",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Прогнозируемый период осадков",
      "unit": "мин"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630101548,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.evening.prec_prob": {
      "_id": "weather.0.forecast.evening.prec_prob",
      "type": "state",
      "common": {
      "name": "prec_prob",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Вероятность выпадения осадков"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630132707,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning": {
      "_id": "weather.0.forecast.morning",
      "type": "channel",
      "common": {
      "name": "night",
      "role": "",
      "desc": "Прогноз на ночь"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629194977,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.part_name": {
      "from": "system.adapter.admin.0",
      "ts": 1526629366666,
      "common": {
      "name": "part_name",
      "role": "",
      "type": "string",
      "desc": "Часть времени суток",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.morning.part_name",
      "type": "state"
      },
      "weather.0.forecast.morning.temp_min": {
      "from": "system.adapter.admin.0",
      "ts": 1526629437336,
      "common": {
      "name": "temp_min",
      "role": "",
      "type": "number",
      "desc": "Минимальная температура для временисуток(°C)",
      "unit": "°C",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.morning.temp_min",
      "type": "state"
      },
      "weather.0.forecast.morning.temp_max": {
      "from": "system.adapter.admin.0",
      "ts": 1526629521473,
      "common": {
      "name": "temp_max",
      "role": "",
      "type": "number",
      "desc": "Максимальная температура для времени суток(°C)",
      "unit": "°C",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.morning.temp_max",
      "type": "state"
      },
      "weather.0.forecast.morning.temp_avg": {
      "_id": "weather.0.forecast.morning.temp_avg",
      "type": "state",
      "common": {
      "name": "temp_avg",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Средняя температура для времени суток(°C)",
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629565614,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.feels_like": {
      "_id": "weather.0.forecast.morning.feels_like",
      "type": "state",
      "common": {
      "name": "feels_like",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Ощущаемаятемпература(°C)",
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629600278,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.icon": {
      "from": "system.adapter.admin.0",
      "ts": 1526629638984,
      "common": {
      "name": "icon",
      "role": "",
      "type": "string",
      "desc": "Код иконки погоды",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.morning.icon",
      "type": "state"
      },
      "weather.0.forecast.morning.condition": {
      "from": "system.adapter.admin.0",
      "ts": 1526629698251,
      "common": {
      "name": "condition",
      "role": "",
      "type": "string",
      "desc": "Код расшифровки погодного описания",
      "read": true,
      "write": true,
      "states": {
      "clear": "ясно",
      "partly-cloudy": "малооблачно",
      "cloudy": "облачно с прояснениями",
      "overcast": "пасмурно",
      "partly-cloudy-and-light-rain": "небольшой дождь",
      "partly-cloudy-and-rain": "дождь",
      "overcast-and-rain": "сильный дождь",
      "overcast-thunderstorms-with-rain": "сильный дождь,гроза",
      "cloudy-and-light-rain": "небольшой дождь",
      "overcast-and-light-rain": "небольшой дождь",
      "cloudy-and-rain": "дождь",
      "overcast-and-wet-snow": "дождь со снегом",
      "partly-cloudy-and-light-snow": "небольшойс нег",
      "partly-cloudy-and-snow": "снег",
      "overcast-and-snow": "снегопад",
      "cloudy-and-light-snow": "облачно, небольшой снег",
      "overcast-and-light-snow": "небольшой снег",
      "cloudy-and-snow": "снег"
      }
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.morning.condition",
      "type": "state"
      },
      "weather.0.forecast.morning.wind_speed": {
      "_id": "weather.0.forecast.morning.wind_speed",
      "type": "state",
      "common": {
      "name": "wind_speed",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Скорость ветра",
      "unit": "м/с"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629890041,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.wind_gust": {
      "_id": "weather.0.forecast.morning.wind_gust",
      "type": "state",
      "common": {
      "name": "wind_gust",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Скорость порывов ветра",
      "unit": "м/с"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629948034,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.pressure_mm": {
      "_id": "weather.0.forecast.morning.pressure_mm",
      "type": "state",
      "common": {
      "name": "pressure_mm",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Давление",
      "unit": "mmHg"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629988525,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.humidity": {
      "_id": "weather.0.forecast.morning.humidity",
      "type": "state",
      "common": {
      "name": "humidity",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Влажность воздуха",
      "min": 0,
      "max": 100,
      "def": 0,
      "unit": "%"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630017693,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.prec_mm": {
      "_id": "weather.0.forecast.morning.prec_mm",
      "type": "state",
      "common": {
      "name": "prec_mm",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Прогнозируемое количество осадков",
      "unit": "мм"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630069398,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.prec_period": {
      "_id": "weather.0.forecast.morning.prec_period",
      "type": "state",
      "common": {
      "name": "prec_period",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Прогнозируемый период осадков",
      "unit": "мин"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630101548,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.morning.prec_prob": {
      "_id": "weather.0.forecast.morning.prec_prob",
      "type": "state",
      "common": {
      "name": "prec_prob",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Вероятность выпадения осадков"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630132707,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day": {
      "_id": "weather.0.forecast.day",
      "type": "channel",
      "common": {
      "name": "night",
      "role": "",
      "desc": "Прогноз на ночь"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629194977,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.part_name": {
      "from": "system.adapter.admin.0",
      "ts": 1526629366666,
      "common": {
      "name": "part_name",
      "role": "",
      "type": "string",
      "desc": "Часть времени суток",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.day.part_name",
      "type": "state"
      },
      "weather.0.forecast.day.temp_min": {
      "from": "system.adapter.admin.0",
      "ts": 1526629437336,
      "common": {
      "name": "temp_min",
      "role": "",
      "type": "number",
      "desc": "Минимальная температура для временисуток(°C)",
      "unit": "°C",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.day.temp_min",
      "type": "state"
      },
      "weather.0.forecast.day.temp_max": {
      "from": "system.adapter.admin.0",
      "ts": 1526629521473,
      "common": {
      "name": "temp_max",
      "role": "",
      "type": "number",
      "desc": "Максимальная температура длявремени суток(°C)",
      "unit": "°C",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.day.temp_max",
      "type": "state"
      },
      "weather.0.forecast.day.temp_avg": {
      "_id": "weather.0.forecast.day.temp_avg",
      "type": "state",
      "common": {
      "name": "temp_avg",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Средняя температура для времени суток(°C)",
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629565614,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.feels_like": {
      "_id": "weather.0.forecast.day.feels_like",
      "type": "state",
      "common": {
      "name": "feels_like",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Ощущаемая температура(°C)",
      "unit": "°C"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629600278,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.icon": {
      "from": "system.adapter.admin.0",
      "ts": 1526629638984,
      "common": {
      "name": "icon",
      "role": "",
      "type": "string",
      "desc": "Код иконки погоды",
      "read": true,
      "write": true
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.day.icon",
      "type": "state"
      },
      "weather.0.forecast.day.condition": {
      "from": "system.adapter.admin.0",
      "ts": 1526629698251,
      "common": {
      "name": "condition",
      "role": "",
      "type": "string",
      "desc": "Код расшифровки погодного описания",
      "read": true,
      "write": true,
      "states": {
      "clear": "ясно",
      "partly-cloudy": "малооблачно",
      "cloudy": "облачно с прояснениями",
      "overcast": "пасмурно",
      "partly-cloudy-and-light-rain": "небольшой дождь",
      "partly-cloudy-and-rain": "дождь",
      "overcast-and-rain": "сильный дождь",
      "overcast-thunderstorms-with-rain": "сильный дождь,гроза",
      "cloudy-and-light-rain": "небольшой дождь",
      "overcast-and-light-rain": "небольшой дождь",
      "cloudy-and-rain": "дождь",
      "overcast-and-wet-snow": "дождь со снегом",
      "partly-cloudy-and-light-snow": "небольшойс нег",
      "partly-cloudy-and-snow": "снег",
      "overcast-and-snow": "снегопад",
      "cloudy-and-light-snow": "облачно, небольшой снег",
      "overcast-and-light-snow": "небольшой снег",
      "cloudy-and-snow": "снег"
      }
      },
      "native": {},
      "acl": {
      "object": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator",
      "state": 1636
      },
      "_id": "weather.0.forecast.day.condition",
      "type": "state"
      },
      "weather.0.forecast.day.wind_speed": {
      "_id": "weather.0.forecast.day.wind_speed",
      "type": "state",
      "common": {
      "name": "wind_speed",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Скорост ьветра",
      "unit": "м/с"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629890041,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.wind_gust": {
      "_id": "weather.0.forecast.day.wind_gust",
      "type": "state",
      "common": {
      "name": "wind_gust",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Скорость порывов ветра",
      "unit": "м/с"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629948034,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.pressure_mm": {
      "_id": "weather.0.forecast.day.pressure_mm",
      "type": "state",
      "common": {
      "name": "pressure_mm",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Давление",
      "unit": "mmHg"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526629988525,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.humidity": {
      "_id": "weather.0.forecast.day.humidity",
      "type": "state",
      "common": {
      "name": "humidity",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Влажность воздуха",
      "min": 0,
      "max": 100,
      "def": 0,
      "unit": "%"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630017693,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.prec_mm": {
      "_id": "weather.0.forecast.day.prec_mm",
      "type": "state",
      "common": {
      "name": "prec_mm",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Прогнозируемое количество осадков",
      "unit": "мм"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630069398,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.prec_period": {
      "_id": "weather.0.forecast.day.prec_period",
      "type": "state",
      "common": {
      "name": "prec_period",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Прогнозируемый период осадков",
      "unit": "мин"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630101548,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }
      },
      "weather.0.forecast.day.prec_prob": {
      "_id": "weather.0.forecast.day.prec_prob",
      "type": "state",
      "common": {
      "name": "prec_prob",
      "role": "",
      "type": "number",
      "read": true,
      "write": true,
      "desc": "Вероятность выпадения осадков"
      },
      "native": {},
      "from": "system.adapter.admin.0",
      "ts": 1526630132707,
      "acl": {
      "object": 1636,
      "state": 1636,
      "owner": "system.user.admin",
      "ownerGroup": "system.group.administrator"
      }

      }
      }

      ! ````

      ну и собственно сам скрипт. Для его работы нужно у яндекса получить API-key https://tech.yandex.ru/weather/doc/dg/concepts/about-docpage/ и вставить его в начале скрипта. Также не забудте поменять координаты на свои.

      Скрипт настроен на запуск каждый час. Примерно с такой переодичность у яндекса обновляется текущая погода.

      ! ```
      `var request = require('request');
      ! var options = {
      url: 'https://api.weather.yandex.ru/v1/informers?lat=51.832982&lon=37.106660', //указать свои координаты
      headers: {
      'User-Agent': 'request',
      'X-Yandex-API-Key': 'bxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx' //вставить полученный API-key
      }
      };
      ! function translateCondition (condition) {
      var rcond;
      switch(condition) {
      case "clear": rcond="ясно";
      break;
      case "partly-cloudy": rcond="малооблачно";
      break;
      case "cloudy": rcond="облачно с прояснениями";
      break;
      case "overcast": rcond="пасмурно";
      break;
      case "partly-cloudy-and-light-rain": rcond="малооблачно, небольшой дождь";
      break;
      case "partly-cloudy-and-rain": rcond="малооблачно,дождь";
      break;
      case "overcast-and-rain": rcond="облачно, сильный дождь";
      break;
      case "overcast-thunderstorms-with-rain": rcond="облачно, сильный дождь, гроза";
      break;
      case "cloudy-and-light-rain": rcond="облачно, небольшой дождь";
      break;
      case "overcast-and-light-rain": rcond="пасмурно, небольшой дождь";
      break;
      case "cloudy-and-rain": rcond="облачно, дождь";
      break;
      case "overcast-and-wet-snow": rcond="пасмурно, дождь со снегом";
      break;
      case "partly-cloudy-and-light-snow": rcond="малооблачно, небольшой снег";
      break;
      case "partly-cloudy-and-snow": rcond="малооблачно, снег";
      break;
      case "overcast-and-snow": rcond="пасмурно, снегопад";
      break;
      case "cloudy-and-light-snow": rcond="облачно, небольшой снег";
      break;
      case "overcast-and-light-snow": rcond="пасмурно, небольшой снег";
      break;
      case "cloudy-and-snow": rcond="облачно, снег";
      }
      return rcond;
      }
      ! function callback(error, response, body) {
      if (!error && response.statusCode == 200) {
      var info = JSON.parse(body);
      var fact = info.fact;
      setState("weather.0.forecast.current.temperature"/temperature/, fact.temp, true);
      setState("weather.0.forecast.current.condition"/condition/, translateCondition(fact.condition), true);
      setState("weather.0.forecast.current.feels_like"/feels_like/, fact.feels_like, true);
      setState("weather.0.forecast.current.humidity"/humidity/, fact.humidity, true);
      setState("weather.0.forecast.current.icon"/icon/, "https://yastatic.net/weather/i/icons/blueye/color/svg/"+fact.icon+".svg", true);
      setState("weather.0.forecast.current.obs_time"/obs_time/, fact.obs_time, true);
      setState("weather.0.forecast.current.pressure_mm"/pressure_mm/, fact.pressure_mm, true);
      setState("weather.0.forecast.current.wind_gust"/wind_gust/, fact.wind_gust, true);
      setState("weather.0.forecast.current.wind_speed"/wind_speed/, fact.wind_speed, true);
      setState("weather.0.forecast.current.obs_time_hum"/obs_time/, formatDate(fact.obs_time, "JJJJ.MM.TT SS:mm:ss.sss"), true);

      var forecast = info.forecast;
      
      setState("weather.0.forecast.date"/*date*/, forecast.date, true);
      setState("weather.0.forecast.date_ts"/*date_ts*/, forecast.date_ts, true);
      setState("weather.0.forecast.moon_code"/*moon_code*/, forecast.moon_code, true);
      setState("weather.0.forecast.sunrise"/*sunrise*/, forecast.sunrise, true);
      setState("weather.0.forecast.sunset"/*sunset*/, forecast.sunset, true);
      setState("weather.0.forecast.week"/*week*/, forecast.week, true);
      

      var fparts = info.forecast.parts;

      for(var i = 0; i < fparts.length; i++) {
      var obj = fparts[i];
      setState("weather.0.forecast."+obj.part_name+".part_name", obj.part_name, true);
      setState("weather.0.forecast."+obj.part_name+".temp_min", obj.temp_min, true);
      setState("weather.0.forecast."+obj.part_name+".temp_max", obj.temp_max, true);
      setState("weather.0.forecast."+obj.part_name+".temp_avg", obj.temp_avg, true);
      setState("weather.0.forecast."+obj.part_name+".feels_like", obj.feels_like, true);
      setState("weather.0.forecast."+obj.part_name+".icon", obj.icon, true);
      setState("weather.0.forecast."+obj.part_name+".condition", translateCondition(obj.condition), true);
      setState("weather.0.forecast."+obj.part_name+".wind_speed", obj.wind_speed, true);
      setState("weather.0.forecast."+obj.part_name+".wind_gust", obj.wind_gust, true);
      setState("weather.0.forecast."+obj.part_name+".pressure_mm", obj.pressure_mm, true);
      setState("weather.0.forecast."+obj.part_name+".humidity", obj.humidity, true);
      setState("weather.0.forecast."+obj.part_name+".prec_mm", obj.prec_mm, true);
      setState("weather.0.forecast."+obj.part_name+".prec_period", obj.prec_period, true);
      setState("weather.0.forecast."+obj.part_name+".prec_prob", obj.prec_prob, true);
      }

      ! }
      }
      ! schedule("0 * * * *", function () {
      request(options, callback);
      });`
      ! С написанием адаптеров еще не разбирался. Если кто-то сможет обернуть это дело в адаптер будет здорово :)[/i]

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      913
      Online

      31.8k
      Users

      80.0k
      Topics

      1.3m
      Posts

      1
      1
      3218
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo