This project leverages the recently released screen LUA APIs to provide an interface with the programming board.
With this system, you can set up a public drop off point for ore with requirements for each available ore, and set the system to show all tiers, or single tier at a time.
Edit the begining of the screen1.lua
file and put your titles and options.
local title = "Ore Storage" -- export: Name your display.
local bgtext = "Welcome to Alioth Fuel Depot" -- export: Background text of your choice.
local bgPlanetImg = "assets.prod.novaquark.com/20368/954f3adb-3369-4ea9-854d-a14606334152.png" -- export: (Default: Alioth URL)
local tiers = 0 --export: Default is 0, or all tiers. If you set a tier (1-5), then only that tier will be displayed.
...
Set your RDMS how you like with public dropoff only (no viewing of contents), and use this app to show what you need and how much you have of it. If you reach your limit for that ore, the system lets you know the ore order has been fufilled. If the container is full, this system will be locked out until you empty it again.
There is no databank support for now, so if you reload the script onto the programming board, you will have to reenter the values into the lua parameters.
- Place a screen anywhere you want it to be seen.
- Place a container or hub on, around, or next to the screen.
- Place a programming board.
- Place a trigger. This can be a detection zone, or manual switch, or any other triggering device.
- A relay to turn on your screen and the programming board at the same time.
- Link in the following order (IMPORTANT):
- Programming Board to Screen
- Programming Board to Container or Hub
- Load the screen with the code:
- Open the
screen1.lua
- Edit the options at the beginning.
- Copy the contents with your edits
- Right-click the screen, click Advanced, and select Edit Content.
- On the top right, make sure LUA is highlighted. This code will not work in HTML mode.
- Paste in the box the code you copied.
- Click Apply.
- Open the
- Load the programming board with the code.
- Open
pb_conf.json
- Copy the contents without editing them.
- Right-cick the programming board.
- Click Advanced, then "Paste configuration from Clipboard" to load the script.
- Right-click the programming board again, click Advanced, then select
Edit Lua Parameters
. - Enter your values for limits. This is in L.
- Example: if you want 100kL, you enter
100000
- Example: if you want 100kL, you enter
- Open
- Connect the relay output to the screen and the programming board.
- Connect your trigger to the relay.