public List <string> getPrecipTimeRadar() { WeatherAPI weatherAPI = new WeatherAPI(urlForRadar); precipRadarTimeList = weatherAPI.getPrecipRadarTimeList(); return(precipRadarTimeList); }
public List <double> getPrecipRadar() { WeatherAPI weatherAPI = new WeatherAPI(urlForRadar); precipRadarList = weatherAPI.getPrecipList(); return(precipRadarList); }
public int getCloudCover() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); currCloud = (int)weatherAPI.getCloudCover(); return(currCloud); }
public string getCloudCoverType() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); currCloudType = weatherAPI.getCloudType(); return(currCloudType); }
public List <double> getCloudRadar() { WeatherAPI weatherAPI = new WeatherAPI(urlForRadar); cloudRadarList = weatherAPI.getCloudRadarList(); return(cloudRadarList); }
public List <string> getCloudTimeRadar() { WeatherAPI weatherAPI = new WeatherAPI(urlForRadar); cloudRadarTimeList = weatherAPI.getCloudTimeList(); return(cloudRadarTimeList); }
public string getIcon() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); string icon = weatherAPI.getIcon(); iconUrl = iIconUrl.Replace("@PIC@", icon); return(iconUrl); }
public DateTime getLastUpdate() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); string dt = weatherAPI.getLastUpdate(); DateTime oDate = Convert.ToDateTime(dt); return(oDate); }
public string getIconForecast(DateTime d) { string dateOfChecking = d.ToString("yyyy-MM-dd"); WeatherAPI weatherAPI = new WeatherAPI(urlForForecast); string icon = weatherAPI.getIconForecast(dateOfChecking); iconUrl = iIconUrl.Replace("@PIC@", icon); return(iconUrl); }
public string getPrecipType(DateTime date) { WeatherAPI weatherAPI = new WeatherAPI(urlForForecast); string dateOfChecking; dateOfChecking = date.ToString("yyyy-MM-dd"); precipType = weatherAPI.getForecastType(dateOfChecking); return(precipType); }
public double getPressure() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); currPressure = weatherAPI.getPressure(); if (Weather.isImperial) { return(currPressure); } else { return((double)(currPressure / 1013.25)); } }
public double getWindSpeed() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); currWind = (double)weatherAPI.getWindSpeed(); if (Weather.isImperial) { return(currWind); } else { return(currWind * 1.6); } }
public double getCurrentTemperature() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); currTemperature = (double)weatherAPI.getTemperature(); if (Weather.isImperial) { return(currTemperature); } else { return((currTemperature - 32) * 5 / 9); } }
public double getCurrentWindChill() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); currTemperature = (double)weatherAPI.getTemperature(); currWindChill = (35.74 + .6215 * currTemperature - 35.75 * Math.Pow(getWindSpeed(), .16) + .4275 * currTemperature * Math.Pow(getWindSpeed(), .16)); if (Weather.isImperial) { return(currWindChill); } else { return((currWindChill - 32) * 5 / 9); } }
public int getHighForecast(DateTime date) { WeatherAPI weatherAPI = new WeatherAPI(urlForForecast); string dateOfChecking; dateOfChecking = date.ToString("yyyy-MM-dd"); forecastHigh = weatherAPI.getForecastTemperature(dateOfChecking, "max"); if (Weather.isImperial) { return((int)forecastHigh); } else { return((int)((forecastHigh - 32) * (5.0 / 9.0))); } }
public double getPrecipForecast(DateTime date) { WeatherAPI weatherAPI = new WeatherAPI(urlForForecast); string dateOfChecking; dateOfChecking = date.ToString("yyyy-MM-dd"); forecastPrecip = weatherAPI.getForecastPrecipitation(dateOfChecking); if (Weather.isImperial) { return(forecastPrecip); } else { return(forecastPrecip * 25.4); } }
public int getWindDegree() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); return((int)weatherAPI.getWindDegree()); }
public int getHumidity() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); return((int)weatherAPI.getHumidity()); }
public string getWindDir() { WeatherAPI weatherAPI = new WeatherAPI(urlForCurrent); return(weatherAPI.getWindDir()); }