Skip to main content

Questions tagged [openweathermap]

A free online service for retrieving weather data

openweathermap
Filter by
Sorted by
Tagged with
0 votes
2 answers
18 views

Re-render a OpenWeatherMap component when switching language in Vue 3

I am a beginner using Vue 3, to learn it I am developing a simple weather webapp using OpenWeatherMap API. I have added multilanguage support using vue-i18n library and everything works fine. But ...
feub's user avatar
  • 549
-1 votes
0 answers
55 views

My Weather app using OpenWeather and SQLAlchemy isn't saving data to the database properly?

I'm developing a Python application that retrieves weather data from an API and attempts to save it to a SQLite database using SQLAlchemy. Despite configuring the database correctly and implementing ...
Alex Goodwin's user avatar
0 votes
0 answers
22 views

Time zone problem with OpenWeatherMap App

I'm working on a basic weather app that takes a US zip code and gives the 5 day forecast including "today" based on the particular zip code's "today" regardless of where the app ...
David Shaheen's user avatar
0 votes
0 answers
46 views

Facing Authorization Issues When Fetching Current Weather Data Using OpenWeather API in NodeJS Express

I am attempting to develop a weather website project using NodeJS Express and Axios, integrating the OpenWeather API to retrieve current weather data. However, I'm encountering authorization issues ...
Khadija Gharatkar's user avatar
0 votes
1 answer
52 views

I want to include the API from weatherOpenMap in my website to show the weather dynamic icon based of that but it doesn't show up

I included this in my html header: <script src="main.js"></script> and this is in my weather section: <div class="weatherIcon"> <h2><span ...
Reyhane Abbasi's user avatar
0 votes
1 answer
35 views

Openweathermap > json / fetch / property is not always available resulting in undefined

I'm trying to get this to work: (removed app id) fetch('https://api.openweathermap.org/data/2.5/weather?lat=39.561937&lon=2.936562&appid=XXX&units=metric&lang=de') .then(data =&...
Kees's user avatar
  • 3
0 votes
0 answers
9 views

Time on OpenWeather

I was making a system where it automatically saves the temp and the time when the temp was at. The thing is, since im new, I don't know how to get the time, ive been struggling alot. Thank you! I don'...
Mager's user avatar
  • 1
0 votes
1 answer
38 views

The method '[]' was called on null. Flutter weather app

I have some error: I/flutter (30216): NoSuchMethodError: The method '[]' was called on null. I/flutter (30216): Receiver: null I/flutter (30216): Tried calling: [](0) There is my main.dart code: ...
Stepan Volkov's user avatar
0 votes
0 answers
15 views

OpenWeatherMap measurments get request returns empty array right after sending data

Trying to work my personal weather station into an OpenWeatherMap station, but when I try to check the data, it returns an empty array I tried using cURL and Python, but to no avail either way curl -X ...
Veillax135's user avatar
1 vote
1 answer
137 views

Is there a way to get past precipitation data in OpenWeatherMap API?

Using OpenWeatherMap API (onecall 2.5), using 6 days of previous weather data in a certain area, why is there no precipitation in the JSON data? Is there any data for this, and if there is, how do I ...
Parking Master's user avatar
0 votes
4 answers
95 views

How can I retrieve an icon from an object/array?

I'm currently working on a project where I need to extract an icon from an object or an array. However, I'm encountering difficulties in doing so. My approach involves storing the icon in a variable ...
Mirza Šabanović's user avatar
1 vote
1 answer
42 views

Nextjs weather app trying to call api. Not sure what I'm doing wrong. I get unauthorized error

Am I doing the api handling right? Or is there something I'm missing? This was originally a create react app project and now I'm trying to migrate to nextjs so maybe I'm missing something with how api ...
Marco Antonio Martinez's user avatar
0 votes
0 answers
24 views

Statistics from API calls in Google Sheets

I am a beginner to programs like Google Sheets or Excel and am currently trying to create a spreadsheet that keeps tally of average temperature and weather data in various cities. It updates daily. It ...
KeiI_Ishiyama's user avatar
0 votes
0 answers
38 views

Passing LON and LAT while using AXIOS to handle multiple API requests

I have an ok understanding at using node and axios to make api requests. The only issue I'm having right now is that I've retrieved the city name a user types and I'm trying to pass lon and lat based ...
Mapopo2's user avatar
2 votes
3 answers
113 views

SwiftUI not updating UI after fetching data automatically from OpenWeather API

I'm facing an issue in my SwiftUI project where the UI is not updating automatically after fetching data. I have a WeatherViewModel fetching weather data for multiple locations, and the UI doesn't ...
Nkanga's user avatar
  • 21
0 votes
0 answers
30 views

Call to Open Weather API using MATLAB's pyrun functionality leads to an error

The system makes a forecast of the weather based on historical data in a region. The system uses AI in order to train the weather forecast with the actual weather results. The actual weather results ...
bennibloo's user avatar
0 votes
1 answer
48 views

