.. | ||
loggerClient.lua | ||
readme.md | ||
server.lua |
central logging system
Logs data sent to it by various computers and prints it on printed pieces of paper.
Server Setup
- Download
server.lua
and put it on your computer (for example with wget) and put it in the startup folder (you might have to make this). - Attach a printer and a modem to the computer and note on what side of the computer they are.
- Edit the file and change the variables
printerSide
andmodemSide
if needed. - Download the dependency and "install" it by putting
AES.lua
in the root directoy - Decide on a shared key, this has to be a number (for example use something like
openssl rand -hex 16
and prefix it with0x
to get a random 16 byte number) - Run
set AES.key <your shared key>
- Choose a channel number and set the channel by changing the
channel
variable.
Client Setup
- download
loggerClient.lua
and put it on your computer. - attach a modem to the computer and note what side it is on.
- set the settings
logger.AES.key
,logger.modemSide
andlogger.channel
. - download the AES dependency and put it in the root directory.
- use
require
to include to use this library.
Example
local logger = require("/loggerClient")
logger.log("testLogger", "this is a test log")