Skip to content

Commit

Permalink
extras/logs: add timelapse.py (#367)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Black <andrewblack2656@gmail.com>
  • Loading branch information
netux and VanillaSixtySix committed Jun 2, 2020
1 parent 8c66f3c commit 21614ec
Show file tree
Hide file tree
Showing 2 changed files with 455 additions and 1 deletion.
18 changes: 17 additions & 1 deletion extras/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,21 @@ By default, it reads from `pixels.log` and writes to `pixels.sanit.log`

### Running

1. Inside `logs/`, execute the script with `pipenv run python sanitize.py [/path/to/pixels.log] [--output-path /output/path/pixels.sanit.log]`
1. Inside `logs/`, execute the script with `pipenv run python sanitize.py [/path/to/pixels.log] [/output/path/pixels.sanit.log]`
- add `--snip` to also change all usernames to "-snip-"


## logs/timelapse.py

`logs/timelapse.py` allows for creating timelapses out of a `default_board.dat` (initial canvas state) and a `pixels.log` file (found in the _logs/_ directory).
It might also ask for the canvas width and palette used.

The script allows for customizing the output. Use the `--help` parameter to kow more

### Running

1. Make sure to have a `pxls.conf` somewhere in your PC. If the `pxls.conf` is placed as much as three directories above the `reset/` directory, the script will try find it automatically.
- if it doesn't find it, you can specify it's path with the `--config-path /path/to/pxls.conf` argument
2. Inside `logs/`, execute the script with `pipenv run python timelapse.py /path/to/pixels.log`
- add `-h` or `--help` to see a list of available arguments.
- add `--default-board-path /path/to/default_board.dat` if you're using a custom `default_board.dat`.
Loading

0 comments on commit 21614ec

Please sign in to comment.