-
Notifications
You must be signed in to change notification settings - Fork 0
/
USAGE
33 lines (24 loc) · 972 Bytes
/
USAGE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
==========================
USAGE ON MAC OS
==========================
# google search homebrew macos to install homebrew
brew install --formula python imagemagick
brew install --cask --require-sha mactex
# install the rebrick python module from pypi
pip3 install rebrick
pip3 install brickse
pip3 install python-bricklink-api
# get account on rebrickable.com and obtain api key
echo 'api_key: <my_api_key>' > rebrick_api_key.yml
# example hex key (not a real one)
echo 'api_key: db161ef60f45e5d76cf92b6a6d6a3f6b' > rebrick_api_key.yml
# lookup the set data and save to CSV
./lookupLegoRebrick.py example_sets.csv
# create TeX file from rebrickable CSV data
./makeLabels.py output-rebrick_legoid_data-??????????.csv
# (optional) trim whitespace from edges of images
mogrify -verbose -trim images/*.jpg
# create PDF from TeX file
xelatex output-rebrick_legoid_data-??????????.tex
# open the PDF file in Preview.app
open output-rebrick_legoid_data-??????????.pdf