# Weather Platform - IPMA

**URL:** <https://forum.cpha.pt/t/weather-platform-ipma/497>\
**Category:** Partilha de Projectos\
**Created:** [29 Maio , 2018 22:40 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497 "2018-05-29T22:40:39Z")\
**Posts on this page:** 20\
**Page:** 11

<div class="post-metadata">

**Author:** ![dgomes](https://forum.cpha.pt/user_avatar/forum.cpha.pt/dgomes/32/42_2.png) [@dgomes](https://forum.cpha.pt/u/dgomes)\
**Post date:** [22 Março , 2020 13:31 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/201 "2020-03-22T13:31:19Z")

</div>

Boa… agora já tens um parceiro 😉

Só impressao minha ou estamos a falar da mesma estação meteo @karma e @j_assuncao ?

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [22 Março , 2020 13:34 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/202 "2020-03-22T13:34:29Z")

</div>

@dgomes aparentemente sim, deve ser problema daqui do micro-clima de Sintra… Lol…

---

<div class="post-metadata">

**Author:** ![dgomes](https://forum.cpha.pt/user_avatar/forum.cpha.pt/dgomes/32/42_2.png) [@dgomes](https://forum.cpha.pt/u/dgomes)\
**Post date:** [22 Março , 2020 14:14 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/203 "2020-03-22T14:14:10Z")

</div>

Eu não consigo reproduzir o erro no meu setup ☹

Será que algum de vocês me consegue dar acesso às vossas maquinas remotamente ?

---

<div class="post-metadata">

**Author:** ![fsilva80](https://forum.cpha.pt/user_avatar/forum.cpha.pt/fsilva80/32/4484_2.png) [@fsilva80](https://forum.cpha.pt/u/fsilva80)\
**Post date:** [22 Março , 2020 14:24 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/204 "2020-03-22T14:24:47Z")

</div>

Eu tenho o mesmo problema e não vivo em Sintra, lol…

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [22 Março , 2020 14:34 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/205 "2020-03-22T14:34:20Z")

</div>

@dgomes mais logo por volta das 17h-17h30 posso dar-te acesso.

---

<div class="post-metadata">

**Author:** ![Helder\_Moreira](https://forum.cpha.pt/user_avatar/forum.cpha.pt/helder_moreira/32/3220_2.png) [@Helder\_Moreira](https://forum.cpha.pt/u/Helder_Moreira)\
**Post date:** [23 Março , 2020 18:17 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/206 "2020-03-23T18:17:41Z")

</div>

Eu vivo no norte do país e também tenho o mesmo problema.

---

<div class="post-metadata">

**Author:** ![dgomes](https://forum.cpha.pt/user_avatar/forum.cpha.pt/dgomes/32/42_2.png) [@dgomes](https://forum.cpha.pt/u/dgomes)\
**Post date:** [24 Março , 2020 01:06 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/207 "2020-03-24T01:06:09Z")

</div>

Depois de um precioso apoio do @j_assuncao, foi possível detectar um timeout quando a estação mais próxima está down e é preciso procurar alternativas.

PR já aberto:  
[https://github.com/home-assistant/core/pull/33194](https://github.com/home-assistant/core/pull/33194)

---

<div class="post-metadata">

**Author:** ![Nelson\_Amen](https://forum.cpha.pt/user_avatar/forum.cpha.pt/nelson_amen/32/2380_2.png) [@Nelson\_Amen](https://forum.cpha.pt/u/Nelson_Amen)\
**Post date:** [21 Maio , 2020 15:15 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/208 "2020-05-21T15:15:12Z")

</div>

Boas  
Estou na versão Home Assistant 0.110.1 se usar a config do ipma

# Example configuration.yaml entry

weather:

- platform: ipma  
desta forma aparece os dias da semana  
mas instalei agora por as integrações e aparece em horas… como posso colocar em dias?  
 ![tempo](https://forum.cpha.pt/uploads/default/original/2X/4/440e1e46369aa25240e9455b390f77300d5f1035.png)

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [22 Maio , 2020 09:09 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/209 "2020-05-22T09:09:30Z")

</div>

O IPMA não deve ser configurado via YAML mas sim via Integrações do próprio HA. Ao configurar terás opção dos valores horários ou diários.

---

<div class="post-metadata">

**Author:** ![Nelson\_Amen](https://forum.cpha.pt/user_avatar/forum.cpha.pt/nelson_amen/32/2380_2.png) [@Nelson\_Amen](https://forum.cpha.pt/u/Nelson_Amen)\
**Post date:** [22 Maio , 2020 10:02 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/210 "2020-05-22T10:02:54Z")

</div>

obrigado, ja tenho a funcionar direito

---

<div class="post-metadata">

**Author:** ![fontes31](https://forum.cpha.pt/user_avatar/forum.cpha.pt/fontes31/32/4798_2.png) [@fontes31](https://forum.cpha.pt/u/fontes31)\
**Post date:** [22 Maio , 2020 20:32 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/211 "2020-05-22T20:32:04Z")

</div>

no meu HA 0.110.1 so consigo ter a previsao para 3 dias. Estranho

---

<div class="post-metadata">

**Author:** ![Gustavo\_Pinto](https://forum.cpha.pt/user_avatar/forum.cpha.pt/gustavo_pinto/32/7086_2.png) [@Gustavo\_Pinto](https://forum.cpha.pt/u/Gustavo_Pinto)\
**Post date:** [25 Novembro , 2020 18:29 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/212 "2020-11-25T18:29:02Z")

</div>

Olá a todos…  
alguém está com problemas nesta integração?  
mais recentemente, quando reinicio o HA a integração falha…

admito que seja do lado do IPMA… tenho a integração feita através da UI do HA e nada no configuration.yaml

a entidade fica presente… mas indisponível…

a forma que encontro de a reactivar é:

- reload da integração
- eliminar a entidade
- eliminar e reinstalar a integração
- ou as 3 anteriores

mas a receita não produz sempre o mesmo resultado… a maior parte das vezes não reactiva a entidade… e de vez em quando lá vai…  
quando está ok, se reiniciar o HA… Puff

LOGs:

Logger: root  
Source: /usr/local/lib/python3.8/site-packages/pyipma/api.py:29  
First occurred: 18:25:27 (1 occurrences)  
Last logged: 18:25:27  
Cannot connect to host api.ipma.pt:80 ssl:default [Name does not resolve]

Logger: homeassistant.components.weather  
Source: components/ipma/weather.py:132  
Integration: Weather ([documentation](https://www.home-assistant.io/integrations/weather), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+weather%22))  
First occurred: 18:25:27 (1 occurrences)  
Last logged: 18:25:27

Error while setting up ipma platform for weather

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity\_platform.py”, line 199, in \_async\_setup\_platform await asyncio.shield(task) File “/usr/src/homeassistant/homeassistant/components/ipma/weather.py”, line 96, in async\_setup\_entry location = await async\_get\_location(hass, api, latitude, longitude) File “/usr/src/homeassistant/homeassistant/components/ipma/weather.py”, line 132, in async\_get\_location location = await Location.get(api, float(latitude), float(longitude)) File “/usr/local/lib/python3.8/site-packages/pyipma/location.py”, line 102, in get locations = [ForecastLocation(r) for r in raw\_locations] TypeError: ‘NoneType’ object is not iterable

---

<div class="post-metadata">

**Author:** ![dgomes](https://forum.cpha.pt/user_avatar/forum.cpha.pt/dgomes/32/42_2.png) [@dgomes](https://forum.cpha.pt/u/dgomes)\
**Post date:** [25 Novembro , 2020 18:49 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/213 "2020-11-25T18:49:21Z")

</div>

Cannot connect to host [api.ipma.pt:80](http://api.ipma.pt/) ssl:default [Name does not resolve]

Tens ai o problema… nao se consegue ligar a servidor do IPMA 😉

Quando o servidor voltar a integração deve normalizar

---

<div class="post-metadata">

**Author:** ![Gustavo\_Pinto](https://forum.cpha.pt/user_avatar/forum.cpha.pt/gustavo_pinto/32/7086_2.png) [@Gustavo\_Pinto](https://forum.cpha.pt/u/Gustavo_Pinto)\
**Post date:** [26 Novembro , 2020 12:14 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/214 "2020-11-26T12:14:15Z")

</div>

Obrigado pela resposta.  
Acontece que este sintoma tem sido uma constante no último mês.  
A questão que eu estava a colocar é se mais alguém sente este comportamento na integração

Obrigado e parabéns ao CPHA

---

<div class="post-metadata">

**Author:** ![JorgeTeixeira](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/j/ccd318/32.png) [@JorgeTeixeira](https://forum.cpha.pt/u/JorgeTeixeira)\
**Post date:** [26 Novembro , 2020 19:12 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/215 "2020-11-26T19:12:23Z")

</div>

Eu tenho o mesmo problema, já faz algumas semana, nem estou a usar o ipma agora por causa disso.

---

<div class="post-metadata">

**Author:** ![dgomes](https://forum.cpha.pt/user_avatar/forum.cpha.pt/dgomes/32/42_2.png) [@dgomes](https://forum.cpha.pt/u/dgomes)\
**Post date:** [26 Novembro , 2020 20:33 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/216 "2020-11-26T20:33:37Z")

</div>

o erro é muito básico - `Name does not resolve`

Voces só por acaso não usam pi-hole ou outro DNS filter ?

---

<div class="post-metadata">

**Author:** ![rcaeiro](https://forum.cpha.pt/user_avatar/forum.cpha.pt/rcaeiro/32/7131_2.png) [@rcaeiro](https://forum.cpha.pt/u/rcaeiro)\
**Post date:** [26 Novembro , 2020 22:49 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/217 "2020-11-26T22:49:43Z")

</div>

Também tive o mesmo problema, mas no meu caso era o erro no “mode”.  
O que fiz foi apagar a integração e criar de novo. Coloquei o mode para ‘hourly’ e até agora está a funcionar, mesmo depois de um reboot.

---

<div class="post-metadata">

**Author:** ![JorgeTeixeira](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/j/ccd318/32.png) [@JorgeTeixeira](https://forum.cpha.pt/u/JorgeTeixeira)\
**Post date:** [28 Novembro , 2020 11:35 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/218 "2020-11-28T11:35:03Z")

</div>

Não, não uso rigorosamente nada…

---

<div class="post-metadata">

**Author:** ![JSilva](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@JSilva](https://forum.cpha.pt/u/JSilva)\
**Post date:** [28 Novembro , 2020 12:50 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/219 "2020-11-28T12:50:18Z")

</div>

Eu tenho o mesmo problema.

---

<div class="post-metadata">

**Author:** ![dgomes](https://forum.cpha.pt/user_avatar/forum.cpha.pt/dgomes/32/42_2.png) [@dgomes](https://forum.cpha.pt/u/dgomes)\
**Post date:** [28 Novembro , 2020 14:07 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/220 "2020-11-28T14:07:26Z")

</div>

Eu preciso de mais informação do que “eu tenho um problema”

Preciso:

- logs com erros
- informação da vossa posição geográfica (nao precisa de ser rigorosa, mas precisa de ser perto ±1km)

[Página anterior](https://forum.cpha.pt/t/weather-platform-ipma/497.md?page=10)

[Próxima página](https://forum.cpha.pt/t/weather-platform-ipma/497.md?page=12)
