Difference between revisions of "OpenComputers Interface"
| Line 7: | Line 7: | ||
First, place the block next to an OpenComputers computer and link it to a screen using the [[Linking Tool]]. Then, you'll need its OpenComputers address, which can be obtained this way: | First, place the block next to an OpenComputers computer and link it to a screen using the [[Linking Tool]]. Then, you'll need its OpenComputers address, which can be obtained this way: | ||
<syntaxhighlight lang="lua" line='line'> | <syntaxhighlight lang="lua" line='line'> | ||
| − | component = component or require(" | + | component = component or require("component") |
wdScreenAddress = nil | wdScreenAddress = nil | ||
Revision as of 23:58, 12 February 2018
The OpenComputers Interface is a peripheral which can be used by OpenComputers computers to interact with screens.
Contents
Recipe
How to use
First, place the block next to an OpenComputers computer and link it to a screen using the Linking Tool. Then, you'll need its OpenComputers address, which can be obtained this way:
component = component or require("component")
wdScreenAddress = nil
for addr, name in component.list() do
if name == "webdisplays" then
wdScreenAddress = addr
break
end
end
if not wdScreenAddress then
print("Couldn't find WebDisplays screen")
return
endThen, you'll need a proxy to execute WebDisplays functions:
wdScreen = component.proxy(wdScreenAddress)This process is detailed on the OpenComputers wiki.
Permissions
This interface will have the same restrictions and permissions and the player who placed the block.
Functions
TODO