Not printing out the forecast

I have been working on this code for a while now and I keep getting caught in a loophole, it is a weather app with API; here is the code: All the links are linked correctly. The four days forecast ...
Peace Akaehomen's user avatar
0 votes
2 answers
33 views

Displaying different messages based on data from WeatherAPI in React

I've been trying to display different messages when data from the OpenWeatherAPI (Current Weather version) gets passed in. I want a message for the different temperature and a message displayed for ...
Mary Oreofejesu Imarenezor's user avatar
-1 votes
1 answer
185 views

Cod: 401 'message' invalid API key using open weather API [closed]

I am trying to build a weather app and anytime I try to search for a city it shows undefined and humidity and windspeed values do not change. Also I get Cod:401 invalid API key error. I have tried ...
Emeka a1's user avatar
0 votes
1 answer
119 views

Python + OpenWeatherMap + Flet: 'daily' error

I tried to make my small weather app, following the tutorial, but faced with a problem: OpenWeatherMap wouldn't give me a name of the day (watch the tutorial from my timecode to see my wanted result). ...
Vlach's user avatar
  • 1
0 votes
0 answers
54 views

API unable to fetch temperature

I want to show the temperature from ma current location. I have put my files on the server; unblocked the location on GoogleChrome. I have subscribed to OpenWeatherMap and copy paste the correct ...
cythan's user avatar
  • 1
0 votes
0 answers
44 views

java.lang.NullPointerException:Parameter specified as non null is null: method WeatherEntityMapper.mapWeatherEntityToWeatherData

