nice work
further to this and the
OpenPeripheral's thread discussion on the same, I was looking at this:
http://regex.info/blog/lua/json
using that, i've tested its use on the
getAdvancedMethodsData call - my current hacking of this is simply
local JSON = (loadfile "disk/JSON.lua")() -- replace this with wherever you save the above linked JSON.lua utility
local chest = peripheral.wrap("left")
local ed = chest.getAdvancedMethodsData()
local myTableJSON = JSON:encode_pretty(ed)
print(myTableJSON)
which seems to do the job nicely...
my thoughts on this are that this JSON data is simple to pass via a HTTP request to some javascript to auto-generate a webpage as suggested in the OpenPeripherals thread by NeverCast.
all that is needed to be done now is write the javascript decoding at the other end to make it readable - which should be trivial in JQuery - and an advanced function would be for the page to cache already defined methods, but it'd need to make some checksum etc - probably pass the CC version or something too...
i also found this on the FTB forums
http://forum.feed-th...-support.39460/
which dumps the method docs to a file for later reading... which is a nice idea
Edited by ingie, 02 February 2014 - 10:44 PM.