Feed log lines to sdl2-life as Life 1.05 patterns
git clone https://www.brianlane.com/git/log2life
Log | Files | Refs | README

commit 2f7f0433e8bdc311c79cf3070a06d108129d66b2
parent 9fc51952fca17d3515c7e1c17c8ceb08d8c2b770
Author: Brian C. Lane <bcl@brianlane.com>
Date:   Sat, 26 Nov 2022 09:07:38 -0800

Add README.md with basic instructions

AREADME.md | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -0,0 +1,25 @@ += log2life + +This project reads lighttpd server logs, converts the request data to [Life +1.05 patterns](https://conwaylife.com/wiki/Life_1.05) and then sends them to a +[sdl2-life server](https://github.com/bcl/sdl2-life) using the client IP as an +x, y coordinate in the Life world. + +== Quickstart + +* Download and build [sdl2-life server](https://github.com/bcl/sdl2-life) +* Build log2life by running `go build` +* Start the life server with `sdl2-life -rows 255 -columns 255 -server -empty` +* Pass a logfile to the server by running `log2life -width 255 -height 255 /path/to/logfile.log` + +That will use the timestamps in the logfile to replay the requests in realtime. +You can control the playback speed by passing '-speed 10' to playback at 10x +realtime. + +The width and height should match the rows and columns used in sdl2-life. + +If you want to pipe live server logs you can do something like this: + + ssh foo@server tail -f /var/log/lighttpd/access.log | log2life - + +Which will read from stdin and ignore the timestamps.