I'm having and issue with my weather machine that has had be scratching my head for some time. My geolocation is fine and my API returns the requested info fine, but I just can't figure out how to properly access the data and display it
Anyone think they can help out?
@AidenMead I'm not sure but can you put a link to your app here or show us your code?
@djangoearnhardt One thing I noticed is that you're calling jd.temp, and I think you need jd.main.temp. This page really helped me. https://openweathermap.org/current#current_JSON It took forever to figure out what I was looking at, but when I did, I was able to make everything work.
@mfukano Works for me. ;)
@TheTessaMurphy ahhh, i think i’ve updated the locations for my requests… and it won’t load into my <span>’s. i haven’t used .on(“load”) before, but I thought it was set up to work
@djangoearnhardt How come you're using onload instead of document.read?
sorry, meant document.ready.
i didn’t know about it lol @TheTessaMurphy
thank you though, that’s what I needed @TheTessaMurphy
djangoearnhardt sends brownie points to @thetessamurphy :sparkles: :thumbsup: :sparkles:
@yaycupcake The grid doesn't work how I want it to work. Whenever I tried positioning things next to each other, it just placed them under or above each other. So I had to do it the tedious way. For instance, if I wanted two pictures to be horizontally next to each other using col-md-1, it just put one image below the other. From my experience, the grid is woefully inefficient. I feel like I'm doing something wrong with it though.
@djangoearnhardt Very cool.
@JoshDeNovice You should try giving the images the class img-responsive. Also, if you have those three images and you want only them to be i that row, you should use .col-md-4 so they each take up 4 out of the 12 columns of the grid.
@yaycupcake Alright, I try it out and see how it goes.
why is the temperature on OpenWeatherMap API in the 200’s? what type of conversion is that?