+ 1
weather app
Anyone can help me to code weather app like if the temp is colder than 50, use a light blue to indicated the cold and if greater than 50 , make the background a yellow? temp of new jersey , us
27 Réponses
+ 1
got it. u have class now , i will check the code after class and let u know. thank my prodessor ^^
+ 1
yeah. i got it. i just put else} . so this code only check the zip code that i want to check location . right. i put my city in html , and if i set anothet zip code it still show my city ^^
0
Where would be getting temperature data? User input or dynamic?
0
the temp of New Jersey , usa my professor ask use JSON to do it.
0
use openweathermap api. Here
https://openweathermap.org/examples
0
There are lots of examples available. Try it.
0
thanks. do u know how to make the temp less than 50 the light blue will on?
0
Write the JS script to change background color to light blue under the specific condition
0
i tried but how i cant. i dk how the temp low the blue light will on. @_@
0
Did you use the API and get temp from it? Just use a condition then... How much have you done already?
0
i just am taking class html and he want me to use js but he dont teach anything. i am taking online class and he didnt teach anythihg at all. thats why i dont know how to do. and it is my final . thats kill me
0
What, he is nuts??? Okay I'll do it, and tell you when I'm done...
0
thank you so much. you're the best . can u do it quickly cause its due on this weekend. can i have your email ? where u live?
0
So I did it. But here are some usage instructions.
First you have to get an api key from openweathermap. For that you need to just sign up on its website. And you'll have it.
Second, you need to edit the webpage. In the api_key variable, copy you api key as a string, and in the zip_code variable zip code for your location.
Third, openweathermap api can only be called once in ten minutes.
Fourth, your professor will know that you cheated.
0
i will tried to follow you guide. how can he know i cheated if i change location ?
0
Just because you are taking html class, and the webpage uses JS. since you're not knowing JS, you couldn't have wrote it.
0
yes, exactly . i dont know why he said we use js to make a weather app . he didnt teach anything about js. however , u help me , thank god. now i can have code through the webpage u post , right
0
Yep, whatever. Happy to help kid.
At this point you won't be needing personal information. Still I'm at rishianand54@gmail.com, from India.
0
the people from indian that really good about coding . right . thank you so much