home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.94k stars 30.52k forks source link

weather underground api #26564

Closed franmiele closed 4 years ago

franmiele commented 5 years ago

Description of problem: I have been having an issue using my weather undergroud info. My api key is valid. Weather Undergroud support tells metat in order for the api to work, your call needs to be to api.weather.com not api.wunderground.com.

ronytomen commented 5 years ago

@franmiele can you use the issues template for this repository issue tracker or at least post the relevant logs and system information (Version of Home Assistant).

franmiele commented 5 years ago

Sorry I didn't think you would need it for this issue.

HASSIO version 0.98.5

--Fran

IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

On Tue, Sep 10, 2019 at 7:53 PM Tony Roman notifications@github.com wrote:

@franmiele https://github.com/franmiele can you use the issues template for this repository issue tracker or at least post the relevant logs and system information (Version of Home Assistant).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/26564?email_source=notifications&email_token=AKW7OJXXB35O75N6FS7YXHDQJAXORA5CNFSM4IVM2752YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6M2MBI#issuecomment-530163205, or mute the thread https://github.com/notifications/unsubscribe-auth/AKW7OJRKY3I3TNKUMD5X463QJAXORANCNFSM4IVM275Q .

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

prsveloso commented 4 years ago

I can´t use the component also. The WU API has changed: https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit I´m running latest version of Home Assistant (0.103.0) and using a valid API Key from WU. Log says: "Platform wunderground not ready yet. Retrying in 180 seconds." "Check WUnderground API ('this key does not exist',)"

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

TheMrAnderson commented 3 years ago

Same as others. There's a custom component that uses the correct URL, but I'd rather use the HA core component. https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit is the documentation for the "new" API. Since this is only available for users with a PWS, I got a PWS to switch to Weather Underground since Apple purchased DarkSky and will be shutting the API down in 2021. If I can assist in any way, let me know.

HrGaertner commented 3 years ago

I have the same problem. @TheMrAnderson which custom componenet do you mean? I' d like to have something as long as this does not work

Thanks a lot

P.S: Wouldn't it be enough to simply change the URL? And make PWS required

TheMrAnderson commented 3 years ago

@HrGaertner https://github.com/cytech/Home-Assistant-wundergroundpws is the custom component I was referring to.

I've got the Ambient Weather integration so I can use current conditions off my PWS, but I'd like to also have forecasts. Unfortunately it's not a simple API change. IBM purchased Weather Underground and made it part of their umbrella, which for forecasts is awesome because they are working on making hyper-local extremely accurate forecasts. However, they have about 6 different endpoints for the data being requested. Current is one endpoint, forecasts can only be requested in blocks of I think 3 days so if you want a 5 day forecast you have to make 2 api calls, plus current you are looking at 3 calls. I've forked the repo and am trying a few different options to try to get this working.

HrGaertner commented 3 years ago

Great! To be honest. Czrrent would be enough for me

Am Donnerstag, 17. Dezember 2020 schrieb Mr. Anderson:

@HrGaertner https://github.com/cytech/Home-Assistant-wundergroundpws is the custom component I was referring to.

I've got the Ambient Weather integration so I can use current conditions off my PWS, but I'd like to also have forecasts. Unfortunately it's not a simple API change. IBM purchased Weather Underground and made it part of their umbrella, which for forecasts is awesome because they are working on making hyper-local extremely accurate forecasts. However, they have about 6 different endpoints for the data being requested. Current is one endpoint, forecasts can only be requested in blocks of I think 3 days so if you want a 5 day forecast you have to make 2 api calls, plus current you are looking at 3 calls. I've forked the repo and am trying a few different options to try to get this working.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/home-assistant/core/issues/26564#issuecomment-74770461

HrGaertner commented 3 years ago

Look at #36286 that issue is still open

TheMrAnderson commented 3 years ago

@HrGaertner for current you can use the Ambient Weather integration if you have your PWS sending data to Ambient Weather. I just saw that yesterday and have integrated it for my current weather. Still need forecasts moved over, but that's one step closer.

HrGaertner commented 3 years ago

Thanks a lot! Unfortunatly my pws only supports wunderground or weathercloud.net

