Giter Site home page Giter Site logo

yandex_weather's People

Contributors

airens avatar bastshoes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

yandex_weather's Issues

Sensors

Are any weather sensors being created?
Создаются ли какие-либо сенсоры погоды?

WeatherEntity error

Dear Developer,
Kindly fix the error if possible

Logger: homeassistant.components.weather
Source: components/weather/init.py:308
Integration: Weather (documentation, issues)
First occurred: 08:43:03 (1 occurrences)
Last logged: 08:43:03

custom_components.yandex_weather.weather::YandexWeather is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom integration author.

Возможность указать язык вывода

Не нашел куда запостить.
Было бы интересно иметь возможность указать язык вывода данных о погоде и прогнозе.
Хочется оставить язык интерфейса английским но погоду на русском бы хотелось

Yandex Weather on HA 2022.3

Dear Developer,

Got flw error/warning in the log:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:103
First occurred: 17:39:08 (1 occurrences)
Last logged: 17:39:08

Detected integration that called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.3. Please report issue to the custom component author for yandex_weather using this method at custom_components/yandex_weather/weather.py, line 251: async with async_timeout.timeout(5, loop=self._loop):

And custom integration is not working anymore on HA 2022.3

Kindly check and if possible fix the issue

REGARDS

ALEX

Кеширование данных

Было бы интересно, если компонента кешировала результат запросов ... и не запрашивала бы данные с яндекса при каждом запросе. При перезапусках во время тестирования автоматизации и тп быстро выжирает кол-во запросов к API

Error fetching data from Yandex.Weather

After each launch, I see the following error:
После каждого запуска вижу такую ошибку:

Logger: custom_components.yandex_weather.weather
Source: custom_components/yandex_weather/weather.py:265
Integration: yandex_weather (documentation)
First occurred: 16:30:01 (1 occurrences)
Last logged: 16:30:01

Error fetching data from Yandex.Weather,

Can you suggest a solution?
Не подскажете решение?

weather.yandex_weather не доступен

Сразу после обновления до версии 0.113.1 возникла вот такая ошибка
image
в логах нашёл вот это

Logger: homeassistant.components.weather
Source: custom_components/yandex_weather/weather.py:168
Integration: Weather (documentation, issues)
First occurred: 26 июля 2020 г., 18:02:23 (1 occurrences)
Last logged: 26 июля 2020 г., 18:02:23

Error while setting up yandex_weather platform for weather
---

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 187, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 452, in _async_add_entity
    entity.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 290, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
    sstate = self.state
  File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 188, in state
    return self.condition
  File "/config/custom_components/yandex_weather/weather.py", line 166, in condition
    return next((
  File "/config/custom_components/yandex_weather/weather.py", line 168, in <genexpr>
    if self._weather_data.current['condition'] in v), None)
KeyError: 'condition'

Platform error weather.yandex_weather - Integration 'yandex_weather' not found.

Hi! I've been following the readme to install this addon, and got following error when tried to restart the core (and the same when checked the configuration):

The system cannot restart because the configuration is not valid: Platform error weather.yandex_weather - Integration 'yandex_weather' not found.

Should I have done something differently?

new api?

Добрый день!
В настоящее время на hass.io (0.103.6) данный код не работает
Я так понимаю, у яндекса сменился API. И в связи с этим:

  1. Появилось разделение по ключам - теперь тестовый и постоянный ключ требуют разных запросов (forecast/informers) (weather.py 245 строка, надо поменять informers на forecast для тестового ключа)
  2. После получения ответа через тестовый ключ возникает следующая проблема: у json'a отсутствует ключ 'forecast'. Если я правильно понимаю, то его заменили ключом 'forecasts'. (255 строка, дописываем 's')
  3. И после этого возникает ошибка 'dict' object has no attribute 'index', решить которую я пока не могу

Yandex.Weather, 403, Forbidden

I've installed component and using test (30-days trial) API key

I had following errors in log:

Log Details (ERROR)
Tue Feb 18 2020 14:09:24 GMT+0300 (Moscow Standard Time)
Error fetching data from Yandex.Weather, 403, Forbidden

and the second one:

Tue Feb 18 2020 14:15:36 GMT+0300 (Moscow Standard Time)
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 424, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 187, in state
    return self.condition
  File "/config/custom_components/yandex_weather/weather.py", line 168, in condition
    if self._weather_data.current['condition'] in v), None)
  File "/config/custom_components/yandex_weather/weather.py", line 168, in <genexpr>
    if self._weather_data.current['condition'] in v), None)
KeyError: 'condition'

Could you please help me to resolve an issues?
I'm using hass.io Home Assistant 0.105.3

many thanks,
Ilya

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.