Compare commits
No commits in common. "37caa0beac6b1f729873df1c22e02be288541616" and "b56704e2343044b4986a30044a2a3f1e1837b354" have entirely different histories.
37caa0beac
...
b56704e234
@ -1,2 +1,2 @@
|
||||
# sensorCommunityAPI
|
||||
a simple java program, which stores sensor data from https://sensor.community to json files
|
||||
a simple java programm, which stores sensor data from https://sensor.community to json files
|
@ -8,12 +8,16 @@ public class Main {
|
||||
public static void main(String[] args) throws IOException {
|
||||
DataStore store = new DataStore();
|
||||
JSONObject config = store.readJSON("config.json");
|
||||
if (config == null) config = store.readJSON("example.config.json");
|
||||
if (config == null){
|
||||
config = store.readJSON("example.config.json");
|
||||
}
|
||||
|
||||
DataStoreBot bot = new DataStoreBot(
|
||||
config.get("storePath").toString(),
|
||||
config.get("apiURL").toString()
|
||||
);
|
||||
bot.setInterval((int)(long) config.get("interval"));
|
||||
bot.setInterval(Integer.parseInt(
|
||||
config.get("interval").toString()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user