Smarthome: Yahoo Binding - Yahoo weather API now uses OAUTH

Created on 26 Mar 2016  路  3Comments  路  Source: eclipse-archived/smarthome

According to https://developer.yahoo.com/weather/, Yahoo has begun requiring OAuth 1 for their weather data source, resulting in a HTTP 401 response with the content:

<yahoo:error xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xml:lang="en-US" yahoo:uri="http://yahoo.com">
  <yahoo:description>
    Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"
  </yahoo:description>
  <yahoo:detail>
    Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"
  </yahoo:detail>
</yahoo:error>

In, fact, while looking into this, I wondered if the RSS feed http://weather.yahooapis.com/forecastrss should be used at all, considering the API at https://query.yahooapis.com/ allows queries which can be written to use lookup woeid by City or Latitude/Longitude

Most helpful comment

Despite that note at https://developer.yahoo.com/weather/, this query continues to work without OAuth credentials (for some reason). And unless Yahoo! has since reinstated it, they took away the ability to convert lat,long into a woeid several weeks ago.

All 3 comments

Despite that note at https://developer.yahoo.com/weather/, this query continues to work without OAuth credentials (for some reason). And unless Yahoo! has since reinstated it, they took away the ability to convert lat,long into a woeid several weeks ago.

Thanks for the hint, @watou. I have adapted the binding in #1275 accordingly.
Let's hope that Yahoo keeps this url working without authentication.

Have you Found solution for this ,i stucked in the same well,pls help me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sjsf picture sjsf  路  7Comments

doandzhi picture doandzhi  路  6Comments

kaikreuzer picture kaikreuzer  路  9Comments

kubawolanin picture kubawolanin  路  3Comments

martinvw picture martinvw  路  11Comments