The Nebulae API. This API features an easy way of setting up a progress bar by using a Nuclear Information Reader and Sensor Kits. This API will later be forged into my allround monitor API, but for now, here is the Nebulae API!
You start by setting up a Nuclear Information Reader (Advanced would be the most wise) next to the computer. You can use a Liquid Sensor Kit to get information from a BuildCraft tank, Coke Oven, a Valve of a Railcraft Tank, etc. With Energy Sensor Kits you can click on a MFSU, BatBox, etc. Anything that holds energy. You put the Sensor Kit in a slot of the Nuclear Information Reader.
NOTE: The program can't handle multiple Nuclear Information Readers. Just because of the way I made it to auto-detect peripherals!
After you read the instructions above, you can start to use the API. First of all, download the API by typing this into your computer:
pastebin get j2aGuCGD Nebulae
After that you need to setup your file to acces the API. You can name it whatever you want. This is a test example how it should be used:
os.loadAPI("Nebulae")
while true do
Nebulae.dataTable("Fuel", 1, "Fuel", true)
sleep(1)
end
The variables after dataTable are for: (The name of the table, the side of the peripheral, the slot in the peripheral, the heading of the progress bar and the boolean value for liquids or energy (true is for liquids and false is for energy)). You need to put this in a while-loop, otherwise it wouldn't go through the table correctly and it wouldn't update. A sleep time of 1 second is the safest recommended setting.If there are any bugs, let me know. I am open for suggestions as well as criticism.