https://github.com/katyo/horizon-utils
Horizon-EDA command-line utilities
https://github.com/katyo/horizon-utils
Last synced: 11 months ago
JSON representation
Horizon-EDA command-line utilities
- Host: GitHub
- URL: https://github.com/katyo/horizon-utils
- Owner: katyo
- Created: 2024-06-19T08:07:52.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T08:15:28.000Z (almost 2 years ago)
- Last Synced: 2025-07-02T23:35:57.288Z (12 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Horizon-EDA utilities
## Utilities
### brd2tpl
This tool intended to export board as proto template.
```
usage: brd2tpl [-h] [-f FIELD] [-m MARGIN] [-b BORDER] [-d HOLE] [-r ROTATE] [-c MARKER_PDF] [-p MARKER_OFFSET] input output
Export horizon-eda board to photo template
positional arguments:
input Project to export
output PDF file to export to
options:
-h, --help show this help message and exit
-f FIELD, --field FIELD
The top field width (mm)
-m MARGIN, --margin MARGIN
The margin distance (mm)
-b BORDER, --border BORDER
The border width (mm)
-d HOLE, --hole HOLE The hole diameter (mm)
-r ROTATE, --rotate ROTATE
The rotation angle (deg)
-c MARKER_PDF, --marker-pdf MARKER_PDF
The PDF file to use as marker
-p MARKER_OFFSET, --marker-offset MARKER_OFFSET
The marker to corner distance (mm)
See https://github.com/katyo/horizon-utils
```
Export board from project with rotation and markers at corders:
```
brd2tpl -c marker.pdf -r 90 project.hprj board-tpl.pdf
```
## Installation
### NixOS
Add channel:
```
$ sudo nix-channel --add https://github.com/katyo/horizon-utils/archive/master.tar.gz horizon-utils
$ sudo nix-channel --update horizon-utils
```
Edit config:
```
imports = [ ];
environment.systemPackages = with pkgs; [ horizon-utils ];
```