weather-api

How to use openweathermap api key? [closed]

点点圈 提交于 2019-12-06 03:13:23
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I have openweathermap api key , but how can I use it in PHP ? and the weather report should be report from a city name, not from the location weather ID 回答1: How to use API key Add the following parameter to the GET request: APPID=APIKEY Example: api.openweathermap.org/data/2.5

Open weather API

孤街浪徒 提交于 2019-12-05 18:48:07
So, I'm making a bunch of webpages for different communities, and on each I want to have a little weather box that I can customize, just with the name of the town, the current temperature, and the current weather condition. I want to be able to style it all exactly how I want. I found this site called Open Weather Map that seems to do exactly what I want. The problem is that I don't know how to use JSON. It's probably easy, but I seem to have gotten lost on any online tutorials I've tried. This is an example of a URL for the page, that loads some JSON. http://api.openweathermap.org/data/2.5

How to use weather api in c# [closed]

巧了我就是萌 提交于 2019-12-05 06:14:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I want to implement weather information which will show me results that depends on my longitude and latitude. My app is getting coordinates from GPS so getting them is not a problem. Only thing is, I want to show some weather information for the city that is nearest me and that it has weather info. Can you give

Using OpenWeatherMap API Key

﹥>﹥吖頭↗ 提交于 2019-12-05 02:24:32
问题 I get Exception "http://api.openweathermap.org/data/2.5/weather?q=Sydney". Can someone please help how to use it. Works fine with the web browser when i paste the following http://api.openweathermap.org/data/2.5/weather?q=Sydney&APPID=ea574594b9d36ab688642d5fbeab847e I tried the following combination as well but no luck connection.addRequestProperty("x-api-key", "&APPID=cea574594b9d36ab688642d5fbeab847e"); private static final String OPEN_WEATHER_MAP_API = "http://api.openweathermap.org/data

Android, Can't get weather from google api

只愿长相守 提交于 2019-12-04 16:15:56
The following code work well before: class RetreiveWeatherTask extends AsyncTask<Bundle, Void, WeatherData> { private static final String TAG = "WeatherManager"; @Override protected WeatherData doInBackground(Bundle... params) { Utils.log(TAG, "start get weather"); WeatherData weatherData = new WeatherData(); Bundle b = new Bundle(params[0]); double latitude = b.getDouble(REF_LAT); double longtitude = b.getDouble(REF_LONG); try { StringBuilder weatherBuilder = new StringBuilder(); //weatherBuilder.append("http://www.google.com/ig/api?hl=zh-cn&weather=,,,"); weatherBuilder.append("http://www

Historical weather data from NOAA

做~自己de王妃 提交于 2019-12-04 11:33:09
问题 I am working on a data mining project and I would like to gather historical weather data. I am able to get historical data through the web interface that they provide at http://www.ncdc.noaa.gov/cdo-web/search. But I would like to access this data programmatically through an API. From what I have been reading on StackOverflow this data is supposed to be public domain, but the only place I have been able to find it is on non-free services like Wunderground. How can I access this data for free?

How to use openweathermap api key? [closed]

与世无争的帅哥 提交于 2019-12-04 08:10:50
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 5 years ago . I have openweathermap api key , but how can I use it in PHP ? and the weather report should be report from a city name, not from the location weather ID How to use API key Add the following parameter to the GET request: APPID=APIKEY Example: api.openweathermap.org/data/2.5/forecast/city?APPID= YOURAPIKEY & what ever you want to request. <?php $request = 'http://api

Google Weather API returns HTTP 403 Error

戏子无情 提交于 2019-12-04 06:46:39
问题 I use the Google weather API in my web site, and today I get an error that the API link doesn't return any data. When I check the link directly I get an (Error 403). Here is the link. Can anyone please tell me a solution for this and provide me another link for the API? 回答1: Every now and then the API stops working for short periods of time, the last days more often a 403 is trown. For my site, last night it happened 13 times. But the site tries immediately again and the second or third time,

How to use weather api in c# [closed]

落爺英雄遲暮 提交于 2019-12-03 22:20:15
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I want to implement weather information which will show me results that depends on my longitude and latitude. My app is getting coordinates from GPS so getting them is not a problem. Only thing is, I want to show some weather information for the city that is nearest me and that it has weather info. Can you give me some ideas and solutions. What do you think about google weather API? How to make this

Using OpenWeatherMap API Key

…衆ロ難τιáo~ 提交于 2019-12-03 21:05:45
I get Exception " http://api.openweathermap.org/data/2.5/weather?q=Sydney ". Can someone please help how to use it. Works fine with the web browser when i paste the following http://api.openweathermap.org/data/2.5/weather?q=Sydney&APPID=ea574594b9d36ab688642d5fbeab847e I tried the following combination as well but no luck connection.addRequestProperty("x-api-key", "&APPID=cea574594b9d36ab688642d5fbeab847e"); private static final String OPEN_WEATHER_MAP_API = "http://api.openweathermap.org/data/2.5/weather?q=%s"; public static JSONObject getJSON(String city) { try { URL url = new URL(String