Skip to content
Snippets Groups Projects
Commit 3b9558b4 authored by Haug Michael's avatar Haug Michael
Browse files

added getId method

parent 2dca092b
No related branches found
No related tags found
No related merge requests found
......@@ -21,11 +21,11 @@ public class Forecast {
SearchingAndComparing.MethodSearchingAndComparing();
/*
CopyToFile.CopyURLToFile();
CopyToFile.CopyURLToFile();
/*
CopyToFile.CopyFileToWeather();
WeatherOutput.PrintWeather();
......
......@@ -14,22 +14,22 @@ public class CopyToFile {
public static String CopyURLToFile() {
if (new File("weatherCache\\" + SearchingAndComparing.MethodSearchingAndComparing() + ".json").isFile() ||
(Calendar.getInstance().getTimeInMillis() - new File("weatherCache\\" + SearchingAndComparing.MethodSearchingAndComparing() + ".json").lastModified() > 600000) &&
new File("weatherCache\\" + SearchingAndComparing.MethodSearchingAndComparing() + ".json").lastModified() > 0) {
if (new File("weatherCache\\" + SearchingAndComparing.getID() + ".json").isFile() ||
(Calendar.getInstance().getTimeInMillis() - new File("weatherCache\\" + SearchingAndComparing.getID() + ".json").lastModified() > 600000) &&
new File("weatherCache\\" + SearchingAndComparing.getID() + ".json").lastModified() > 0) {
System.out.println("Loading file from cache...");
} else {
try {
FileUtils.copyURLToFile(
URLCreator.CreateUrl(),
new File("weatherCache\\" + SearchingAndComparing.MethodSearchingAndComparing() + ".json"));
new File("weatherCache\\" + SearchingAndComparing.getID() + ".json"));
} catch (IOException e) {
System.out.println("ERROR");
}
}
return "weatherCache\\" + SearchingAndComparing.MethodSearchingAndComparing() + ".json";
return "weatherCache\\" + SearchingAndComparing.getID() + ".json";
}
......
......@@ -8,25 +8,26 @@ import java.util.Scanner;
public class SearchingAndComparing {
static public int MethodSearchingAndComparing() {
static int idToSearch = 0;
static public void MethodSearchingAndComparing() {
System.out.println("Please enter your City: ");
Scanner scan = new Scanner(System.in);
String searchedCity = scan.nextLine();
Scanner scanCity = new Scanner(System.in);
String searchedCity = scanCity.nextLine();
//String searchedCity = "Republic of India";
/**
* @param Searching and comparing cities
* Searching and comparing cities
* @param
*/
int controlNumber = 0;
int k = 0;
City[] citySelector = new City[20000];
City[] citySelector = new City[2000];
if (searchedCity == "") {
System.out.println("Please type in a city you want weatherdata for");
} else {
for (int i = 0; i <= Cities.cities.length-1; i++) {
for (int i = 0; i <= Cities.cities.length - 1; i++) {
City createdCity = Cities.cities[i];
if (createdCity.getName().toLowerCase().contains(searchedCity.toLowerCase()) == true) {
citySelector[k] = createdCity;
......@@ -44,7 +45,7 @@ public class SearchingAndComparing {
City[] multipleResults = Arrays.copyOf(citySelector, k);
for (int i = 0; i < multipleResults.length; i++) {
System.out.println(i + 1 + ". " + multipleResults[i].getName() + " | country: " + multipleResults[i].getCountry() + " | coordinates: " + citySelector[0].getAdditionalProperties());
System.out.println(i + 1 + ". " + multipleResults[i].getName() + " \n country: " + multipleResults[i].getCountry() + " | coordinates: " + citySelector[0].getAdditionalProperties());
}
System.out.println("Please enter the number of the city you want weatherdata for: ");
Scanner scanCityChoice = new Scanner(System.in);
......@@ -56,15 +57,22 @@ public class SearchingAndComparing {
citySelector[0] = multipleResults[userCityChoice - 1];
System.out.println("Your choice was: " + citySelector[0].getAdditionalProperties() + citySelector[0].getCountry());
}
// scanCityChoice.close();
} else {
System.out.println("1." + citySelector[0].getName());
}
}
return citySelector[0].getId();
// scanCity.close();
idToSearch = citySelector[0].getId();
}
public static int getID(){
return idToSearch;
}
}
......@@ -6,7 +6,7 @@ import java.net.URL;
public class URLCreator {
public static URL CreateUrl () throws MalformedURLException {
URL linkWithId = new URL("https://api.openweathermap.org/data/2.5/forecast?lang=de&APPID=41d009d32d4e302e0cd3d0f55bf5da24&units=metric&id="+ SearchingAndComparing.MethodSearchingAndComparing());
URL linkWithId = new URL("https://api.openweathermap.org/data/2.5/forecast?lang=de&APPID=41d009d32d4e302e0cd3d0f55bf5da24&units=metric&id="+ SearchingAndComparing.getID());
return linkWithId;
}
}
......@@ -2,7 +2,7 @@ package de.hdm_stuttgart.mi.sd1.weather.model;
public class WeatherOutput {
public static String PrintWeather() {
public static void PrintWeather() {
Weather weatherObject = CopyToFile.CopyFileToWeather();
......@@ -11,7 +11,6 @@ public class WeatherOutput {
* and the sky condition of current day + 5
* in 3 hour segments
* @param i timestamps for weatherdata
* @return currently returns nothing, not used that way
*/
for (int i = 0; i < weatherObject.getList().length - 1; i++) {
......@@ -36,7 +35,5 @@ public class WeatherOutput {
}
}
return "";
}
}
{"cod":"200","message":0.0103,"cnt":40,"list":[{"dt":1528988400,"main":{"temp":31,"temp_min":31,"temp_max":31,"pressure":960.08,"sea_level":1014.8,"grnd_level":960.08,"humidity":38,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"Überwiegend bewölkt","icon":"03n"}],"clouds":{"all":32},"wind":{"speed":4.16,"deg":266.002},"sys":{"pod":"n"},"dt_txt":"2018-06-14 15:00:00"},{"dt":1528999200,"main":{"temp":28.7,"temp_min":28.7,"temp_max":28.7,"pressure":961.28,"sea_level":1016.27,"grnd_level":961.28,"humidity":46,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":5.03,"deg":283.002},"sys":{"pod":"n"},"dt_txt":"2018-06-14 18:00:00"},{"dt":1529010000,"main":{"temp":26.39,"temp_min":26.39,"temp_max":26.39,"pressure":960.57,"sea_level":1015.59,"grnd_level":960.57,"humidity":60,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":5.57,"deg":281.001},"sys":{"pod":"n"},"dt_txt":"2018-06-14 21:00:00"},{"dt":1529020800,"main":{"temp":24.22,"temp_min":24.22,"temp_max":24.22,"pressure":960.81,"sea_level":1015.99,"grnd_level":960.81,"humidity":78,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":4.81,"deg":276.5},"sys":{"pod":"n"},"dt_txt":"2018-06-15 00:00:00"},{"dt":1529031600,"main":{"temp":27.85,"temp_min":27.85,"temp_max":27.85,"pressure":962.53,"sea_level":1017.49,"grnd_level":962.53,"humidity":68,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":5.61,"deg":267.003},"sys":{"pod":"d"},"dt_txt":"2018-06-15 03:00:00"},{"dt":1529042400,"main":{"temp":33.2,"temp_min":33.2,"temp_max":33.2,"pressure":961.9,"sea_level":1016.58,"grnd_level":961.9,"humidity":50,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":5.17,"deg":277.007},"sys":{"pod":"d"},"dt_txt":"2018-06-15 06:00:00"},{"dt":1529053200,"main":{"temp":35.82,"temp_min":35.82,"temp_max":35.82,"pressure":960,"sea_level":1014.36,"grnd_level":960,"humidity":40,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":4.41,"deg":271.001},"sys":{"pod":"d"},"dt_txt":"2018-06-15 09:00:00"},{"dt":1529064000,"main":{"temp":35.5,"temp_min":35.5,"temp_max":35.5,"pressure":958.78,"sea_level":1013.18,"grnd_level":958.78,"humidity":35,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":3.66,"deg":277.009},"sys":{"pod":"d"},"dt_txt":"2018-06-15 12:00:00"},{"dt":1529074800,"main":{"temp":26.81,"temp_min":26.81,"temp_max":26.81,"pressure":961.18,"sea_level":1015.84,"grnd_level":961.18,"humidity":66,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":32},"wind":{"speed":4.61,"deg":246.501},"rain":{"3h":0.475},"sys":{"pod":"n"},"dt_txt":"2018-06-15 15:00:00"},{"dt":1529085600,"main":{"temp":25.16,"temp_min":25.16,"temp_max":25.16,"pressure":962.17,"sea_level":1017.22,"grnd_level":962.17,"humidity":73,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":32},"wind":{"speed":4.46,"deg":259.503},"rain":{"3h":0.13},"sys":{"pod":"n"},"dt_txt":"2018-06-15 18:00:00"},{"dt":1529096400,"main":{"temp":24.68,"temp_min":24.68,"temp_max":24.68,"pressure":961.68,"sea_level":1016.84,"grnd_level":961.68,"humidity":71,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02n"}],"clouds":{"all":8},"wind":{"speed":4.66,"deg":271.501},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-15 21:00:00"},{"dt":1529107200,"main":{"temp":23.56,"temp_min":23.56,"temp_max":23.56,"pressure":962.26,"sea_level":1017.63,"grnd_level":962.26,"humidity":80,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02n"}],"clouds":{"all":8},"wind":{"speed":4.11,"deg":271.5},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-16 00:00:00"},{"dt":1529118000,"main":{"temp":27.83,"temp_min":27.83,"temp_max":27.83,"pressure":963.78,"sea_level":1018.89,"grnd_level":963.78,"humidity":65,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":5.21,"deg":272.501},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-16 03:00:00"},{"dt":1529128800,"main":{"temp":33.2,"temp_min":33.2,"temp_max":33.2,"pressure":963.22,"sea_level":1018.01,"grnd_level":963.22,"humidity":50,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":5.56,"deg":274},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-16 06:00:00"},{"dt":1529139600,"main":{"temp":35.52,"temp_min":35.52,"temp_max":35.52,"pressure":961.23,"sea_level":1015.76,"grnd_level":961.23,"humidity":41,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":5.22,"deg":264.5},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-16 09:00:00"},{"dt":1529150400,"main":{"temp":33.13,"temp_min":33.13,"temp_max":33.13,"pressure":960.69,"sea_level":1015.22,"grnd_level":960.69,"humidity":46,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":48},"wind":{"speed":5.27,"deg":274.503},"rain":{"3h":0.53},"sys":{"pod":"d"},"dt_txt":"2018-06-16 12:00:00"},{"dt":1529161200,"main":{"temp":30.95,"temp_min":30.95,"temp_max":30.95,"pressure":962.27,"sea_level":1017.28,"grnd_level":962.27,"humidity":46,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":88},"wind":{"speed":4.71,"deg":269},"rain":{"3h":0.0049999999999999},"sys":{"pod":"n"},"dt_txt":"2018-06-16 15:00:00"},{"dt":1529172000,"main":{"temp":27.68,"temp_min":27.68,"temp_max":27.68,"pressure":963.44,"sea_level":1018.62,"grnd_level":963.44,"humidity":59,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":76},"wind":{"speed":4.91,"deg":265.502},"rain":{"3h":0.16},"sys":{"pod":"n"},"dt_txt":"2018-06-16 18:00:00"},{"dt":1529182800,"main":{"temp":26.24,"temp_min":26.24,"temp_max":26.24,"pressure":962.76,"sea_level":1018.03,"grnd_level":962.76,"humidity":66,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02n"}],"clouds":{"all":8},"wind":{"speed":5.9,"deg":268.002},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-16 21:00:00"},{"dt":1529193600,"main":{"temp":24.68,"temp_min":24.68,"temp_max":24.68,"pressure":962.91,"sea_level":1018.31,"grnd_level":962.91,"humidity":74,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":4.98,"deg":263.501},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-17 00:00:00"},{"dt":1529204400,"main":{"temp":28.54,"temp_min":28.54,"temp_max":28.54,"pressure":964.13,"sea_level":1019.16,"grnd_level":964.13,"humidity":61,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":5.9,"deg":258.51},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-17 03:00:00"},{"dt":1529215200,"main":{"temp":32.22,"temp_min":32.22,"temp_max":32.22,"pressure":963.68,"sea_level":1018.35,"grnd_level":963.68,"humidity":50,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"Überwiegend bewölkt","icon":"03d"}],"clouds":{"all":36},"wind":{"speed":7.02,"deg":269.001},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-17 06:00:00"},{"dt":1529226000,"main":{"temp":32.95,"temp_min":32.95,"temp_max":32.95,"pressure":961.27,"sea_level":1015.86,"grnd_level":961.27,"humidity":53,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":68},"wind":{"speed":6.56,"deg":268.01},"rain":{"3h":0.48},"sys":{"pod":"d"},"dt_txt":"2018-06-17 09:00:00"},{"dt":1529236800,"main":{"temp":31.84,"temp_min":31.84,"temp_max":31.84,"pressure":960.03,"sea_level":1014.7,"grnd_level":960.03,"humidity":50,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":56},"wind":{"speed":5.81,"deg":274.001},"rain":{"3h":0.58},"sys":{"pod":"d"},"dt_txt":"2018-06-17 12:00:00"},{"dt":1529247600,"main":{"temp":27.17,"temp_min":27.17,"temp_max":27.17,"pressure":961.56,"sea_level":1016.39,"grnd_level":961.56,"humidity":71,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":88},"wind":{"speed":4.91,"deg":274.004},"rain":{"3h":0.72},"sys":{"pod":"n"},"dt_txt":"2018-06-17 15:00:00"},{"dt":1529258400,"main":{"temp":26.94,"temp_min":26.94,"temp_max":26.94,"pressure":962.6,"sea_level":1017.71,"grnd_level":962.6,"humidity":67,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"Überwiegend bewölkt","icon":"04n"}],"clouds":{"all":80},"wind":{"speed":4.98,"deg":276},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-17 18:00:00"},{"dt":1529269200,"main":{"temp":25.58,"temp_min":25.58,"temp_max":25.58,"pressure":961.54,"sea_level":1016.73,"grnd_level":961.54,"humidity":73,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"Überwiegend bewölkt","icon":"03n"}],"clouds":{"all":32},"wind":{"speed":4.67,"deg":274.005},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-17 21:00:00"},{"dt":1529280000,"main":{"temp":24.11,"temp_min":24.11,"temp_max":24.11,"pressure":961.65,"sea_level":1016.75,"grnd_level":961.65,"humidity":81,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":20},"wind":{"speed":3.91,"deg":265.501},"rain":{"3h":0.0099999999999998},"sys":{"pod":"n"},"dt_txt":"2018-06-18 00:00:00"},{"dt":1529290800,"main":{"temp":26.32,"temp_min":26.32,"temp_max":26.32,"pressure":962.84,"sea_level":1017.87,"grnd_level":962.84,"humidity":76,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":44},"wind":{"speed":4.07,"deg":251.006},"rain":{"3h":0.02},"sys":{"pod":"d"},"dt_txt":"2018-06-18 03:00:00"},{"dt":1529301600,"main":{"temp":30.98,"temp_min":30.98,"temp_max":30.98,"pressure":961.89,"sea_level":1016.59,"grnd_level":961.89,"humidity":59,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":5.12,"deg":257.003},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-18 06:00:00"},{"dt":1529312400,"main":{"temp":33.54,"temp_min":33.54,"temp_max":33.54,"pressure":959.31,"sea_level":1013.79,"grnd_level":959.31,"humidity":50,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"Überwiegend bewölkt","icon":"03d"}],"clouds":{"all":36},"wind":{"speed":4.21,"deg":261.5},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-18 09:00:00"},{"dt":1529323200,"main":{"temp":33.38,"temp_min":33.38,"temp_max":33.38,"pressure":958.07,"sea_level":1012.48,"grnd_level":958.07,"humidity":45,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"Überwiegend bewölkt","icon":"03d"}],"clouds":{"all":48},"wind":{"speed":3.41,"deg":257.002},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-18 12:00:00"},{"dt":1529334000,"main":{"temp":29.21,"temp_min":29.21,"temp_max":29.21,"pressure":959.58,"sea_level":1014.38,"grnd_level":959.58,"humidity":63,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":92},"wind":{"speed":2.67,"deg":268.501},"rain":{"3h":0.6},"sys":{"pod":"n"},"dt_txt":"2018-06-18 15:00:00"},{"dt":1529344800,"main":{"temp":26.06,"temp_min":26.06,"temp_max":26.06,"pressure":960.92,"sea_level":1015.92,"grnd_level":960.92,"humidity":77,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":88},"wind":{"speed":3.02,"deg":279.004},"rain":{"3h":1.18},"sys":{"pod":"n"},"dt_txt":"2018-06-18 18:00:00"},{"dt":1529355600,"main":{"temp":22.42,"temp_min":22.42,"temp_max":22.42,"pressure":960.44,"sea_level":1015.41,"grnd_level":960.44,"humidity":94,"temp_kf":0},"weather":[{"id":501,"main":"Rain","description":"Mäßiger Regen","icon":"10n"}],"clouds":{"all":76},"wind":{"speed":2.92,"deg":278},"rain":{"3h":3.04},"sys":{"pod":"n"},"dt_txt":"2018-06-18 21:00:00"},{"dt":1529366400,"main":{"temp":22.61,"temp_min":22.61,"temp_max":22.61,"pressure":959.66,"sea_level":1014.89,"grnd_level":959.66,"humidity":93,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":0},"wind":{"speed":3.02,"deg":263.003},"rain":{"3h":0.4},"sys":{"pod":"n"},"dt_txt":"2018-06-19 00:00:00"},{"dt":1529377200,"main":{"temp":27.73,"temp_min":27.73,"temp_max":27.73,"pressure":960.7,"sea_level":1015.6,"grnd_level":960.7,"humidity":74,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":4.51,"deg":274.001},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-19 03:00:00"},{"dt":1529388000,"main":{"temp":32.73,"temp_min":32.73,"temp_max":32.73,"pressure":960.5,"sea_level":1014.96,"grnd_level":960.5,"humidity":60,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":4.26,"deg":289.503},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-19 06:00:00"},{"dt":1529398800,"main":{"temp":35.24,"temp_min":35.24,"temp_max":35.24,"pressure":958.31,"sea_level":1012.64,"grnd_level":958.31,"humidity":52,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"Ein paar Wolken","icon":"02d"}],"clouds":{"all":24},"wind":{"speed":3.01,"deg":298.002},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-19 09:00:00"},{"dt":1529409600,"main":{"temp":29.61,"temp_min":29.61,"temp_max":29.61,"pressure":958.01,"sea_level":1012.45,"grnd_level":958.01,"humidity":70,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":36},"wind":{"speed":0.77,"deg":254.502},"rain":{"3h":1.31},"sys":{"pod":"d"},"dt_txt":"2018-06-19 12:00:00"}],"city":{"id":1269750,"name":"Republic of India","coord":{"lat":20,"lon":77},"country":"IN"}}
\ No newline at end of file
{"cod":"200","message":0.0112,"cnt":40,"list":[{"dt":1529053200,"main":{"temp":19.35,"temp_min":17.76,"temp_max":19.35,"pressure":972.75,"sea_level":1030.32,"grnd_level":972.75,"humidity":85,"temp_kf":1.59},"weather":[{"id":803,"main":"Clouds","description":"Überwiegend bewölkt","icon":"04d"}],"clouds":{"all":68},"wind":{"speed":1.76,"deg":25.0013},"sys":{"pod":"d"},"dt_txt":"2018-06-15 09:00:00"},{"dt":1529064000,"main":{"temp":20.68,"temp_min":19.48,"temp_max":20.68,"pressure":972.4,"sea_level":1029.84,"grnd_level":972.4,"humidity":79,"temp_kf":1.19},"weather":[{"id":802,"main":"Clouds","description":"Überwiegend bewölkt","icon":"03d"}],"clouds":{"all":48},"wind":{"speed":1.91,"deg":27.5128},"sys":{"pod":"d"},"dt_txt":"2018-06-15 12:00:00"},{"dt":1529074800,"main":{"temp":21.12,"temp_min":20.32,"temp_max":21.12,"pressure":972.2,"sea_level":1029.55,"grnd_level":972.2,"humidity":75,"temp_kf":0.8},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":1.92,"deg":38},"sys":{"pod":"d"},"dt_txt":"2018-06-15 15:00:00"},{"dt":1529085600,"main":{"temp":19.54,"temp_min":19.14,"temp_max":19.54,"pressure":972.4,"sea_level":1029.82,"grnd_level":972.4,"humidity":74,"temp_kf":0.4},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":1.51,"deg":37.0013},"sys":{"pod":"d"},"dt_txt":"2018-06-15 18:00:00"},{"dt":1529096400,"main":{"temp":14.02,"temp_min":14.02,"temp_max":14.02,"pressure":972.5,"sea_level":1030.23,"grnd_level":972.5,"humidity":86,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.26,"deg":42.5025},"sys":{"pod":"n"},"dt_txt":"2018-06-15 21:00:00"},{"dt":1529107200,"main":{"temp":11.25,"temp_min":11.25,"temp_max":11.25,"pressure":972.3,"sea_level":1030.11,"grnd_level":972.3,"humidity":89,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.16,"deg":98.0025},"sys":{"pod":"n"},"dt_txt":"2018-06-16 00:00:00"},{"dt":1529118000,"main":{"temp":9.66,"temp_min":9.66,"temp_max":9.66,"pressure":971.91,"sea_level":1029.77,"grnd_level":971.91,"humidity":88,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.21,"deg":138},"sys":{"pod":"n"},"dt_txt":"2018-06-16 03:00:00"},{"dt":1529128800,"main":{"temp":15.79,"temp_min":15.79,"temp_max":15.79,"pressure":972.12,"sea_level":1029.91,"grnd_level":972.12,"humidity":87,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.81,"deg":180.003},"sys":{"pod":"d"},"dt_txt":"2018-06-16 06:00:00"},{"dt":1529139600,"main":{"temp":20.64,"temp_min":20.64,"temp_max":20.64,"pressure":972.27,"sea_level":1029.59,"grnd_level":972.27,"humidity":81,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.77,"deg":162},"sys":{"pod":"d"},"dt_txt":"2018-06-16 09:00:00"},{"dt":1529150400,"main":{"temp":22.11,"temp_min":22.11,"temp_max":22.11,"pressure":971.59,"sea_level":1028.78,"grnd_level":971.59,"humidity":76,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":1.76,"deg":35.0054},"sys":{"pod":"d"},"dt_txt":"2018-06-16 12:00:00"},{"dt":1529161200,"main":{"temp":22.65,"temp_min":22.65,"temp_max":22.65,"pressure":971.05,"sea_level":1028.05,"grnd_level":971.05,"humidity":71,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"Ein paar Wolken","icon":"02d"}],"clouds":{"all":20},"wind":{"speed":1.81,"deg":330.502},"sys":{"pod":"d"},"dt_txt":"2018-06-16 15:00:00"},{"dt":1529172000,"main":{"temp":21.34,"temp_min":21.34,"temp_max":21.34,"pressure":970.87,"sea_level":1028.17,"grnd_level":970.87,"humidity":73,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"Überwiegend bewölkt","icon":"04d"}],"clouds":{"all":64},"wind":{"speed":1.31,"deg":334},"sys":{"pod":"d"},"dt_txt":"2018-06-16 18:00:00"},{"dt":1529182800,"main":{"temp":18.06,"temp_min":18.06,"temp_max":18.06,"pressure":971.96,"sea_level":1029.42,"grnd_level":971.96,"humidity":73,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"Überwiegend bewölkt","icon":"04n"}],"clouds":{"all":68},"wind":{"speed":1.66,"deg":312.003},"sys":{"pod":"n"},"dt_txt":"2018-06-16 21:00:00"},{"dt":1529193600,"main":{"temp":15,"temp_min":15,"temp_max":15,"pressure":972.6,"sea_level":1030.28,"grnd_level":972.6,"humidity":91,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"Ein paar Wolken","icon":"02n"}],"clouds":{"all":24},"wind":{"speed":1.17,"deg":304.502},"sys":{"pod":"n"},"dt_txt":"2018-06-17 00:00:00"},{"dt":1529204400,"main":{"temp":13.2,"temp_min":13.2,"temp_max":13.2,"pressure":973.03,"sea_level":1030.82,"grnd_level":973.03,"humidity":95,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":80},"wind":{"speed":1.18,"deg":263.501},"rain":{"3h":0.19},"sys":{"pod":"n"},"dt_txt":"2018-06-17 03:00:00"},{"dt":1529215200,"main":{"temp":16.84,"temp_min":16.84,"temp_max":16.84,"pressure":973.64,"sea_level":1031.47,"grnd_level":973.64,"humidity":90,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":0},"wind":{"speed":1.77,"deg":242.5},"rain":{"3h":0.07},"sys":{"pod":"d"},"dt_txt":"2018-06-17 06:00:00"},{"dt":1529226000,"main":{"temp":19.18,"temp_min":19.18,"temp_max":19.18,"pressure":974.32,"sea_level":1031.93,"grnd_level":974.32,"humidity":84,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":36},"wind":{"speed":3.01,"deg":298.504},"rain":{"3h":0.005},"sys":{"pod":"d"},"dt_txt":"2018-06-17 09:00:00"},{"dt":1529236800,"main":{"temp":20.71,"temp_min":20.71,"temp_max":20.71,"pressure":974.52,"sea_level":1031.95,"grnd_level":974.52,"humidity":82,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":0},"wind":{"speed":2.51,"deg":319.001},"rain":{"3h":0.005},"sys":{"pod":"d"},"dt_txt":"2018-06-17 12:00:00"},{"dt":1529247600,"main":{"temp":20.89,"temp_min":20.89,"temp_max":20.89,"pressure":974.37,"sea_level":1031.74,"grnd_level":974.37,"humidity":74,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"Überwiegend bewölkt","icon":"04d"}],"clouds":{"all":76},"wind":{"speed":2.72,"deg":335.5},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-17 15:00:00"},{"dt":1529258400,"main":{"temp":17.03,"temp_min":17.03,"temp_max":17.03,"pressure":975.49,"sea_level":1033.03,"grnd_level":975.49,"humidity":88,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":92},"wind":{"speed":2.81,"deg":330.503},"rain":{"3h":0.9},"sys":{"pod":"d"},"dt_txt":"2018-06-17 18:00:00"},{"dt":1529269200,"main":{"temp":15.45,"temp_min":15.45,"temp_max":15.45,"pressure":976.33,"sea_level":1034.11,"grnd_level":976.33,"humidity":94,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":92},"wind":{"speed":1.31,"deg":330.006},"rain":{"3h":0.65},"sys":{"pod":"n"},"dt_txt":"2018-06-17 21:00:00"},{"dt":1529280000,"main":{"temp":14.75,"temp_min":14.75,"temp_max":14.75,"pressure":976.52,"sea_level":1034.5,"grnd_level":976.52,"humidity":98,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10n"}],"clouds":{"all":68},"wind":{"speed":1.06,"deg":246.007},"rain":{"3h":0.17},"sys":{"pod":"n"},"dt_txt":"2018-06-18 00:00:00"},{"dt":1529290800,"main":{"temp":13.47,"temp_min":13.47,"temp_max":13.47,"pressure":976.64,"sea_level":1034.89,"grnd_level":976.64,"humidity":97,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"Überwiegend bewölkt","icon":"04n"}],"clouds":{"all":76},"wind":{"speed":1.26,"deg":267.503},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-18 03:00:00"},{"dt":1529301600,"main":{"temp":14.78,"temp_min":14.78,"temp_max":14.78,"pressure":977.78,"sea_level":1035.94,"grnd_level":977.78,"humidity":91,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"Leichter Regen","icon":"10d"}],"clouds":{"all":76},"wind":{"speed":1.96,"deg":300.005},"rain":{"3h":0.02},"sys":{"pod":"d"},"dt_txt":"2018-06-18 06:00:00"},{"dt":1529312400,"main":{"temp":16.71,"temp_min":16.71,"temp_max":16.71,"pressure":978.48,"sea_level":1036.44,"grnd_level":978.48,"humidity":87,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"Überwiegend bewölkt","icon":"04d"}],"clouds":{"all":68},"wind":{"speed":2.06,"deg":311.502},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-18 09:00:00"},{"dt":1529323200,"main":{"temp":18.88,"temp_min":18.88,"temp_max":18.88,"pressure":978.45,"sea_level":1036.14,"grnd_level":978.45,"humidity":84,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"Ein paar Wolken","icon":"02d"}],"clouds":{"all":24},"wind":{"speed":1.92,"deg":322.001},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-18 12:00:00"},{"dt":1529334000,"main":{"temp":20.11,"temp_min":20.11,"temp_max":20.11,"pressure":978.19,"sea_level":1035.75,"grnd_level":978.19,"humidity":77,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":2.26,"deg":314.5},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-18 15:00:00"},{"dt":1529344800,"main":{"temp":18.79,"temp_min":18.79,"temp_max":18.79,"pressure":978.37,"sea_level":1036.07,"grnd_level":978.37,"humidity":70,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"02d"}],"clouds":{"all":8},"wind":{"speed":1.97,"deg":324},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-18 18:00:00"},{"dt":1529355600,"main":{"temp":14,"temp_min":14,"temp_max":14,"pressure":979,"sea_level":1036.96,"grnd_level":979,"humidity":81,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.27,"deg":320.501},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-18 21:00:00"},{"dt":1529366400,"main":{"temp":11.5,"temp_min":11.5,"temp_max":11.5,"pressure":978.83,"sea_level":1036.99,"grnd_level":978.83,"humidity":91,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.7,"deg":291.002},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-19 00:00:00"},{"dt":1529377200,"main":{"temp":10.13,"temp_min":10.13,"temp_max":10.13,"pressure":978.42,"sea_level":1036.73,"grnd_level":978.42,"humidity":89,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.08,"deg":225.001},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-19 03:00:00"},{"dt":1529388000,"main":{"temp":15.69,"temp_min":15.69,"temp_max":15.69,"pressure":978.6,"sea_level":1036.77,"grnd_level":978.6,"humidity":81,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.72,"deg":265.503},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-19 06:00:00"},{"dt":1529398800,"main":{"temp":19.66,"temp_min":19.66,"temp_max":19.66,"pressure":978.51,"sea_level":1036.19,"grnd_level":978.51,"humidity":82,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.47,"deg":85.0119},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-19 09:00:00"},{"dt":1529409600,"main":{"temp":21.62,"temp_min":21.62,"temp_max":21.62,"pressure":977.74,"sea_level":1035.24,"grnd_level":977.74,"humidity":78,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.86,"deg":357.505},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-19 12:00:00"},{"dt":1529420400,"main":{"temp":22.52,"temp_min":22.52,"temp_max":22.52,"pressure":977.31,"sea_level":1034.65,"grnd_level":977.31,"humidity":73,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.91,"deg":356.005},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-19 15:00:00"},{"dt":1529431200,"main":{"temp":21.32,"temp_min":21.32,"temp_max":21.32,"pressure":977.23,"sea_level":1034.57,"grnd_level":977.23,"humidity":70,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.62,"deg":2.50226},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-19 18:00:00"},{"dt":1529442000,"main":{"temp":15.98,"temp_min":15.98,"temp_max":15.98,"pressure":977.64,"sea_level":1035.28,"grnd_level":977.64,"humidity":86,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.2,"deg":6.00101},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-19 21:00:00"},{"dt":1529452800,"main":{"temp":13.38,"temp_min":13.38,"temp_max":13.38,"pressure":977.41,"sea_level":1035.27,"grnd_level":977.41,"humidity":90,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.27,"deg":88.0001},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-20 00:00:00"},{"dt":1529463600,"main":{"temp":12.18,"temp_min":12.18,"temp_max":12.18,"pressure":977.32,"sea_level":1035.26,"grnd_level":977.32,"humidity":89,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.62,"deg":156.501},"rain":{},"sys":{"pod":"n"},"dt_txt":"2018-06-20 03:00:00"},{"dt":1529474400,"main":{"temp":18.06,"temp_min":18.06,"temp_max":18.06,"pressure":977.64,"sea_level":1035.53,"grnd_level":977.64,"humidity":85,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"Klarer Himmel","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.67,"deg":177.505},"rain":{},"sys":{"pod":"d"},"dt_txt":"2018-06-20 06:00:00"}],"city":{"id":2927043,"name":"Stuttgart Feuerbach","coord":{"lat":48.8087,"lon":9.1572},"country":"DE"}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment