Tracks the status of your AE2 system in real time.
- CPU crafting status
- Item/fluid history
Credit to Niels for some of the AE2 related OC code
Credit to DylanTaylor1 for the setup script
I haven't tested setting this up a second time, you will probably encounter issues following the setup, sorry
- Tier 3 Computer Case
- Tier 3 Hard Disk Drive
- Tier 2 CPU (MINIMUM)
- Tier 2 Memory (Recommended 2x Tier 3.5 Memory)
- Tier 1 Graphics Card
- Tier 1 Screen (MINIMUM)
- Inventory Controller Upgrade
- Keyboard
- Internet Card
- TPS Card
- EEPROM (Lua BIOS)
- OpenOS Floppy Disk
- 2 Adapter (maybe 1 is enough)
- Chest (Compressed chest is best)
All crafting CPUs must have a Crafting Monitor, or their craft information cannot be read.
- Create a new project on Supabase
- Copy the contents of
postgres.sqlinto the SQL editor - Note the env variables: url, public key, service worker key
- Go to
Database > Extensionsand enablepg_cronfor scheduling cleaning tasks - Go to Database SQL Editor and copy/execute the contents of
supabase/setup_clean_job.sqlinto the editor. This will create cron jobs to clean out data according to a data retention policy (storing data older than one hour at less-frequent intervals). - Go to Project Settings > API and increase "Max Rows". Using the default data retention policy in
setup_clean_job.sql, the default max of 1000 rows will only fetch about 14 hours of data. 5000 rows will fetch about one week of data. You can increase Max Rows or increase the data retention intervals, to increase how far back you can see.
npm installoryarn installorpnpm installorbun installnpm run devoryarn devorpnpm devorbun dev- Copy .env.example to .env.local and fill in the details
NEXT_PUBLIC_SUPABASE_URLis the url from the Supabase projectNEXT_PUBLIC_SUPABASE_ANON_KEYis the public key from the Supabase projectSUPABASE_SERVICE_ROLE_KEYis the service worker key from the Supabase projectSECRETis a secret that should be set on the server and the OC script (see below) to prevent unauthorized access
- (optional) if OC is on a minecraft server (not your PC) then install
ngrokand runngrok http 3000to get a public url for testing
Open http://localhost:3000 with your browser to see the result.
- Build the computer with specs above
- Run
wget https://raw.githubusercontent.com/nzbasic/GTNH-AE2-OC-GOG/main/oc/main/setup.lua && setup - Copy
env.example.luatoenv.luaand fill in the detailsserverUrlis the url ofsecretis the secret from the web server
- Place an adapter next to an ME Dual Interface on your AE2 network
- Place a chest ontop of an
Adapterblock with an Inventory Controller Upgrade in it- Any item you put in here (fluid drops for fluids) will be tracked
- Run
Run.luato start the program
- Go to vercel.com
- Setup a new project with this repo (or your cloned one)