2.2.0 • Published 5 years ago
baca-gen-data-image v2.2.0
baca-gen-data-image
Installation
npm i -g --unsafe-perm baca-gen-data-image
On linux systems this command should be ran with sudo
.
Debian
On debian based systems following packages should be installed
sudo apt install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
CLI arguments
--version
Show version number--help
Show help--config
Path to JSON config file--gsm-status
ID of the GSM icon that should be displayed--gsm-text
Text that will be displayed next to GSM status icon--gps-status
ID of the GPS icon that should be displayed--gps-text
Text that will be displayed next to GPS status icon--usb-status
ID of the USB icon that should be displayed--usb-text
Text that will be displayed next to USB status icon--datetime
Values that will be displayed next to datetime icon--headers
Comma separated list of header values--units
Comma separated list of header units--values
Slash/
separated list of comma separated lists containing values to display--serials
Comma separated list of serials--notification
Notification message that should be displayed, omit if no message should be shown--orientation
,-O
Describes what rotation should be applied before rendering, possible options 0, 90, 180, 270--output
,-o
Path to the output file
Example:
Running following command
node src/index.js \
--gsm-status "no-sim" \
--gsm-text "no GSM service" \
--gps-status "no-gps" \
--gps-text "no GPS signal" \
--usb-status "no-usb" \
--usb-text "no USB drives" \
--datetime "1234-56-78 12:34:56" \
--headers "A,B,C,D,E" \
--units "Q,W,E,R,T" \
--values "1,2,3,4,5/6,7,8,9,0/12.34,23.45,34.56,45.67,56.78" \
--serials "S123,S456,S789" \
--orientation 90 \
--output image.png
would result in following image: