Compare commits

...

2 Commits

Author SHA1 Message Date
Salt c19888f597 Update README 2024-02-25 22:14:08 -06:00
Salt 1b38039f62 Add deploy script 2024-02-25 22:14:04 -06:00
2 changed files with 32 additions and 0 deletions

View File

@ -6,6 +6,14 @@ This is an implementation of a centralized storage network architecture that use
A GPS will need to be established and be accurate within range of the entire network to the block.
Slave nodes must have a modem attached and be within range of the GPS and master.
The master node must have a modem attached and be within range of all slave nodes.
1. Deploy at least one slave node
* The inventory it is to monitor must be above or in front of the unit
* The unit should be able to drop below itself to push items to the master node
## Communication Protocol
Port 42914 is used for Master => Slave broadcasting

24
storage-net/deploy.sh Executable file
View File

@ -0,0 +1,24 @@
#! /bin/sh
#
# deploy.sh
# Copyright (C) 2024 Jacob Babor <jacob@babor.tech>
#
# Distributed under terms of the MIT license.
#
mcroot="$HOME/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances/ComputerCraft Sandbox/"
world="New World"
masterid="0"
slaveid="1"
_ccroot="$mcroot/.minecraft/saves/$world/computercraft/computer"
ls -al "$_ccroot"
if [ -f master.lua ]; then
cp master.lua "$_ccroot/$masterid/autostart.lua"
fi
if [ -f slave.lua ]; then
cp slave.lua "$_ccroot/$slaveid/autostart.lua"
fi