This application prints a label on a label printer with the given input parameter.
This is an interactive application to print a label on the selected label printer with the selected label template with the entered parameters.
You have to modify the config/options.yml
file with the correct URLs.
To start the application just type:
./run.sh
It checks if the bundler is installed, if not then it installs it. It also checks the gem dependencies and if not satisfied, then do a bundle install. If everything went well then it starts the application.
-
Select the server
The first step list the root URLs of the available servers to print a label. These can be modify/add/delete in the config/options.yml file.
You have to select one of them. Just type the number before the URL. If the selected server is not available to process your request you will get an error message and you can select another one from the list.
-
Select the label printer
In this step you can select the label printer to print your label. Just type the number before the printer name. If you are just testing, you can use our label printers currently named:
- e367bc
- d304bc
The printer names starting with letter 'g' is in the laboratory (g214bc, g216bc). Please don't use it for testing purposes.
-
Select a label template
Select a template from the available templates the selected printer has. After you have selected the template it is appearing on the screen. If it is not the required one, then you can always go back and select another one if you type n or no. If it is the required one, then just hit ENTER.
-
Fill in the template
In this step you can add value to the placeholders in the template. If you don't want to add value to a placeholder just hit ENTER.
-
Fill in the header
In this step you can add values to the header. If you don't want to add value just hit ENTER.
-
Fill in the footer
In this step you can add values to the footer. If you don't want to add value just hit ENTER.
That's it. If everything went fine your selected printer printed your label.