I am creating a weather app using OpenWeather API.
I am using the location sensor to get user coordinates to get the weather of that particular region. However, it results in a runtime error.
WeatherApp1.aia (2.1 MB)
I am creating a weather app using OpenWeather API.
I am using the location sensor to get user coordinates to get the weather of that particular region. However, it results in a runtime error.
WeatherApp1.aia (2.1 MB)
I think you should use responseContent instead of responseCode in the lookup in pairs blocks.
Set If response code is 200 not greater or iqual 400
You completely changed your blocks. Why did you do that?
We have a lot of topics about using the OpenWeather API. Maybe look at how others did it.
Use response, not response content in your list selection blocks
I'm now trying to get the user to type in the region and the latitude and longitude coordinates are found, then using the coordinates, it finds the weather corresponding it. I'm wondering if I have done something wrong because it doesn't seem to work as expected.
Try these, and show us the two response contents.
By the way, if your response is wrapped in [], its a list and your path should start with 1 for selecting item 1.
I added an image that reflects the weather conditions but it is pretty small, yet it shifts all my texts down. Is there anyway to control the sizing and also prevent it from pushing the words below down?
In the Designer, change the Height of the image to 10% of the Screen Height.
Tweak to taste.