mirror of
https://github.com/MistWeatherMedia/WeatherSTAR-3000-Java.git
synced 2026-11-28 22:48:09 -08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5177d0fead | ||
|
|
1cc60fe38c |
No files matched your search
@@ -71,7 +71,7 @@ public class ExtendedForecast extends Thread {
|
|||||||
String ResponseBody = Response.body();
|
String ResponseBody = Response.body();
|
||||||
JSONObject JSONResponse = new JSONObject(ResponseBody);
|
JSONObject JSONResponse = new JSONObject(ResponseBody);
|
||||||
JSONObject dpData = JSONResponse.getJSONArray("daypart").getJSONObject(0);
|
JSONObject dpData = JSONResponse.getJSONArray("daypart").getJSONObject(0);
|
||||||
int bump = dpData.getJSONArray("dayOrNight").isNull(0) ? 5 : 4;
|
int bump = dpData.getJSONArray("dayOrNight").isNull(0) ? 6 : dpData.getJSONArray("dayOrNight").getString(0).equals("N") ? 6 : 4;
|
||||||
int ex = day*2;
|
int ex = day*2;
|
||||||
|
|
||||||
values.add(utl.getForecastEx(dpData.getJSONArray("iconCodeExtend").getInt(ex + bump), 0));
|
values.add(utl.getForecastEx(dpData.getJSONArray("iconCodeExtend").getInt(ex + bump), 0));
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ public class Main {
|
|||||||
//airport conditions
|
//airport conditions
|
||||||
//air quality
|
//air quality
|
||||||
//timezone switch?
|
//timezone switch?
|
||||||
System.out.println("WeatherSTAR 3000 Simulator Version 1.5.2");
|
System.out.println("WeatherSTAR 3000 Simulator Version 1.5.3");
|
||||||
|
|
||||||
String userDir = System.getProperty("user.dir");
|
String userDir = System.getProperty("user.dir");
|
||||||
if (userDir != null && !userDir.isEmpty()) {
|
if (userDir != null && !userDir.isEmpty()) {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
{"segment":"localForecast", "duration": 600.0},
|
{"segment":"localForecast", "duration": 600.0},
|
||||||
{"segment":"regionalForecast", "duration": 600.0},
|
{"segment":"regionalForecast", "duration": 600.0},
|
||||||
{"segment":"almanac", "duration": 600.0},
|
{"segment":"almanac", "duration": 600.0},
|
||||||
{"segment":"regionalConditions", "duration": 600.0}
|
{"segment":"hourlyObservations", "duration": 600.0}
|
||||||
],
|
],
|
||||||
"I": [
|
"I": [
|
||||||
{"segment":"currentConditions", "duration": 600.0},
|
{"segment":"currentConditions", "duration": 600.0},
|
||||||
|
|||||||
Reference in new issue
Block a user