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

Send Dashboard over rednet and display on monitor

Started by Hansbald, 24 May 2014 - 04:41 PM
Hansbald #1
Posted 24 May 2014 - 06:41 PM
Hello,
I'm trying to get something to work, I want my Big Reactor Controll Programm to send "the monitor" over rednet, so I can display the whole monitor on another computer, basically I want to display my reactor status over rednet… I can't really describe it sorry…
Zudo #2
Posted 24 May 2014 - 06:43 PM
You want to display the contents of a monitor on a computer?
Edited on 24 May 2014 - 04:45 PM
Hansbald #3
Posted 24 May 2014 - 06:59 PM
You want to display the contents of a monitor on a computer?

I don't know how to say this…

I have a CC Programm that reads information from my reactor (like temperatur and stuff like this) now I want to displays this data on a PC (and monitor) in my base.
My first though was to send a message like this: "Temperatur_100:Fuel_70" and then split after every ":"

Just wanted to know if there is an easier way, like sending a whole monitor (with layout and stuff) over rednet
Hansbald #4
Posted 26 May 2014 - 06:44 PM
Anyone?
KingofGamesYami #5
Posted 26 May 2014 - 06:52 PM
Well, the way I would do it is a sort of "wrap".
WARNING! UNTESTED CODE!

local wireless = {}
for k, v in pairs( peripheral.getMethods( "side" ) ) do
 wireless[k] = function( ... ) rednet.send( {call = k, args = { ... } } ) end
end
--#exapmle usage
wireless.setCursorPos(1, 1)
wireless.clear()
wireless.setBackgroundColor(colors.blue)
This is the way I created my "wireless peripheral" api. You will need a "slave" computer to receive and interpret commands as well.
Edited on 26 May 2014 - 04:54 PM
negamartin #6
Posted 27 May 2014 - 06:09 AM
Well, you can use wired modems and networking wires.
So, you shift-click one wired modem into the side of the computer that would "read" the info from the rector.
You then would put another wired modem into the monitor in which you want to show the info.
Now, you right-click the monitor's modem and it should turn on. In the chat you will receive a message like: "monitor_0 connected" you have to remember that message.
Then you turn on the computer's MODEM. It will also turn on but you don't have to remember anything.
Then in your program when you do peripheral.wrap("back") or whatever, you replace the "back" for the message that showed in the chat.
For example, if it said "monitor_23 connected", you would do peripheral.wrap("monitor_23")
Now you can draw to the monitor from a distance.

I explained the simplest I could because I don't know how experienced are you and in case a newbie reads this later.
Sorry if I did some mistakes in my english, it's not my first language