Questions tagged [openweathermap]

A free online service for retrieving weather data

OpenWeatherMap is a free online service for retrieving weather data, inspired by .


Useful links

848 questions
49
votes
6 answers

How do I calculate the temperature in celsius returned in openweathermap.org JSON?

I'm getting the weather for a city using openweathermap.org. The jsonp call is working and everything is fine but the resulting object contains the temperature in an unknown unit: { //... "main": { "temp": 290.38, // What unit of…
33
votes
20 answers

How to display openweathermap weather icon

I am using openweathermap to display weather reports. Everything is working fine but there is a problem with the icon. The JSON response code is: Array ( [city] => Array ( [id] => 1271476 [name] => Guwahati …
Ajay Krishna Dutta
  • 722
  • 2
  • 7
  • 21
19
votes
3 answers

How to get country name from country code in javascript

I am building a weather website, and I want to display the country name for the given location but my API request to openweathermap only returns country code. So is there a way to convert the country code to country name from javascript itself or I…
ulmas
  • 517
  • 1
  • 5
  • 15
14
votes
8 answers

Value null of type org.json.JSONObject$1 cannot be converted to JSONObject

I'm getting this exception error when using the OpenWeatherMap API. I'm just trying to get the result to be an JSONObject, but null keeps coming up. @Override protected void onPostExecute(String result) { super.onPostExecute(result); …
SmiffyKmc
  • 801
  • 1
  • 16
  • 34
12
votes
9 answers

Using OpenWeatherMap API gives 401 error

I'm trying to get the weather data for London in JSON but I am getting HTTPError: HTTP Error 401: Unauthorized. How do I get the API working? import urllib2 url =…
hky404
  • 1,039
  • 3
  • 17
  • 35
9
votes
1 answer

How to change description language in OpenWeatherMap api in android

In my application, I want to use OpenWeatherMap API to show cities weather info. For this, I want to change description language to Farsi. I get this with OpenWeatherMap help and I write below URL…
RedBounce
  • 213
  • 5
  • 14
8
votes
5 answers

JSON returning with "\" (Lambda)

I am using AWS Lambda to get JSON from the open weather api and return it. Here is my code: var http = require('http'); exports.handler = function(event, context) { var url =…
JamesG
  • 1,552
  • 8
  • 39
  • 86
8
votes
2 answers

Cannot resolve symbol c882c94be45fff9d16a1cf845fc16ec5

I am a new developer exploring the world of Android. I am currently working through the Udacity tutorials for creating the Sunshine app. In the fragment activity class in order to get data from openweathermap I must add the API key I got from my…
Kevin Rajan
  • 827
  • 8
  • 28
8
votes
3 answers

OpenWeatherMap returns incorrect current weather

I'm trying to implement an iphone app and i'm integration OpenWeatherMap to retrieve the current weather. However, I've noticed the data returned is incorrect (off by about 39 degree Fahrenheit). Below is the JSON URL i'm using to retrieve current…
Loc Pham
  • 619
  • 1
  • 6
  • 18
7
votes
1 answer

Error using Retrofit Builder in Android app: java.lang.NoSuchMethodError: No static method metafactory

I am trying to get current weather from an API, and for some reason, when I am trying to create a Retrofit object, it returns me an error: Process: com.api.weather_api_training, PID: 8417 java.lang.NoSuchMethodError: No static method…
7
votes
2 answers

Google Maps Javascript API with an OpenWeatherMap Tile Layer Overlay

How can I overlay an XYZ tile set (something like this) on Google Maps API 3? I want to overlay weather data (cloud cover...etc). Feel free to use my OpenWeatherMaps URL to test it…
7
votes
1 answer

How to use OpenWeatherMap API for Javascript?

I am trying to create a weather app with OpenWeatherMap API for javascript. The code for my web app is : Weather