yahoo-weather-api

Get weather from Yahoo with jQuery

流过昼夜 提交于 2020-01-25 02:23:13
问题 I'm using the Google API to get a user's location on this site. How would I go about getting the weather for that user from Yahoo or somewhere? UPDATE : Ok so I'm going with Yahoo, but I've never done an HTTP GET request before. Im using jQuery and the following code: function getWeather () { $.get("http://weather.yahooapis.com/forecastrss?w=2502265", function(data){ alert("Data Loaded: " + data); }); } However, the alert is only returning "Data loaded", and the rest is blank, so I'm doing

YQL weather result is null in half the time

℡╲_俬逩灬. 提交于 2020-01-03 16:44:18
问题 Yahoo data sometimes fails to get data, "query.results is null or not an object" . This is happening to me to on Chrome 55.0.2883.87 and fierfox 50.1.0. This is the YQL i'm Using: http://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid = 2514815&format=json And the response: {"query":{"count":0,"created":"2017-01-01T22:27:51Z","lang":"en-US","results":null}} what do i do? ideas? 来源: https://stackoverflow.com/questions/41419617/yql-weather-result-is-null-in-half

Yahoo weather API giving errors for certain US lat/lng locations

丶灬走出姿态 提交于 2019-12-23 05:37:13
问题 I am creating pages about parks. For each park, there is a lat/lng and for most parks, I am able to use the Yahoo weather API But for some reason, some pages return errors like this: Invalid Input /forecastrss?w=2347563 After a call that I make like this to the Yahoo weather API: http://www.geomojo.org/cgi-bin/reversegeocoder.cgi?long=-121.433098&lat=40.509312 Any idea how I can resolve these sorts of errors? Here is my code: $url = 'http://www.geomojo.org/cgi-bin/reversegeocoder.cgi?long='.

How can I get Yahoo Weather Backgrounds from API?

放肆的年华 提交于 2019-12-14 01:44:43
问题 I have a weather widget, and I need dynamic backgrounds. Yahoo has weather APIs, but I'm not able to find the background image tied to a weather type. https://weather.yahoo.com/ Is this possible? var url = 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20location%3D%2248907%22&format=json' $.getJSON(url, function (data) { console.log(data) }) 回答1: The API doesn't provide any images, but you can use a lot of the data to provide an image yourselves. Use

HTTP-Based Public Key Pinning is deprecated warning when using Yahoo Weather API

痴心易碎 提交于 2019-12-11 10:16:37
问题 I'm trying to implement the basic Yahoo weather API JS example from https://developer.yahoo.com/weather/#js In chrome version 70, I'm getting the following warning: HTTP-Based Public Key Pinning is deprecated. Chrome 69 and later will ignore HPKP response headers. (Host: query.yahooapis.com) Is there another way I need to consume the API to avoid this warning? I've also tried like this but I got the same warning fetch("https://query.yahooapis.com/v1/public/yql?q=select wind from weather

Yahoo weather API, randomly returns old data?

旧城冷巷雨未停 提交于 2019-12-03 07:34:37
问题 I started using Yahoo's free weather API to get the weather data I need, but it seems each time I request a city weather data there is a chance that either I get updated data or old data from back to 1 to 8 days. Here is a simple URL which I make my request with: Click here to see a sample request The YQL query is simple, which requests the weather data for New York city: select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="New York") But each time I

Yahoo Weather Query by Latitude and Longitude

倖福魔咒の 提交于 2019-12-03 06:13:50
问题 I want to fetch some weather data via latitude and longitude using yahoo query. but it seems this query is not available now. the query is below: select * from weather.forecast where woeid in (SELECT woeid FROM geo.placefinder WHERE text="{lat},{lon}" and gflags="R") is this query is changed to new one or something? or it didn't exist anymore? last time I use this format was about 2 months ago and it worked well. but now it can't fetch any data. result from YQL console is as below: { "error":

Yahoo weather API, randomly returns old data?

时间秒杀一切 提交于 2019-12-02 22:31:04
I started using Yahoo's free weather API to get the weather data I need, but it seems each time I request a city weather data there is a chance that either I get updated data or old data from back to 1 to 8 days. Here is a simple URL which I make my request with: Click here to see a sample request The YQL query is simple, which requests the weather data for New York city: select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="New York") But each time I refresh that URL, I might get a completely different result. for example I did refresh it right now a

set different language in android studio

跟風遠走 提交于 2019-12-01 14:48:34
am new in android studio and I am trying to make my simple app weather info via yahoo weather service JSON data , i would like to make a different language display in my app , example English and Arabic am working on string.xml and i translate some words in main activity , am try translate condition Text to Arabic but not working , if there way on string ? i want translate on condition Text , i hope get answer withe code . my code if any one can help my package net.digitalphantom.app.weatherapp; import android.Manifest; import android.app.ProgressDialog; import android.content.Context; import

Yahoo Weather api JSON Icon

两盒软妹~` 提交于 2019-12-01 11:22:52
问题 So i would just like to know is it possible using the current Yahoo Weather API to display a better image than what the JSON response sends back within CDATA? JSON: Using the api i get the JSON response as example HERE. Current Image: Currently its windy and the image i get from API Json format CDATA looks like this: IMAGE Image i would like to show: What i would like is the nice images you can see here on the right side navigation: Yahoo Is this possible or is the image in json CDATA the