This is a simple command line program to generate QR codes for HomeBox. As the built in QR code generator is fairly limited in terms of layout and does not support generating QR codes for anything but items
- You will need a copy of the dotnet 9.0 SDK for your platform if you do not have it already.
- Download a copy of the source code either by running
git clone https://github.com/thevortexcloud/HomeBoxQrGenerator.git
in a terminal, or downloading the zip file from github and extract the files somewhere. - Once you have downloaded everything, open a terminal/cmd/powershell window in the location where you put the source code (you want to be in the root directory where the
HomeBoxQrGenerator.sln
file is). - Run
dotnet build
- Assuming it completes without errors, you should be able to navigate to the
HomeBoxQrGenerator.Cli/bin/
folder to find the compiled output. - You have now compiled the program
All functionality can be executed by running the HomeBoxQrGenerator.Cli.exe
(or HomeBoxQrGenerator.Cli
on Mac/Linux) file. This is a command line program as such it is expected to be run from a terminal. The following options are currently supported
Option | Name | Description |
---|---|---|
--type | Type | Changes the type of label to be generated from HomeBox. Supported values are item ,location . NOTE: Type values ARE case sensitive |
--host | Host | The server host of the HomeBox server. EG https://demo.homebox.software/ |
--username | Username | The username to use to login to the HomeBox server |
--password | Password | The password to use to login to the HomeBox Server |
--query | Query | Used to specify what thing specifically should be returned from the server. EG if this is an item id it will result in a QR code being generated for the given item id. Some types also allow for searching for values instead of using a specific id. |
--output | Output | The name of the file and location it should be outputted to. EG ./code.png . NOTE: Only PNG files will be outputted, regardless of file extension |
For example to generate a item label for the Smart Rocker Light Dimmer on the demo site you could do:
HomeBoxQrGenerator.Cli.exe --type item --host https://demo.homebox.software/ --username [email protected] --password demo --query dimmer --output ./code.png