Skip to content

Commit

Permalink
Setting up cups in the gui
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottGibb committed Jun 14, 2024
1 parent 97510e7 commit bb147ab
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 4 deletions.
33 changes: 32 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,42 @@ You should then be able to use the printer from the rest of windows.

## Setting up the Dymo LabelWriter using the CUPS UI

If for some reason you are like myself, in which the auto setup does not seem to work correctly and the printer is always
""Waiting for printer to become available." Then you will have to set up the printer manually, like so:
### Step 1: Go to Administration and add a printer
![alt text](./docs/cups%20setup%20gui/image.png)
![alt text](./docs/cups%20setup%20gui/image-1.png)
### Step 2: Select Dymo LabelWriter
![alt text](./docs/cups%20setup%20gui/image-2.png)
### Step 3: Rename and Share
![alt text](./docs/cups%20setup%20gui/image-3.png)
### Step 4: Select Dymo LabelWriter 450
![alt text](./docs/cups%20setup%20gui/image-4.png)
Im not sure why there is two options of everything
### Step 5: Set your printer options
![alt text](./docs/cups%20setup%20gui/image-5.png)
This seems to happen a lot [issue](https://forums.raspberrypi.com/viewtopic.php?t=333307)
## Developer Story and Issues
## Known Issues
### Google Chrome Print Pages
For some reason chrome doesnt always have the printer pages imediately, in this case swapping between the printers
seems to work and it eventually shows.
### Google Chrome No fit to scale
For some reason chrome doesnt have the fit to scale option anymore, no idea why that is.
## Continuous Integration Pipelines
Expand Down
Binary file added docs/cups setup gui/image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cups setup gui/image-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cups setup gui/image-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cups setup gui/image-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cups setup gui/image-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cups setup gui/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions scripts/add_printers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@
)
subprocess.call(f"cupsenable {printerName}", shell=True)
subprocess.call(f"cupsaccept {printerName}", shell=True)
subprocess.call(
f"lpoptions -d {printerName}", shell=True
) # Set Default Printer to this one
subprocess.call(f"lpoptions -d {printerName}", shell=True) # Set Default Printer to this one
print(f"Printer '{printerName}' added")
print(f"Waiting {INIT_PERIOD_S}s")
time.sleep(INIT_PERIOD_S)
Expand Down

0 comments on commit bb147ab

Please sign in to comment.