log2life

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

README.md (1047B)


      1 # log2life
      2 
      3 This project reads lighttpd server logs, converts the request data to [Life
      4 1.05 patterns](https://conwaylife.com/wiki/Life_1.05) and then sends them to a
      5 [sdl2-life server](https://github.com/bcl/sdl2-life) using the client IP as an
      6 x, y coordinate in the Life world.
      7 
      8 ## Quickstart
      9 
     10 * Download and build [sdl2-life server](https://github.com/bcl/sdl2-life)
     11 * Build log2life by running `go build`
     12 * Start the life server with `sdl2-life -rows 250 -columns 250 -server -empty`
     13 * Pass a logfile to the server by running `log2life -rows 250 -columns 250 /path/to/logfile.log`
     14 
     15 That will use the timestamps in the logfile to replay the requests in realtime.
     16 You can control the playback speed by passing '-speed 10' to playback at 10x
     17 realtime.
     18 
     19 The width and height should match the rows and columns used in sdl2-life.
     20 
     21 If you want to pipe live server logs you can do something like this:
     22 
     23     ssh foo@server tail -f /var/log/lighttpd/access.log | log2life -rows 250 -columns 250 -
     24 
     25 Which will read from stdin and ignore the timestamps.