2.2.0 • Published 6 years ago
baca-gen-data-image v2.2.0
baca-gen-data-image
Installation
npm i -g --unsafe-perm baca-gen-data-imageOn 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-devCLI arguments
--versionShow version number--helpShow help--configPath to JSON config file--gsm-statusID of the GSM icon that should be displayed--gsm-textText that will be displayed next to GSM status icon--gps-statusID of the GPS icon that should be displayed--gps-textText that will be displayed next to GPS status icon--usb-statusID of the USB icon that should be displayed--usb-textText that will be displayed next to USB status icon--datetimeValues that will be displayed next to datetime icon--headersComma separated list of header values--unitsComma separated list of header units--valuesSlash/separated list of comma separated lists containing values to display--serialsComma separated list of serials--notificationNotification message that should be displayed, omit if no message should be shown--orientation,-ODescribes what rotation should be applied before rendering, possible options 0, 90, 180, 270--output,-oPath 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.pngwould result in following image:
