This programs allow you to use a web interface to interact with you computer or turtle. This is just a very basic programe where the server sent the computer/turtle a program and the computer/turtle (if the program supports it) will send back status updates of what it is doing.
Download server code here: http://www.lozengia....mote_server.rar
Interface on Default web host: http://www.lozengia..../test/input.php
Note about Default host:(nothing will happen in the log unless at least one person out there is running the program as defult.)
Computer/turtal code
(change dir to the directory on the server you uploaded the server code too. (unless you want my public example controlling you stuff.)
local function sendOutput( text ) local response = http.get(output .. "?output=" .. textutils.urlEncode(text)) print("Connecting to http for output.") if response then -- if page is reseved if response then print("Sending output.") local sResponse = response.readAll() response.close() end end end dir = "http://www.lozengia.com/tmas/Downloads/Minecraft/test/" input = dir .. "input.txt" output = dir .. "getOutput.php" while true do print("Connecting to http") local response = http.get(input) if response then print("Page found attepting to download.") -- if page is reseved while response do local sResponse = response.readAll() response.close() cache = shell.resolve( "temp" ) local file = fs.open( cache, "w" ) file.write( sResponse ) file.close() response = nil print("Running input from http.") shell.run( "temp" ) end text = "Finished Running Code." sendOutput("Finished Running Code.") else print("Page not found.") end print("Yileding befor loop.") os.sleep( 5 ) shell.run( "clear" ) end
To Do
Spoiler
old versions
V 0.2 server
V 0.1
Spoiler