Here's my end goal:
Occasionally, probably with sleep function, the computer will call on the logistics pipes system to see how much of a certain item there is. If that item is below a certain threshold, math will occur and and the materials necessary to craft more of the item will be requested. Since Logistics Pipe can recognize AE items through an ME interface, I believe the materials can be called and requested fairly easily, once I solve my main problem. The requested items would then be fed into a machine to process and craft the item to replenish the storage system. For example, if I decide to make 10 reinforced Thermal Expansion machines and suddenly my supply of 100 hardened glass has diminished to 60. The next time the computer calls it will find the quantity of Hardened Glass is below 100, it will request Pulverized Obsidian and Lead and will craft more in one of two ways: Option 1 is easier and is to craft a standardized amount (50) at a time. This is good because it's easier for my not-good-programmer brain but not good because it's possible to take 2 sets of request to refill to above 100, unless I craft an extra 100 at a time. Option 2 is to use some math to figure out a perfect number to reach a maximum threshold of, say, 150.
But all that's only useful in my head because I cannot figure out how to find the ItemIdentifier Objects used by Logistics Pipes. This Github post, specifically the reply by davboecki, seems to have the most information I can find, but I'm not following/understanding what he's saying to do. I'm sure part of it is me doing something wrong and the other is me not understanding it, but I would greatly appreciate it if someone would be able to help me figure out what he's saying. I have wrapped the Request pipe (lp = peripheral.wrap("back")) and looked through all three pages of the lp.help() but could not find anything concerning an "Itemidentifier builder". The closest I've gotten was the following:
lp = peripheral.wrap("back")
print(lp.getLP())
which returned "LP Global Access [table: 2e4748fd]" but I don't know what that means, if it's useful, or what I could do with it.
I'm digging programming but am getting somewhat frustrated with the quirks of Lua and the lack of documentation of Computercraft. I'm pushing through, largely thanks to this and other forums, and enjoying it, but any help possible would be very appreciated.