You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
589 B
Java

3 years ago
package sh.adb.sensorCommunityAPI;
3 years ago
import org.json.simple.JSONObject;
import java.io.IOException;
3 years ago
public class Main {
public static void main(String[] args) throws IOException {
3 years ago
DataStore store = new DataStore();
JSONObject config = store.readJSON("config.json");
3 years ago
if (config == null) config = store.readJSON("example.config.json");
3 years ago
DataStoreBot bot = new DataStoreBot(
config.get("storePath").toString(),
config.get("apiURL").toString()
);
3 years ago
bot.setInterval((int)(long) config.get("interval"));
3 years ago
}
}