Skip to content

Commit

Permalink
More code repo and code tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottGibb committed Jun 14, 2024
1 parent 154f5ac commit 97510e7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG MAINTAINER
FROM debian:bullseye-slim
FROM debian:bookworm-slim

# Install Packages (basic tools, cups, basic drivers, HP drivers)
RUN apt-get update \
Expand Down
27 changes: 27 additions & 0 deletions README.md → ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,29 @@ As for installing the software, the best way of installing this is to use the Do
docker ps
```

## Directory Structure

The following is the directory structure of the project:

```bash
tree -L 1
.
├── conf
├── docker-compose.yml
├── Dockerfile
├── docs
├── ppd
├── ReadMe.md
├── ruff.toml
├── scripts
└── test.txt
```

- conf: is the configuration folder for cups
- ppd: is the PostScript Printer Description files for the Dymo LabelWriters
- docs: All diagrams and related documentation goes here
- scripts: the scripts that go inside the docker container, for more information read [this](./scripts/ReadMe.md).

## Setting up your Windows Device

When setting up windows you will need to do the following steps:
Expand All @@ -61,6 +84,10 @@ You must first download Dymo Connect before adding the cups printer to your wind

You should then be able to use the printer from the rest of windows.

## Setting up the Dymo LabelWriter using the CUPS UI

This seems to happen a lot [issue](https://forums.raspberrypi.com/viewtopic.php?t=333307)

## Developer Story and Issues


Expand Down
8 changes: 8 additions & 0 deletions scripts/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Scripts

## Summary

This folder contains all the scripts used for the cups docker container

- [setup.sh](./setup.sh) Called at the start of the docker container
- [add_printers.py](./add_printers.py) Adds the printers to cups
3 changes: 3 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# A simple Bash Script to enable the cups server and call the python
# script which will then add the Printers to cups on boot

# Launch cupds in the foreground
echo "INFO: Detected USB Connections"
lsusb
Expand Down

0 comments on commit 97510e7

Please sign in to comment.