8000 Add support for P1P, A1 and A1M by fidoriel · Pull Request #13 · fidoriel/BambUI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for P1P, A1 and A1M #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,33 @@ Features:

## Installation

The following printer models are supported:

- P1 Series P1S and P1P
- A1 Series A1 and A1M

You will need 4 Env vars to add a printer:

For the printer model following strings are used: `P1S`, `P1P`, `A1` or `A1M`.

Replace `<something>` with the apropiate values for your machine.
You may add as many printers as you like.
`<PRINTER_NAME>` is an arbitrary name you give your machine.
You may use it for identification.
All env vars associated with one printer may have the same name.
This name will be visible across the UI.
You may choose this at any time.
It has no functionality except identification and is no referral to the printer, so you may choose a name that you like.
It will only be used within BambUI.
You can add this env block for as many printers as you like.

```bash
BAMBUI_PRINTER.<PRINTER_NAME>.IP=<PRINTER_IP>
BAMBUI_PRINTER.<PRINTER_NAME>.ACCESS_CODE=<PRINTER_ACCESS_CODE>
BAMBUI_PRINTER.<PRINTER_NAME>.SERIAL=<PRINTER_SERIAL_NUMBER>
BAMBUI_PRINTER.<PRINTER_NAME>.MODEL=<PRINTER_MODEL>
```

### Using docker commandline

Start the service:
Expand Down
2 changes: 1 addition & 1 deletion backend/printers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Printer:
ip: str
access_code: str
serial: str
model: Literal["P1S"]
model: Literal["P1S", "P1P", "A1", "A1M"]
username: str = "bblp"
port: int = 8883
ftp_port: int = 990
Expand Down
0