Skip to content

Create pull request every time you re-configure your patch bay. Auto-generate labels with Python. For Brother P-Touch label printer

Notifications You must be signed in to change notification settings

fogg4444/patch_bay_label_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Patch Bay Label Generator

Features

  • Store patch bay routing definitions as code
  • Use version control to track changes to patch bay layout
  • Auto generate labels

Printer & Tape

(small enough to fit the Neutrik 1/4" patch bays I'm using)

How to use

I've got my personal patch config saved in this repo. At some point I'll remove the config code from the generation script and make this easier to use for others. You can fork the repo, or pull it and modify.

Editing Patch bay config

  • Config is a list of objects, formatted like so:
[
  {
    "label_name": "patch-bay-1",
    "entries": [
        {
            "normalled": True,
            "top": "1-24 Inputs",
            "bottom": "1-24 Outputs",
            "width": 24
        },
    ]
  }
]
  • Width allows you to group things together under the same label
  • Normalled: script will generate an underline to visually notify that a patch point is normalled
  • Code is currently set to enforce 24 points per bay. This can be modified in the python

Generating patch label files

  • Run bash generate.sh
  • Your images should be exported to label_outputs
  • Commit your output images if you want to keep them in version control

Printing

  • Download some drivers?? I don't remember what I did here...

  • Add Brother printer to your list of printers

  • Printer will have a series of pre-set page sizes. Disregard all of these

  • Click on Manage Custom Sizes

  • Create a new page size to match the settings in your python file.
    • I'm using 17" width, and .14" height for the .13 tape.

  • Auto rotate and Scale to Fit settings seem to work

  • Print!

About

Create pull request every time you re-configure your patch bay. Auto-generate labels with Python. For Brother P-Touch label printer

Topics

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •