Snowflake Combine
Remotely monitor crop farms on ComputerCraft & Plethora on a website!
Setup Instructions
Docker - Web Client & Websocket
Requirements: Docker w/ Compose >= 3.7, and two open ports.
- Clone this repository.
- Copy
docker-compose.example.yml
to docker-compose.yml
.
- Caution: Make sure you copy these files, otherwise you will experience merge conflicts.
- Adjust the environment variables in docker-compose.yml
- The web and turtle tokens must NOT be the safe.
- Copy
config.example.json5
to config.json5
.
- Caution: Make sure you copy these files, otherwise you will experience merge conflicts.
- Adjust the configuration to your liking.
- Create a folder with icons for mods.
- Move this newley created folder to
client/public/icons
.
- Run
docker compose build
.
- Run
docker compose up -d
.
Turtle
Requirements: Turtle (advanced or normal), GPS, Block Scanner, Modem, Diamond Pickaxe, 2 Chests, and some fuel.
- Build the farm area.
- The turtle's home position must have two chests, one above and one below.
- The output chest must be below the turtle.
- The fuel input chest must be above the turtle.
- Prep the turtle.
- Clone the contents of the cc directory to the turtle.
- Give the turtle a modem, block scanner and pickaxe.
- Modify the configuration.
- The configuration file in the
/cc
directory is commented describing what each variable is for.
Updating
It is reccomended to update turtles before the frontend and websocket.
Frontend Update
git pull
- If there are any configuration changes required, make them.
- Follow steps 8 and 9 of the Docker install guide.
Turtle Update
- Go to a turtle's management page on Combine Web.
- Click "Send Update"
- Enter the updated main.lua file URL (GitHub raw URL) into the "Main file URL" box.
- Do the same for the "Tortise file URL" box if Tortise has been updated as well.
- Click "Send"
- The turtle will update at the end of its current round. While updating, the turtle will breifly disappear from Combine Web. If it does not re-appear, you should go make sure it didn't break.