Chenged to new Info Orb Api
This commit is contained in:
parent
f1237e0dc4
commit
892f5fe56b
1 changed files with 3 additions and 7 deletions
|
@ -67,13 +67,10 @@ public class Main {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String createOutput(){
|
private static String createOutput(){
|
||||||
JSONArray dat = new JSONArray();
|
JSONObject dat = new JSONObject();
|
||||||
Date updatetime = new Date(time);
|
Date updatetime = new Date(time);
|
||||||
JSONObject displays = new JSONObject();
|
dat.put("interval",conf.getInt("refreshTime")*1000);
|
||||||
JSONArray display = new JSONArray();
|
JSONArray display = new JSONArray();
|
||||||
JSONObject refresh = new JSONObject();
|
|
||||||
refresh.put("interval",conf.getInt("refreshTime"));
|
|
||||||
dat.put(refresh);
|
|
||||||
JSONObject monitor1 = new JSONObject();
|
JSONObject monitor1 = new JSONObject();
|
||||||
monitor1.put("label","Zug");
|
monitor1.put("label","Zug");
|
||||||
JSONArray layout = new JSONArray();
|
JSONArray layout = new JSONArray();
|
||||||
|
@ -133,8 +130,7 @@ public class Main {
|
||||||
int zug4 = data.get(conf.getString("monitors.monitor4.DepartureTime"));
|
int zug4 = data.get(conf.getString("monitors.monitor4.DepartureTime"));
|
||||||
makeLabel(monitor5, zug4);
|
makeLabel(monitor5, zug4);
|
||||||
display.put(monitor5);
|
display.put(monitor5);
|
||||||
displays.put("displays", display);
|
dat.put("displays",display);
|
||||||
dat.put(displays);
|
|
||||||
return dat.toString();
|
return dat.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue