- htttp://romanoff.io
- in/michaelromanoff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getJSON("https://api.openweathermap.org/data/2.5/weather?id=4614214&units=imperial&APPID=openweathermap api code", function(data) { | |
var icon = "http://openweathermap.org/img/w/" + data.weather[0].icon + ".png"; | |
var temp = Math.floor(data.main.temp); | |
var weather = data.weather[0].description; | |
var humid = data.main.humidity; | |
var windspeed = data.wind.speed + " mph"; | |
var deg = Math.floor(data.wind.deg); | |
switch (true) { | |
case deg >= 360 && deg <= 21: | |
deg = "N"; |