The issue occurs in my mapper class mapWeatherEntityToWeatherData,where I made weatherEntity an instance of WeatherEntity none of the values are null even from the API: object WeatherEntityMapper { ...
robson idongesit samuel's user avatar
0 votes
1 answer
113 views

How to pass data from an API to flutter UI

I'm trying to pass data to a flutter user interface from the open weather API. I think it has something to do with where I am initializing the city name variable as it gets rebuilt every time I ...
The Synergist's user avatar
0 votes
3 answers
126 views

Cannot make React axios work when doing two GETs in a row [duplicate]

I am working with OpenWeatherMap in order to grab the current weather of, say, Helsinki. My latest MNWE (N as non) is: import axios from 'axios' const apiKey = import.meta.env.VITE_OWM_API_KEY const ...
coderodde's user avatar
  • 925
1 vote
1 answer
50 views

How to modify openweathermap JS to use latitude longitude values

I recently posted another question about the following JS openweathermap weather app i'm re-purposing. This is a follow up question to that. https://codepen.io/stack-findover/pen/vYgQrPP Currently, ...
KHSharon's user avatar
0 votes
0 answers
63 views

Get Svg from openweatherapi

Currently I'm working on a weather app project in nextjs with openweathermap API. From the API i get icons which i can combine with this URL: https://openweathermap.org/img/wn/ to get the icons. Here ...
Flurin07's user avatar
0 votes
0 answers
22 views

In Angular,openWeatherMap

how to solve api key poroblems in the open weather map i try to get the city and min and max temperature and i expected also. the values came in the browser but not came the console why? the error is ...
Surya R's user avatar
0 votes
0 answers
58 views

OpenWeatherMap incorrect current weather temperature

Ive used a about a year both openweathermap, and weatherapi free plans. Most of the time they both work perfectly. But recently start notice that result between both providers didnt match at all ...
psyskeptic's user avatar
0 votes
0 answers
15 views

In Angular, the openWeatherMap some errors in the console

api.openweathermap.org/data/2.5/weather?lat=11.01&lon=76.95&appid=fc71701585d65027375c8517dadebf21:1 Failed to load resource: net::ERR_FAILED above this error is came in the console and how ...
Surya R's user avatar
0 votes
1 answer
101 views

How can I modify JS Openweathermap temperature values

I'd like to repurpose the following openweathermap JS weather app for my work project: https://codepen.io/stack-findover/pen/vYgQrPP The app defaults the temperature value to Celsius, and i'd like to ...
KHSharon's user avatar
0 votes
0 answers
30 views

Openweather One Call 3.0 deserializeJson() failed with code InvalidInput

Good Day! I'm working on N IoT smart irrigation system that uses weather forecast. If the chance of precipitation is 80% or more in an hour, it does not irrigate and so on. How do I get the data from ...
Ferdinand Marcos's user avatar
0 votes
0 answers
20 views

Openweathermap api response index out of bounds

My Android app is calling the openweathermap geo coding API endpoint with a city name to get its coordinates which are then used to call the onecall endpoint. I am quite certain the error I am getting ...
user19334054's user avatar
0 votes
1 answer
235 views

OpenWeather API latitude and longitude is not returning the correct location

I want to be able to look up a city and get the weather information, but with the OpenWeatherMap API, the Geocoding doesn't give the weather information. It does give the latitude and longitude, so I ...
FroggyGroggy's user avatar
1 vote
1 answer
179 views

Exception: Failed to load weather data occurred (Flutter)

I developed a weather forecast app in Flutter, but when I run it on my cell phone (Android), it shows the error on the screen: "Exception: Failed to load weather data occurred"; and in the ...
Jeferson Olivaras's user avatar
0 votes
1 answer
86 views

Single Word City name like "California" shows result but double word "New York" doesn't

This is a PHP & JS based web page that represents a weather website. When I enter any string that contains one word, whether it is a valid city name or not, it provides a result. But when I input ...
Aamir M Zobayer's user avatar
0 votes
0 answers
95 views

Openweathermap API unable to fetch on Android Studio

I'm working on an Android app and trying to fetch weather data using the OpenWeatherMap API. My code runs without errors, but I'm not getting the expected data. I've checked my API key, URL, and ...
kingslayer's user avatar
-1 votes
2 answers
94 views

Trouble Parsing JSON from OpenWeatherMap API in Flutter

I'm a beginner in Flutter and I'm facing an issue while working on a weather application, which I'm using as a learning project. When I make a call to the OpenWeatherMap API, I encounter an error when ...
Julie Pouny's user avatar
-1 votes
2 answers
60 views

openweathermap API can't fetch React.js

I have a problem with my weatherApp, the first API is working and I'm getting all of the data, but I also want to include air pollution but this isn't working, I have the coordinates its asking for ...
Diego Callegari's user avatar
0 votes
0 answers
116 views

How to convert temperature units {Celsius-->Kelvin, etc} from weather API on toggle

I am using Openweather API , to fetch data like units, weather report, etc. I am trying to create a toggle where the temp changes on clicking as per the toggle button. Like Celsius to Kelvin, etc. In ...
MaCS's user avatar
  • 3
0 votes
1 answer
56 views

Remove previous data when entering another input

Data just adding up to previous result. I want to remove the previous one when inputting another city. I use openweather API. I made refresh button to reload the page before entering another input. ...
josh's user avatar
  • 1
0 votes
0 answers
26 views

Error with using json openweathermap ['daily'] (python, flet)

New update, i tink, openweathermap, so i cant use ['daily'] in my json datas and i cant find the documentation that will give ,me answer here is example: src=f"./assets/icon/{_current.json()['...
GlowyStar's user avatar
0 votes
0 answers
49 views

Power Bi visual in landing page (wx radar)

I embedded the weather radar in a visual on the landing page. Used to work now the map won't load in Power Bi. Here is the link I used in the Embed code section. When using CHROME browser it works, ...
Ron2020's user avatar
  • 13
1 vote
1 answer
93 views

How can I display data from API weather?

I have tried to display data from API weather in my code. The problem is I don't know how to start. In this case do I need use useEffect? Or maybe event handlers? import { useEffect, useState } from &...
MrBiedny's user avatar
0 votes
0 answers
79 views

How can I load UrlTIle in react native maps smoother when changing urlTemplate

Hello I am also facing this issue in react native maps expo. I am using slider, the slider shows the weather image on google maps with 1 hour step. but the issue I am facing is it takes 2-3 seconds to ...
Khubaib Idrees's user avatar
0 votes
1 answer
54 views

React Error Failed to execute 'getCurrentPosition' on 'Geolocation'

import "./App.css"; import { useState, useEffect } from "react"; function App() { const [lat, setLat] = useState(null); const [long, setLong] = useState(null); const [data, ...
Abhay Kumar's user avatar
0 votes
1 answer
113 views

How to change background automatically depending on weather?

I am building a current weather app using the openweathermap API in Kotlin and would like the background to change depending on the state of the weather, e.g. in winter when it snows, the background ...
KuS-'s user avatar
  • 1
1 vote
1 answer
108 views

Python JSON format API dictionary help. 'Expected expression Pylance' error

I am trying to understand how to parse and only return specific data on the JSON dictionary of a weather API. I have two files, the main file has the JSON request data = json.loads(request.get(url)....
Charnel's user avatar
  • 19
0 votes
1 answer
267 views

Trouble with Slash Command Previews in Discord Bot Development

I've just started coding Discord bots using Python, and I've managed to get my bot up and running. However, I've encountered an issue with slash command previews that I can't seem to resolve. The bot ...
A_normal_guy's user avatar
0 votes
2 answers
313 views

Error when fetching data from OpenWeatherMap while hosting on Github Pages

I am pretty new to coding and I wanted to code a weather website. So I am using the OpenWeatherMap API. Everytime I wanna fetch the data from this API, I am getting the following error: https://i....
Finn Luca Jensen's user avatar
0 votes
0 answers
169 views

Incorrect weather in OpenWeatherMap

OpenWeatherMap displays incorrect weather, help to find the error. My code should output the weather in the telegram bot for every three hours of today, but it outputs incorrect data from ...
niobium04's user avatar

1
2 3 4 5
18