This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
bicobajas's profile picture

Wireless Monitors?

Started by bicobajas, 27 July 2012 - 09:54 AM
bicobajas #1
Posted 27 July 2012 - 11:54 AM
Is it possible to have wireless monitors?
if so can anybody please send me code/command
BigSHinyToys #2
Posted 27 July 2012 - 12:11 PM
It really depends on your definition of wireless

You can't place a wifi modem on a monitor and send instructions to it.

You can have a computer next to the monitor with a wifi modem that takes instructions form another computer and prints them.
might what to look at
Remote Terminal login/controll system

I can make customizations to it if you would like it for a specific application
bicobajas #3
Posted 27 July 2012 - 01:41 PM
isent there a command to just send it
BigSHinyToys #4
Posted 27 July 2012 - 01:54 PM
isent there a command to just send it
there is no magical function to send prints to a monitor, you have to have a computer next to it or it just a big paper weight.
bicobajas #5
Posted 27 July 2012 - 02:56 PM
but a command to send it and run it on that computer
BigSHinyToys #6
Posted 27 July 2012 - 03:35 PM
that can be done
send a computer running this any message it will print it.
Spoiler

local function openRednet()
    local listOfSides = rs.getSides()
    for i = 1,6 do
	    if peripheral.isPresent(listOfSides[i]) and peripheral.getType(listOfSides[i]) == "modem" then
		    rednet.open(listOfSides[i])
		    return listOfSides[i]
	    end
    end
end
modemOn = openRednet()
if not modemOn then
    print("No WIFI ModemnPress any key to return to exit")
    os.pullEvent("key")
    return
else
    print("Opened wifi on "..modemOn.." side")
end
local iSendingComp = 144 -- this is the ID of the sending PC
local sSide = "left"
local monitor = peripheral.wrap(sSide)
term.redirect(monitor)
term.clear()
term.setCursorPos(1,1)
while true do
    local e,e1,e2,e3,e4,e5 = os.pullEvent()
    if e == "rednet_message" and e1 == iSendingComp then
	    print(e2)
    elseif e == "key" and e1 == 14 then --  when you press backSpace it ends the program
	    break
    end
end
term.clear()
term.setCursorPos(1,1)
term.restore()
use this to send to it
[CC1.3] BENCH v0.9 multi perpous testing utility
bicobajas #7
Posted 27 July 2012 - 04:15 PM
how do i paste it
kingkingkingkg #8
Posted 27 July 2012 - 04:30 PM
open up the program in notepad++ throu the .techniclauncher then paste it to there
BigSHinyToys #9
Posted 27 July 2012 - 04:30 PM
get the ID of the computer connected to the monitor
open application data %appdata% where Minecraft is located
open .minecraft
open saves
open the save for your current world
open computer
open the folder with the same ID as the monitor computer
make a text file with notepad place the above in that file save it as what ever you like
run minecraft open that computer use "dir" command if you see the name of the file you made then
type in the name of the file and it will run

repeat for other program BENCH v0.9
kingkingkingkg #10
Posted 27 July 2012 - 04:32 PM
or what Bigs said lol
bicobajas #11
Posted 27 July 2012 - 04:37 PM
but i need it at the servers
BigSHinyToys #12
Posted 27 July 2012 - 04:46 PM
but i need it at the servers
is the http enabled
this when entered into a computer (type it in) will download BENCH v0.9

pastebin get 7QrMd45m BENCH
if it works I will put the other code on past bin for ya
bicobajas #13
Posted 27 July 2012 - 04:51 PM
dosent work
BigSHinyToys #14
Posted 27 July 2012 - 04:57 PM
two more option ask a sever admin to put it up for you or type it in.
Lyqyd #15
Posted 27 July 2012 - 06:33 PM
Or just code up a quick rednet utility to send the string and another to display it on the monitor.