I threw it up on my website as well as on codepen, but crossorigin.me shows weather information for New York since that is the originating ip. So please check it out on my website!
Hi everyone, I just started yesterday the weather project, but Iām a bit stuck at the stage of getting the data back Open Weather. For some reason, I canāt pass the latitude and longitude parameters in the url and I donāt get whatās wrong there.
Throwning my project into the mix. Spent quite a lot of time on it and am pretty pleased with the outcome. Was held back for a while owing to issues with http/https. I am aware that some of the background images arenāt properly sized for desktop, so will have to fix that
I love arts but couldnāt do enough here. Felt I messed the whole thing up trying to play around. Still having issues with bootstraps and position of elements.
This looks awesome! Super clean, super functional, and fairly minimalist. (Which I personally like in terms of design!) I have no technical comments, all of the code looks decent to my newbie eyes and everything seems to work as it should.
I did want to ask thoughāwhatās the advantage of using Materialize over something like Bootstrap and why do you like Materialize? (I briefly looked over the documentation and it looks very similar, but again, not in any kind of detailā¦)
To paraphrase Tim Gunn paraphrasing Lucille Ball, Materialize is kind of a case of āIf thatās the look you want, you just saved a ton of work.ā Bootstrap, with zero customization, looks like Twitter. Materialize, with zero customization, looks like a Google product. But I find that, if youāre not looking to customize, Materialize takes even less coding, in other words it has more baked in. For instance, I often want content in a nice little box, horizontally and vertically centered, and appropriately padded. In Materialize, just call it a ācardā and youāre done!
hi i m facing some problems with retrieving the data. i think the issue lies with my .getJSON method however i cant spot my mistake. can anyone advise?
This project transformed over the course of the long hours that I worked on itāI started by using an IP API to get the location and then put that into a weather API, then I decided nah, I want it to work on phones, so then I scrapped that and used geolocation instead. A couple of fun functionalities:
If geolocation is not enabled, itāll tell you that. Itāll also tell you to go to https:// if youāre not browsing over a secure connection.
3-day future forecast with the icons, highs, lows, and chance of precipitation. If you look at it between 12am-6am, your forecast show later that day as the first day (so if itās 4am on a Sunday, Sunday will still show up as the first day in the forecast).
I liked the look of having both F and C buttons, so I didnāt do the toggle feature. But when you click on one, all of the temperatures will change, so at least I have that going for me?
Comments, suggestions, and critiques are all welcome! I have a few things I wanted to include, but Iām tired of staring at it for the time being and Iām proud of what Iāve learned and accomplished, so itās complete for now.
Not sure if this is the only issue or not, but your getLocation function isnāt recognizing temp_c and temp_f as variables. (You can tell because theyāre not blue.)
I think (correct me if Iām wrong), the other blocks are supposed to be displaying information right now and theyāre not. This indicates, as you hypothesized, that thereās probably something wrong with getting the JSON file in the first placeāhave you tried retrieving a JSONP instead of a JSON? Or using crossorigin.me or similar COORS service. Not sure how weatherunderground works but sometimes websites donāt like getting requests from websites that are hosted on other servers so you have to work around that. Thereās a lot of threads on here about both of those, and Google is your best friend.
Hereās my very simple Weather App for your thoughts and feedback please. I expect to keep plugging away at it as I learn more and get more comfortable with all aspects of Front End Development - http://codepen.io/marvokdolor/full/mExkpr/
Itās not that theyāre reversed per se. Itās just that for some reason I thought that it would be more natural to put them in that order back then. Now that I think about it, it may make more sense to have the current unit be next to the temperature. Thx for the feedback.