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

added while loops in SearchingAndComparing, changed system.err to system.out...

added while loops in SearchingAndComparing, changed system.err to system.out to get no output races between the two
parent a504f6ed
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,8 @@ public class Forecast {
*/
public static void main(String[] args) {
// do {
SearchingAndComparing.MethodSearchingAndComparing( /*OurScanner.ScanToSearch()*/);
// }while (SearchingAndComparing.GetFlag() == false );
CopyToFile.CopyURLToFile("weatherCache\\" + SearchingAndComparing.GetID() + ".json");
......
package de.hdm_stuttgart.mi.sd1.weather.model;
import de.hdm_stuttgart.mi.sd1.weather.cities.Cities;
import de.hdm_stuttgart.mi.sd1.weather.cities.City;
import javax.management.modelmbean.InvalidTargetObjectTypeException;
import java.io.IOException;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.Map;
import java.util.Scanner;
......@@ -11,8 +15,8 @@ public class SearchingAndComparing {
static int idToSearch = 0;
static String searchedCity;
static boolean flagIfNothingFound = true;
static boolean flagIfNothingFound = false;
static boolean flagIfWrongInput = false;
static public void MethodSearchingAndComparing(/*String searchedCity*/) {
......@@ -22,26 +26,27 @@ public class SearchingAndComparing {
* @param
*/
int controlNumber = 0;
int k = 0;
City[] citySelector = new City[2000];
do {
searchedCity = OurScanner.ScanToSearch();
while (flagIfNothingFound == false) {
searchedCity = OurScanner.ScanToSearch();
int controlNumber = 0;
for (int i = 0; i <= Cities.cities.length - 1; i++) {
City createdCity = Cities.cities[i];
if (createdCity.getName().toLowerCase().contains(searchedCity.toLowerCase())) {
citySelector[k] = createdCity;
k++;
flagIfNothingFound = true;
} else {
controlNumber++;
}
if (controlNumber > Cities.cities.length - 1) {
flagIfNothingFound = false;
System.err.println("City not found");
System.out.println("City not found");
}
}
} while (flagIfNothingFound == false);
}
if (citySelector[1] != null) {
......@@ -50,24 +55,39 @@ public class SearchingAndComparing {
for (int i = 0; i < multipleResults.length; i++) {
System.out.println(i + 1 + ". " + multipleResults[i].getName() + " \n country: " + multipleResults[i].getCountry() + " | coordinates: " + FormatOutput.cleanCoordOutput(citySelector[i].getAdditionalProperties().toString()));
}
System.out.println("Please enter the number of the city you want weatherdata for: ");
Scanner scanCityChoice = new Scanner(System.in);
int userCityChoice = scanCityChoice.nextInt();
if (userCityChoice <= 0 | userCityChoice > multipleResults.length) {
System.err.println("Not a valid input");
} else {
citySelector[0] = multipleResults[userCityChoice - 1];
System.out.println("Printing data for: " + userCityChoice + ". " + citySelector[0].getName() + " | " + citySelector[0].getAdditionalProperties() + " | " + citySelector[0].getCountry());
int userCityChoice = 0;
while ( flagIfWrongInput == false ) {
System.out.println("Please enter the number of the city you want weatherdata for: ");
Scanner scanCityChoice = new Scanner(System.in);
flagIfWrongInput = true;
try {
userCityChoice = scanCityChoice.nextInt();
} catch (InputMismatchException a) {
System.out.println("Not a valid input. Input has to be a number.");
flagIfWrongInput = false;
}
if (userCityChoice <= 0 | userCityChoice > multipleResults.length & flagIfWrongInput == true) {
System.out.println("Not a valid input. Please select one of the numbers given above.");
flagIfWrongInput = false;
}
}
scanCityChoice.close();
citySelector[0] = multipleResults[userCityChoice - 1];
System.out.println("Printing data for: " + userCityChoice + ". " + citySelector[0].getName() + " | " + citySelector[0].getAdditionalProperties() + " | " + citySelector[0].getCountry());
// scanCityChoice.close();
} else {
System.out.println("1." + citySelector[0].getName());
}
// scanCity.close();
idToSearch = citySelector[0].getId();
}
......
......@@ -8,8 +8,7 @@ public class WeatherOutput {
/**
* method to print the temperature
* and the sky condition of current day + 5
* in 3 hour segments
* of current day + 5 in 3 hour segments
* @param i timestamps for weatherdata
*/
......@@ -30,19 +29,30 @@ public class WeatherOutput {
System.out.print(Math.round(weatherObject.getList()[i].getMain().getTemp()) + "°C,");
int SkyPercent = weatherObject.getList()[i].getClouds().getAll();
if (SkyPercent < 25 && SkyPercent >= 0) {
System.out.print(" Klarer Himmel" + "\n");
} else if (SkyPercent > 25 && SkyPercent < 50) {
System.out.print(" Ein paar Wolken" + "\n");
} else if (SkyPercent > 50 && SkyPercent < 75) {
System.out.print(" Wolkig" + "\n");
} else if (SkyPercent > 75 && SkyPercent <= 100) {
System.out.print(" Bedeckter Himmel" + "\n");
} else {
System.err.print(" Something wrong with the sky - just run" + "\n");
}
System.out.print(WeatherOutput.SkyCondidtionOutput(weatherObject.getList()[i].getClouds().getAll()));
}
}
/**
* method to print the skycondition
* of current day + 5 in 3 hour segments
* @param SkyPercent
* @return skycondition as String
*/
public static String SkyCondidtionOutput(int SkyPercent) {
if (SkyPercent < 25 && SkyPercent >= 0) {
return " Klarer Himmel" + "\n";
} else if (SkyPercent > 25 && SkyPercent < 50) {
return " Ein paar Wolken" + "\n";
} else if (SkyPercent > 50 && SkyPercent < 75) {
return " Wolkig" + "\n";
} else if (SkyPercent > 75 && SkyPercent <= 100) {
return " Bedeckter Himmel" + "\n";
} else {
return " Something wrong with the sky - just run" + "\n";
}
}
}
{"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
This diff is collapsed.
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