Improve TBA event downloading

This commit is contained in:
Michael Mikovsky
2025-04-01 12:41:37 -06:00
parent 3f4a2309b3
commit 6c38147c6d
12 changed files with 501 additions and 171 deletions
@@ -14,7 +14,7 @@ public class DataManager {
public static String evcode;
public static frcEvent event;
public static void reload_event(){
if(event != null) return;
// if(event != null) return;
evcode = getevcode();
if(evcode.equals("unset")) return;
@@ -36,6 +36,11 @@ public final class fileEditor {
public static final byte internalDataVersion = 0x01;
public static final int maxCompressedBlockSize = 4096;
public static final int lengthHeaderBytes = 3;
public static final String TBAAddress = "https://www.thebluealliance.com/api/v3/";
public static final String TBAHeader = "X-TBA-Auth-Key: tjEKSZojAU2pgbs2mBt06SKyOakVhLutj3NwuxLTxPKQPLih11aCIwRIVFXKzY4e";
// private TimeZone localTimeZone = TimeZone.getDefault();
@@ -405,7 +410,7 @@ public final class fileEditor {
}
});
} catch (Exception e){
e.printStackTrace();
AlertManager.error(e);
}