# 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:** 3

<div class="post-metadata">

**Author:** ![ricain](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/r/9fc348/32.png) [@ricain](https://forum.cpha.pt/u/ricain)\
**Post date:** [30 Maio , 2018 23:01 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/41 "2018-05-30T23:01:54Z")

</div>

Deve aparecer distritos… guimarães esta em vila/cidade quando vamos ao site

---

<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:** [30 Maio , 2018 23:02 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/42 "2018-05-30T23:02:10Z")

</div>

Quem já instalou, por favor actualize (verifiquem a versão certa pela versão do pyipma)

---

<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:** [30 Maio , 2018 23:10 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/43 "2018-05-30T23:10:34Z")

</div>

Novidades em termos de funções?

---

<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:** [30 Maio , 2018 23:14 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/44 "2018-05-30T23:14:47Z")

</div>

Fundamentalmente alterações de codigo interno que preciso que sejam validadas 🙂

Mas sim, acrescentei um atributo description com informação breve textual do estado do tempo para o corrente dia (informação essa disponibilizada pelo IPMA, não da minha responsabilidade)

---

<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:** [30 Maio , 2018 23:55 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/45 "2018-05-30T23:55:38Z")

</div>

⭐⭐⭐⭐⭐

Sem erros!

---

<div class="post-metadata">

**Author:** ![paulo106](https://forum.cpha.pt/user_avatar/forum.cpha.pt/paulo106/32/2317_2.png) [@paulo106](https://forum.cpha.pt/u/paulo106)\
**Post date:** [31 Maio , 2018 00:37 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/46 "2018-05-31T00:37:52Z")

</div>

Muito bom. Era mesmo o que queria poder colocar no hass. Muito obrigado. 🤗

---

<div class="post-metadata">

**Author:** ![Sergio\_Lopes](https://forum.cpha.pt/user_avatar/forum.cpha.pt/sergio_lopes/32/3675_2.png) [@Sergio\_Lopes](https://forum.cpha.pt/u/Sergio_Lopes)\
**Post date:** [31 Maio , 2018 15:05 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/47 "2018-05-31T15:05:57Z")

</div>

> [@dgomes](#):
>
> ~/.homeassistant/custom\_components/weather/

Boa tarde,  
Desculpem as minhas intervenções de iniciante.  
Presumo que para correr este component tenha de:  
1- copiar o ficheiro .py para a pasta config/custom\_components/weather  
2 - Adicionar ao configuration.yaml:  
weather:  
- platform: ipma

Falta-me algo?  
Obrigado.

---

<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:** [31 Maio , 2018 15:50 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/48 "2018-05-31T15:50:57Z")

</div>

Reiniciar o HA?

É só isso

---

<div class="post-metadata">

**Author:** ![Sergio\_Lopes](https://forum.cpha.pt/user_avatar/forum.cpha.pt/sergio_lopes/32/3675_2.png) [@Sergio\_Lopes](https://forum.cpha.pt/u/Sergio_Lopes)\
**Post date:** [31 Maio , 2018 17:35 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/49 "2018-05-31T17:35:25Z")

</div>

@dgomes Já tinha reiniciado o HA, mas não estava a resultar, pensei que fosse necessário algo mais.  
Mas depois de umas tentativas, cá está…  
Muito bom. Parabéns pelo excelente trabalho.  
Abraço.

---

<div class="post-metadata">

**Author:** ![ricain](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/r/9fc348/32.png) [@ricain](https://forum.cpha.pt/u/ricain)\
**Post date:** [31 Maio , 2018 17:35 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/50 "2018-05-31T17:35:29Z")

</div>

Achas que vais conseguir pôr a localização Guimarães? Digo Guimarães por ser o meu caso.

---

<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:** [31 Maio , 2018 18:02 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/51 "2018-05-31T18:02:43Z")

</div>

O nome que aparece não é da nossa localização é o nome da estação meteorológica do IPMA

Não existe nenhuma estação do IPMA em Guimarães…

Tudo que o eu tenho é isto: [http://api.ipma.pt](http://api.ipma.pt)

---

<div class="post-metadata">

**Author:** ![Luis\_Belo](https://forum.cpha.pt/user_avatar/forum.cpha.pt/luis_belo/32/28_2.png) [@Luis\_Belo](https://forum.cpha.pt/u/Luis_Belo)\
**Post date:** [31 Maio , 2018 18:12 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/52 "2018-05-31T18:12:00Z")

</div>

Impecável… 🙂  
Aqui já bomba nas horas … excelente trabalho @dgomes

 ![wifi](https://forum.cpha.pt/uploads/default/original/1X/03f32ea64ff8aa6e93919f7e4e97a3fff1839f53.jpg)

Só achava estranho era o IPMA acertar no tempo :):):):):):)🙂  
Reparem como está lá “fora”.

 ![IMG_20180531_190749](https://forum.cpha.pt/uploads/default/original/1X/aa44e2b38d7cacf405c5727300a6e55c43d0fd5a.jpg)

---

<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:** [31 Maio , 2018 18:14 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/53 "2018-05-31T18:14:54Z")

</div>

Ha ai qq coisa errada…

Pressão atmosferica de -99 não faz sentido. Podes verificar que estas a usar a ultima versao ?

---

<div class="post-metadata">

**Author:** ![Luis\_Belo](https://forum.cpha.pt/user_avatar/forum.cpha.pt/luis_belo/32/28_2.png) [@Luis\_Belo](https://forum.cpha.pt/u/Luis_Belo)\
**Post date:** [31 Maio , 2018 18:18 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/54 "2018-05-31T18:18:43Z")

</div>

Fiz download directo [daqui](https://github.com/dgomes/home-assistant-custom-components) e copiei só o compnente para dentro da pasta.

É preciso mais alguma coisa?

 ![wifi](https://forum.cpha.pt/uploads/default/original/1X/b442540773acc2213594960f0fca188ede4c11b0.jpg)

---

<div class="post-metadata">

**Author:** ![ricain](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/r/9fc348/32.png) [@ricain](https://forum.cpha.pt/u/ricain)\
**Post date:** [31 Maio , 2018 19:25 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/55 "2018-05-31T19:25:41Z")

</div>

Pois vi, mandei um mail para eles para saber a possibilidade de acrescentar 🙂

---

<div class="post-metadata">

**Author:** ![fonteshugo](https://forum.cpha.pt/user_avatar/forum.cpha.pt/fonteshugo/32/14286_2.png) [@fonteshugo](https://forum.cpha.pt/u/fonteshugo)\
**Post date:** [3 Junho , 2018 18:00 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/56 "2018-06-03T18:00:54Z")

</div>

Boas,  
está a dar o seguinte erro:

```
  Platform not found: weather.ipma
18:56 components/ __init__.py (ERROR)
Unable to find component weather.ipma
18:56 loader.py (ERROR)
Error loading custom_components.weather.ipma. Make sure all dependencies are installed
18:56 custom_components/weather/ipma.py (ERROR)
Unable to find component weather.ipma
18:56 loader.py (ERROR)
Error loading custom_components.weather.ipma. Make sure all dependencies are installed
18:56 custom_components/weather/ipma.py (ERROR)

```

Alguma solução?

---

<div class="post-metadata">

**Author:** ![Luis\_Martins](https://forum.cpha.pt/user_avatar/forum.cpha.pt/luis_martins/32/2180_2.png) [@Luis\_Martins](https://forum.cpha.pt/u/Luis_Martins)\
**Post date:** [3 Junho , 2018 18:13 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/57 "2018-06-03T18:13:47Z")

</div>

Estava a acontecer-me algo semelhante na versão 0.67 do HA. Depois de atualizar para 0.70 funcionou tudo direito

---

<div class="post-metadata">

**Author:** ![fonteshugo](https://forum.cpha.pt/user_avatar/forum.cpha.pt/fonteshugo/32/14286_2.png) [@fonteshugo](https://forum.cpha.pt/u/fonteshugo)\
**Post date:** [3 Junho , 2018 18:34 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/58 "2018-06-03T18:34:45Z")

</div>

Atualizei para a versão mais recente e continua a dar erros. falta-me instalar alguma coisa. Estou a correr o HA no ubuntu 16.04.

```
Unable to find component weather.ipma
19:32 loader.py (ERROR)
Error loading custom_components.weather.ipma. Make sure all dependencies are installed
19:32 custom_components/weather/ipma.py (ERROR)
```

---

<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:** [3 Junho , 2018 18:36 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/59 "2018-06-03T18:36:04Z")

</div>

aumenta o nivel de debug

```auto
logger:
  default: debug

```

---

<div class="post-metadata">

**Author:** ![Paulo\_Morgado](https://forum.cpha.pt/user_avatar/forum.cpha.pt/paulo_morgado/32/133_2.png) [@Paulo\_Morgado](https://forum.cpha.pt/u/Paulo_Morgado)\
**Post date:** [3 Junho , 2018 19:28 UTC](https://forum.cpha.pt/t/weather-platform-ipma/497/60 "2018-06-03T19:28:07Z")

</div>

pelo que percebi as estações que o IPMA tem disponíveis são estas

> **[IPMA - Observação de superfície horária com gráficos](https://www.ipma.pt/pt/otempo/obs.superficie/#Lisboa%20(Geof%C3%ADsico))**

se assim for isso fica muito genérico, pois no meu caso são muitos km de diferença

entretanto descobri estes

> **[Personal Weather Station Dashboard | Weather Underground](https://www.wunderground.com/dashboard/pws/ILISBOAP4)**
>
> Weather Underground provides local & long-range weather forecasts, weather reports, maps & tropical weather conditions for locations worldwide.

isto já é tanta gente a dar temperaturas e previsões que ate nos baralham

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

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