Now i just use the custom component

Am Freitag, 18. Dezember 2020 schrieb Mr. Anderson:

@HrGaertner for current you can use the Ambient Weather integration if you have your PWS sending data to Ambient Weather. I just saw that yesterday and have integrated it for my current weather. Still need forecasts moved over, but that's one step closer.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/home-assistant/core/issues/26564#issuecomment-74808187

stefferber commented 3 years ago

Please use wundergroundpws instead

edegraaff commented 3 years ago

@HrGaertner https://github.com/cytech/Home-Assistant-wundergroundpws is the custom component I was referring to.

I've got the Ambient Weather integration so I can use current conditions off my PWS, but I'd like to also have forecasts. Unfortunately it's not a simple API change. IBM purchased Weather Underground and made it part of their umbrella, which for forecasts is awesome because they are working on making hyper-local extremely accurate forecasts. However, they have about 6 different endpoints for the data being requested. Current is one endpoint, forecasts can only be requested in blocks of I think 3 days so if you want a 5 day forecast you have to make 2 api calls, plus current you are looking at 3 calls. I've forked the repo and am trying a few different options to try to get this working.

Hi , i deliver data from my station to wu, and i have an key, willing to test to get this working again.

MirandaPoth commented 3 years ago

I also deliver data from my station to wu and I have a key, I'm also willing to test

stefferber commented 3 years ago

The Home Assistant standard Integration "weather underground" does not work any more, as the provider changed the API. You have to switch to https://github.com/cytech/Home-Assistant-wundergroundpws

Pennarddog commented 3 years ago

I have used the new integration from cytech ..but HA is still calling to the old API and of course failing ... Screenshot 2021-01-17 at 11 03 29 ..I can't figure out why it is calling the old integration ..and I can't find the 'components' folder (not custom components).

Pretty sure I am calling the 'new' integration -wundergroundpws and not the old one wunderground ...

My configuration.yaml is:

Wunderground

sensor:

stefferber commented 3 years ago

Could you please post the configuration.yaml with "insert code" in order to find syntax errors. This is one is working for me

sensor:
  - platform: wundergroundpws
    api_key: <my api key>
    pws_id: IBADENWR90
    monitored_conditions:
    - humidity
    - temp
    - dewpt
    - heatIndex
    - windChill
    - precipRate
    - precipTotal
    - pressure
    - windGust
    - windSpeed
    - weather_1d
    - weather_1n
    - weather_2d
    - weather_2n
    - weather_3d
    - weather_3n
    - weather_4d
    - weather_4n
    - weather_5d
    - weather_5n
    - temp_high_1d
    - temp_low_1d
    - wind_1d
    - precip_1d
    - precip_chance_1d
    - winddir
    - neighborhood
    - obsTimeLocal
    - stationID
    - elev
    - today_summary

There is no data for neighborhood transmitted.

I get two warning after starting HACS

Logger: homeassistant.loader
Source: loader.py:465
First occurred: 16. Januar 2021, 22:36:15 (1 occurrences)
Last logged: 16. Januar 2021, 22:36:15

You are using a custom integration for wundergroundpws which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
Logger: custom_components.wundergroundpws.sensor
Source: custom_components/wundergroundpws/sensor.py:439
Integration: wundergroundpws (documentation)
First occurred: 16. Januar 2021, 22:38:14 (30 occurrences)
Last logged: 16. Januar 2021, 22:52:45

Failed to expand cfg from WU API. Condition: winddir Attr: value Error: TypeError("int() argument must be a string, a bytes-like object or a number, not 'NoneType'")
Pennarddog commented 3 years ago

I have used the new integration from cytech ..but HA is still calling to the old API and of course failing ...

Screenshot 2021-01-17 at 11 03 29
stefferber commented 3 years ago

Could you please post the configuration.yaml with "insert code"in order to find syntax errors.

Pennarddog commented 3 years ago

`

Configure a default setup of Home Assistant (frontend, api, etc)

default_config:

Text to speech

tts:

automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml

Wunderground

sensor:

group: weather_overview: name: Weather overview entities:

` I still seem to have calls to the old api