How paper is printed at SCE.
Clone the SCE dev tool and follow the guide for setup: https://github.com/SCE-Development/SCE-CLI#setup
sce clone q
cd Quasar
sce link q
- Make a copy of
config/config.example.json
toconfig/config.json
- fill out
config/config.json
with the appropriate values:
{
"HEALTH_CHECK": {
"CORE_V4_IP": "this is an ip address, i.e. 127.0.0.1"
},
"PRINTING": {
"LEFT": {
"ENABLED": true,
"NAME": "name of left printer in sce",
"IP": "ip address of the left printer in sce",
"LPD_URL": "lpd://<ip address of left printer>"
},
"RIGHT": {
"ENABLED": true,
"NAME": "name of right printer in sce",
"IP": "ip address of the right printer in sce",
"LPD_URL": "lpd://<ip address of right printer>"
}
}
}
- Run the project with
sce run q
. The server will run and accept requests on http://localhost:14000. - to verify the files are making it to the server, comment out the line using
unlink
inserver.py
. Data recieved is written to thetmp
folder within this project.
Note: This is for deploying production Quasar only!
- Follow this guide to generate ssh keys on your machine
- Ensure the keys were outputted to files containing
id_ed25519
docker-compose up
, the generated keys will be mounted in the health check container
- make sure to set the
ENABLED
field to true for the printer you wish to print at - ensure the
IP
andLPD_URL
field are using the same IP address of the corresponding printer - the
NAME
field can be whatever you want, i.e.right-printer
. It's for thelp
command to use in sending the print request
- just run
docker-compose up --build -d
- the logs of the server can be observed with
docker logs sce-printer --tail 300 -f