Metadata-Version: 2.4
Name: openhasp-config-manager
Version: 0.10.0
Summary: A tool to manage all of your openHASP device configs in a centralized place.
License-Expression: AGPL-3.0-or-later
License-File: LICENSE
Keywords: openhasp,config,management,mqtt,home automation,appdaemon
Author: Markus Ressel
Author-email: mail@markusressel.de
Requires-Python: >=3.12,<3.15
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.12
Classifier: Development Status :: 5 - Production/Stable
Provides-Extra: gui
Requires-Dist: Jinja2 (>=3.1.6)
Requires-Dist: PyQt6 (>=6.11.0) ; extra == "gui"
Requires-Dist: QtAwesome (>=1.4.2) ; extra == "gui"
Requires-Dist: aiohttp (>=3.9.0)
Requires-Dist: aiomqtt
Requires-Dist: click (>=8.4.2)
Requires-Dist: frozenlist (>=1.8.0)
Requires-Dist: multidict (>=6.7.1)
Requires-Dist: orjson (>=3.11.9)
Requires-Dist: paho-mqtt (>=1.6.1,<2.2.0)
Requires-Dist: pfzy (>=0.3.4) ; extra == "gui"
Requires-Dist: pillow (>=12.3.0)
Requires-Dist: py-range-parse (>=1.0.6)
Requires-Dist: pyyaml (>=6.0.3)
Requires-Dist: qt-themes (>=0.4.0) ; extra == "gui"
Requires-Dist: requests (>=2.32.5)
Requires-Dist: segno (>=1.6.6) ; extra == "gui"
Requires-Dist: telnetlib3 (>=4.0.5)
Requires-Dist: temppathlib (>=1.2.0)
Requires-Dist: watchdog (>=6.0.0) ; extra == "gui"
Requires-Dist: yarl (>=1.24.2)
Project-URL: Homepage, https://github.com/markusressel/openhasp-config-manager
Project-URL: Repository, https://github.com/markusressel/openhasp-config-manager
Description-Content-Type: text/markdown

# openhasp-config-manager

The missing management layer for your openHASP setup. A powerful suite of tools to simplify hardware UI design, combining
a logic-aware config engine with a robust API client and deployment automation.

# Features

🏗️ Advanced Configuration Engine

* 🏠 Centralized Management: Manage an unlimited fleet of devices from one folder structure with shared configuration support.
* 🛠️ Smart JSONL Preprocessing:
  * **Multiline Support:** Write clean, readable blocks instead of giant single-line strings.
  * **Jinja2 Templating:** Power your UI with logic, math, and cross-object variables (e.g., `{{ p1b1.y + 10 }}`).
  * **Comments:** Use `//` to document your layout logic directly inside your `.jsonl` files.
  * **YAML Variables:** Define global and local variables to reuse values across your entire setup.
* 🎨 **Global Theme Engine:** Define styles (colors, fonts, radii) once and apply them to all objects instantly.

🚢 Smart Deployment & Validation

* 🛡️ **Early Error Detection:** Automatically catch syntax mistakes in .jsonl and .cmd files before they hit your hardware.
* 🔄 **Delta Deployments:** Save time and flash wear—only upload what changed.
* 🔍 **Visual Diffs:** Review exactly what will change with a git-style +/- line-by-line output.
* 📺 **GUI Preview (WIP):** Inspect and prototype your screens in a digital previewer before deploying. It follows changes to the config files on disk, so you can edit them with a text editor or an LLM at the same time.

🔌 API & Interaction

* 📡 **Unified API Client:** Interact with your plates via a single Python interface over Web or MQTT.
* ⚡ **Command Execution:** Send openHASP commands programmatically.
* 🔔 **Real-time Events:** Subscribe to button presses, state updates, and touch events as they happen.
* 🪄 **AppDaemon Integration Utilities:** Seamlessly integrate with AppDaemon for advanced automations and logic.

# CLI

```shell
> openhasp-config-manager -h
Usage: openhasp-config-manager [OPTIONS] COMMAND [ARGS]...

Options:
  --version   Show the version and exit.
  -h, --help  Show this message and exit.

Commands:
  check       Checks the config directory for errors and warnings,...
  cmd         Sends a command request to a device.
  deploy      Combines the generation and upload of a configuration.
  generate    Generates the output files for all devices in the given...
  help        Show this message and exit.
  listen      Sends a state update request to a device.
  logs        Prints the logs of a device.
  screenshot  Requests a screenshot from the given device and stores it...
  shell       Connects to the telnet server of a device.
  state       Sends a state update request to a device.
  upload      Uploads the previously generated configuration to their...
  vars        Prints the variables accessible in a given path.
```

# 🛠️ Project Status

I use `openhasp-config-manager` **exclusively** to manage my own openHASP devices. While it is my "daily driver", please keep in mind:

* **In Development:** I’m actively adding tests and refining features to make it more robust.
* **Rough Edges:** Error logging is still a bit basic. If something goes wrong, the logs might require some "detective work" to figure out the exact cause.
* **Experimental:** It’s stable for my needs, but since every openHASP setup is unique, you might run into edge cases I haven't hit yet.

If you like the project and want to help polish those error logs or add features, I’m always happy to review an issue or a PR!

# Setup

## Docker

```
docker run -it --rm \
  --name openhasp-config-manager \
  --user 1000:1000 \
  -v "./openhasp-configs:/app/openhasp-configs" \
  -v "./output:/app/output" \
  ghcr.io/markusressel/openhasp-config-manager
```

## Installation

Since openhasp-config-manager needs some dependencies (see [here](/pyproject.toml)) it is
**recommended to install it inside a virtualenv**.

### venv-install

[venv-install](https://github.com/markusressel/venv-install) is a little helper tool to ease the
installation, management and usage of python cli tools in venvs.

```bash
venv-install openhasp-config-manager openhasp-config-manager
openhasp-config-manager -h
```

### Manual
<details>
<summary><b>Manual Installation & Uninstallation</b></summary>

```bash
mkdir -p ~/venvs/openhasp-config-manager
python3 -m venv ~/venvs/openhasp-config-manager
source ~/venvs/openhasp-config-manager/bin/activate
pip3 install openhasp-config-manager
```

The graphical editor (`openhasp-config-manager gui`) has additional dependencies (PyQt6) and is optional:

```bash
pip3 install 'openhasp-config-manager[gui]'
```

And to use it:

```shell
source ~/venvs/openhasp-config-manager/bin/activate
openhasp-config-manager -h
openhasp-config-manager analyze -c "./openhasp-configs"
...
```

### Uninstall

```bash
deactivate
rm -rf ~/venvs/openhasp-config-manager
```

</details>


## Getting Started

openhasp-config-manager is first and foremost a configuration
management system. Simply follow the basic folder structure and
config deployment will become trivial. **Please read all of this,
as it is very important to understand the basic structure on
which everything relies.**

### 📁 Folder Structure

The following folders should reside inside a single parent
folder, f.ex. named `openhasp-configs`. This folder can be
located anywhere you like, but must be accessible to
openhasp-config-manager when executing.

* `common`: The `common` subdirectory can be used for files
  that should be included on _all_ device. This folder is optional.
* `devices`: The `devices` folder is required. It must contain one
  subfolder for each openHASP device you want to configure using
  openhasp-config-manager. It is recommended to name subfolders according
  to the physical devices associated with them.
  * `touch_down_1` (example device folder)
    * A device folder contains `*.jsonl`, `*.cmd` and other files which should
      only be uploaded to that particular device.
    * You can create arbitrary nested folder structures for organizing the files.
      There is a limit to the file name length though,
      see [FAQ](#output-file-name-length-must-not-exceed-30-characters)
    * You must provide a `config.json` file, see [config.json](#config.json)
      for more info.

A more advanced configuration layout could look something like this:

```text
openhasp-configs
├── common
│   ├── content
│   │   └── card.jsonl
│   ├── dialog
│   │   ├── connected.jsonl
│   │   └── offline.jsonl
│   ├── navigation_bar.jsonl
│   └── page_header.jsonl
└── devices
    └── touch_down_1
        ├── 0_home
        │   ├── 0_header.jsonl
        │   ├── 1_content.jsonl
        │   └── page.cmd
        ├── 5_about
        │   ├── 0_header.jsonl
        │   ├── 1_content.jsonl
        │   └── page.cmd
        ├── boot.cmd
        ├── config.json
        ├── offline.cmd
        └── online.cmd
```

### ⚙️ Plate Setup (`config.json`)

openhasp-config-manager makes use of the `config.json` on your plate by extracting information
like the screen orientation. It even allows you to deploy changes within the `config.json` file.

> Note: Since [the official API does not support
uploading the full file](https://github.com/HASwitchPlate/openHASP/issues/363), only settings
which can also be set through the web ui on the plate itself are currently supported.
 
**However**, the official `config.json` file doesn't provide enough info for openhasp-config-manager
to enable all of its features. To fix that we need to add a custom section to the file.

1. Download your config.json via the openHASP web browser, see [official docs](https://www.openhasp.com/latest/faq/?h=web#is-there-a-file-browser-built-in).
2. Append the `openhasp_config_manager` block, adjusting the values as needed.

```json
{
  "openhasp_config_manager": {
    "device": {
      "ip": "192.168.5.134",
      "screen": {
        "width": 320,
        "height": 480
      }
    }
  },
  "wifi": {
    "ssid": "Turris IoT",
    ...
  }
  ... rest of config ...
```

### 🧠 Config File Preprocessing

openhasp-config-manager runs all configuration files through various preprocessors, which allow us to use
features the original file formats do not support by themselves, like f.ex. templating.

#### 📝 Multiline JSONL files

While the JSONL file format requires each object to be on a single line, openhasp-config-manager
allows you to add as many line breaks as you wish. This makes it much easier to edit, since a config
like this:

```json
{
  "page": 0,
  "id": 31,
  "obj": "msgbox",
  "text": "%ip%",
  "auto_close": 5000
}
```

will be deployed like this:

```json lines
{"page": 0, "id": 31, "obj": "msgbox", "text": "%ip%", "auto_close": 5000}
```

#### Comments

Neither JSON nor JSONL allows comments, but openhasp-config-manager does!
You can mark comments by prefixing them with a double forward-slash:

```json5
// File description
{
  // Object Description
  "page": 0,
  "id": 31,
  // Property Description
  "obj": "msgbox",
  "text": "%ip%",
  "auto_close": 5000
}
```

#### 🪄 Templating

You can use Jinja2 templates inside all jsonl object values. To access the value of another object in a
template, you can use the `pXbY` syntax established by openHASP, where `X` is the `page` of an object and
`Y` is its `id`. openhasp-config-manager even tries to resolve templates that lead to other templates.
Be careful not to create loops in this way though.

You can use the full functionality of Jinja2 like f.ex. math operations, function calls or type conversions.

```yaml
{
  "page": 1,
  "id": 1,
  "x": 0,
  "y": 0,
  ...
}

  {
    "page": 1,
    "id": 2,
    "x": "{{ p1b1.x }}",
    "y": "{{ p1b1.y + 10 }}",
    ...
  }
```

#### 📦 Variables & Scoping

Besides accessing other objects, you can also define custom variables yourself, which can then
be referenced inside of templates. Variables are defined using `*.yaml` files. If you
decided to use a subfolder structure to organize your configuration files you can use these folders
to also set the scope of variables. More specific variable definitions (longer path) will override
less specific ones.

##### Global

Global variables can be specified by creating `*.yaml` files inside the root config folder (f.ex. `openhasp-configs`).

Example:

`openhasp-configs/global.vars.yaml`

```yaml
about:
  page_title: "About"
```

To access this variable, use a Jinja2 template:

`openhasp-configs/common/about_page.jsonl`

```json lines
{
  "page": 9,
  "id": 1,
  ...
  "title": "{{ about.page_title }}",
  ...
}
```

##### Device specific

Device specific variables can be specified by creating `*.yaml` files inside any of the sub-folders
of a `device` folder.

> **Note**
>
> Device specific variables will override global variables, given the same name.

Example:

`openhasp-configs/device/my_device/device.vars.yaml`

```yaml
page_title: "My Device"
```

`openhasp-configs/device/my_device/some_folder/some_page.jsonl`

```json lines
{
  "page": 1,
  "id": 1,
  ...
  "title": "{{ page_title }}",
  ...
}
```

`openhasp-configs/device/my_device/some_other_folder/some_page.jsonl`

```json lines
{
  "page": 2,
  "id": 1,
  ...
  "title": "{{ page_title }}",
  ...
}
```

#### Printing variables

If you are not sure what variables are accessible in a given path, you can use the `vars`
command, which will give you a copy&paste ready output of all variables for a
given directory:

```shell
> openhasp-config-manager vars -c openhasp-configs -p devices/touch_down_1/home
common.navbar.first_page: 1
common.navbar.last_page: 4
...
header.title: Home
```

#### 🎨 Theming

To specify default property values for an object type, simply define them as a variable
under `theme.obj.<obj-type>`, where `<obj-type>` is the value of the `obj` property of the object.

The keys used must conform to the naming of the object properties as specified in OpenHasp, see:
https://www.openhasp.com/latest/design/objects/

For example, to make the background color of all buttons red by default, define:

`theme.yaml`
```yaml
theme:
  obj:
    btn:
      bg_color: "#FF0000"
```

in a global variable file named `theme.yaml` located at the root of your configurations directory
`openhasp-configs/theme.yaml`.

## Images and fonts

Put `.png` and `.bin` images, and `.ttf` and `.bin` fonts, anywhere in the `common` folder or a device folder. Like all files they are
uploaded with a flattened name (`devices/plate1/icons/home.png` becomes `icons_home.png`, see
[the file name length](#output-file-name-length-must-not-exceed-30-characters)), and that is the name you refer to.
Only the files that are used are copied to a device:

* **Images** are found by the `L:/` path in your `.jsonl` and `.cmd` files, e.g. `"src": "L:/icons_home.png"`. The text is
  searched after the templates are rendered, so `"src": "L:/icons_{{ name }}.png"` works too. A missing image is an error.
* **Fonts** are referenced by their name on the plate, without `L:/` and without the extension, see the
  [openHASP docs](https://www.openhasp.com/0.7.0/design/fonts/): `"text_font": "fonts_arial_20"` is the binary font `fonts_arial_20.bin`,
  and `"text_font": "fonts_arial20"` is the TrueType font `fonts_arial.ttf` in size 20 (the `.ttf` extension has to be lowercase). The
  `font` of the `hasp` section of `config.json` is searched as well. A font that has no file in the config only produces a warning,
  because it might already be on the plate.
* **Files that are not found in your config files**, e.g. because they are used by MQTT commands from an automation, are copied
  when they match a pattern of the `include_files` variable. It is a list of names on the plate, with `*` and `?` as wildcards. Define it in
  a variable file of the root folder to include them for every device, or in the folder of a device for that device
  (a device's list replaces the global one):

```yaml
include_files:
  - icons_weather_*.png
  - fonts_arial.ttf
```

* **Binary images**: a PNG is decoded into the memory of the plate, while a binary image (`.bin`) is read from flash each time, so it
  needs no PSRAM and no memory. The disadvantage is that openHASP can't use `zoom` and `angle` with it, and the file is bigger. List the PNG
  images that should be converted when they are deployed in the `binary_images` variable (names on the plate, with `*` and `?`, set
  like `include_files`). The references in your files change to the `.bin` file, your sources stay as they are. An image
  that is not fully opaque gets an alpha byte per pixel. The size is the size of the PNG, so scale it as it should be shown.

```yaml
binary_images:
  - icons_*.png
```

## Deployment

To deploy your configurations to the already connected openHASP devices, simply use the
`generate`, `upload` or `deploy` commands of `openhasp-config-manager`.

`deploy` uploads what changed and makes the plate load it. If only pages, commands or PNG images changed, the plate rebuilds its pages
from the files (like after a restart, but faster and without losing the connection). Changed idle timeouts, backlight and cursor
settings are applied to the running plate, like haad does. It restarts if its MQTT, HTTP or rotation settings, fonts or `.bin` files
(could be fonts) changed, because it only loads those at startup. `--restart` restarts it after every change.

> **Note**
> openhasp-config-manager needs direct IP access as well as an enabled webservice on the plate
> to be able to deploy files to the device. To enable the webservice
> try: `openhasp-config-manager cmd -d plate35 -C service -p "start http"`

## Undo and redo in the GUI

`Ctrl+Z` undoes an edit of the draft in the preview (moving, adding, removing, pasting objects, changing their properties) and
`Ctrl+Shift+Z` redoes it, also in the *Edit* menu and on the preview. Undo goes to the page of the change and selects the changed
objects. Typing into a property, or nudging with the arrow keys, is one step. Saved changes can be undone too (the draft has changes
again then). Revert, *Reload from disk* and changes of the files by someone else start a new history. While a text field has the
focus, `Ctrl+Z` undoes its text instead.

## Editing the files as text in the GUI

The **Code** panel below the preview shows the files in three ways, like the code/design views of an IDE: **Source** (the text
editor), **Rendered** (the JSONL of the page the way the plate gets it) and **Split** (both side by side or above each other, with a
splitter). Double-click a file in the Files tree to open it (JSONL, `.cmd` and variable files), or select an object in the preview
while the source is shown: the editor jumps to the line of the object. It works the other way too: moving the cursor into an
object (typing, clicking, arrow keys) selects that object in the preview, on its page.

The editor knows the JSONL dialect of this project: comments, trailing commas, objects over several lines and `{{ templates }}`
(also nested ones) are highlighted. It marks what is wrong while you type (an object that is not closed, invalid JSON, an invalid
template, invalid YAML), and the problems the preview shows (e.g. an object outside of the screen) at the line of their object.
Other features: line numbers, matching brackets, auto-closing of brackets and quotes, smart indentation, `Ctrl+/` to comment lines,
`Ctrl+D` to duplicate lines, `Ctrl+Space` completion (object properties, and the template variables a file can use), search and
replace (`Ctrl+F`, with match case, whole words and regular expressions), `Ctrl+wheel` to zoom, word wrap and whitespace display
(menu of the Code panel). `Ctrl+S` saves the file, then the pages follow it.

More features for the objects of a `.jsonl` file:

- **Folding**: click the arrow in the gutter, or `Ctrl+-` / `Ctrl+=` for the object at the cursor, `Ctrl+Shift+-` / `Ctrl+Alt+=`
  for all objects. A fold opens by itself when the cursor moves into it (e.g. by a search).
- **Completion** (`Ctrl+Space`, or while typing): offers the properties that make sense for the `obj` type of the object (a `slider`
  gets `val`, `min`, `max`, but no `text`), without those the object has already. Once you type a style property
  (`bg_color`), the suffixes for the part and state of the object type are offered (`bg_color10`, `bg_color12`, ...). A card
  next to the list explains the highlighted entry. The key can be completed before its opening quote is typed. Choosing a
  property writes the key with its quotes and the colon, and for text values (`align`, `text`, colors, ...) the quotes of the value
  with the cursor between them: `"align": "|"`. Objects without a known `obj` get every property.
- **Hover**: rest the mouse on a property name for a card with what it does for this object type, the problems of the line, and a
  link to the openHASP documentation. A style property with a two digit suffix (`bg_color12`) is explained by part and state (10 is
  the indicator, 20 the knob, ...; 02 is pressed), with the names the object type uses, e.g. the colored track of a `switch`. The card
  stays while the mouse is on it, so its text can be selected and copied; it goes away when you type, scroll, or click into the text.
- **Format document** (`Ctrl+Alt+L`): indents the lines by the depth of the brackets and removes spaces at the end of lines. Comments,
  blank lines and the order of properties stay as they are.
- **Rename id** (`Shift+F6`): changes the `id` of the object at the cursor and the `parentid` of the objects on the same page that
  have it as their parent. It refuses an id the page already uses. References in other files or in strings (`p1b2`) are not changed.
- **Ctrl+click** on `run L:/pages.jsonl` in a `.cmd` file opens the file that has that name on the plate.

All of these are also in the context menu.

Every file is edited on its own, separate from the unsaved changes of the visual editor. If a file changes on disk (an LLM, another
editor) while its tab has no changes, the tab follows quietly. If it has changes, the tab offers to reload from disk or to keep
your version.

## Working with an LLM next to the GUI

The config files are plain text, so an LLM (or any tool) can edit them while the GUI is open: the GUI reloads when files change. A
draft with unsaved changes is never replaced, the GUI asks first.

For context the files don't have, the GUI keeps `.openhasp-config-manager/gui-state.json` in the config directory up to date: the
device and page that are open, the selected objects (with file and line), the unsaved changes, the warnings and errors the GUI shows,
files it can't load (e.g. invalid JSON) and the connection to the plate. The folder is ignored by git and has a `README.md` that
describes the format. A tool should check that `running` is `true` and the `pid` exists. Everything still works without the file. Without the GUI, `openhasp-config-manager check -c <config dir>` prints the same problems
(and what a deployment would fail on) for all devices, as text or `--json`, and exits with 1 on errors.
Tell your LLM about it, e.g. in the `AGENTS.md` or `CLAUDE.md` of your config repository:

```markdown
While the openhasp-config-manager GUI runs, `.openhasp-config-manager/gui-state.json` tells what the user has open and which
problems the GUI shows (see the README in that folder). Edit only the config files.
```

## Run commands

While openhasp-config-manager is first and foremost a config management system,
it also allows you to run commands on a device by issuing MQTT messages without the need to install a separate
MQTT client first. Note that the MQTT _server_ still needs to be running and also has to
be reachable from your local machine for this to work.

For a list of possible commands to send to a device, take a look at the official
documentation: https://openhasp.haswitchplate.com/latest/commands/

```shell
> openhasp-config-manager cmd -c ./openhasp-configs -d plate35 -C backlight -p "{\"state\":\"on\",\"brightness\":128}"
```

## AppDaemon Integration Utilities

If you want to integrate your openHASP devices with [AppDaemon](https://github.com/AppDaemon/appdaemon), openhasp-config-manager contains
some utilities to make this process easier. They run inside AppDaemon, so AppDaemon itself is not a dependency of this package: use
the `openhasp-config-manager` package from your AppDaemon environment (AppDaemon pins older versions of some libraries).

### Plate Controller

The `OpenHaspController` class provides a high-level interface to manage the state of your plate, send commands and listen to events.
See: [openhasp_config_manager/ad/README.md](openhasp_config_manager/ad/README.md) for more details and examples.

## API Client

If you don't want to use all of the file-tree related features of openhasp-config-manager,
but still want to interact with your openHASP devices using python and the official API,
you can use the `OpenHaspClient` class to do so. It provides a simple interface
to interact with a plate, send commands, listen to events and state updates.

See

- [example.py](example.py)
- [example_image.py](example_image.py)
- [example_jsonl.py](example_jsonl.py)

to see how to use it.

# FAQ

## How do I see device logs?

Try the `logs` command (this does require network access to the device):

```shell
> openhasp-config-manager logs -d plate35
```

It prints the log until you press Ctrl+C, with the parts of a line (time, tag, message) and the errors and warnings highlighted. Useful options:

- `--reconnect` connects again when the connection to the device is lost, e.g. while it restarts.
- `-o plate35.log` also appends the log to a file (without colors).
- `--no-color` turns the highlighting off. It is off anyway if the output is not a terminal.

The status of the connection is printed to stderr, so the log itself can be piped into other tools, e.g. [lnav](https://lnav.org):

```shell
> openhasp-config-manager logs -d plate35 --reconnect | lnav
```

The log is read from the telnet server of the device, which only allows one connection at a time. A second `logs` or `shell`
(or the Logs panel of the GUI) has to wait until the first one is closed.

openHASP doesn't write the level of a message as text, only as the color of the line, and only if the device sends colors
(`"debug": {"ansi": 1}` in its `config.json`). Without it the level is guessed from the tag and words like "failed" or "timeout".
The Logs panel of the GUI notices a plate without colors and offers to turn them on (at once over MQTT, and in the `config.json` of
the device so a deploy keeps it).

If that doesn't work, open a terminal and run the following command with the device connected via USB cable:

```shell
bash -c "screen -q -L -Logfile device.log /dev/ttyUSB0 115200 &> /dev/null; tail -F device.log; killall screen"
```

## Output file name length must not exceed 30 characters

openHASP doesn't support subfolders. To keep your local project organized, the manager flattens your structure 
during upload (e.g., `folder/page.jsonl` becomes `folder_page.jsonl`). So f.ex. the file in the following structure:

```text
openhasp-configs
└── devices
    └── touch_down_1
        └── 0_home
            └── 0_header.jsonl
```

would be uploaded to the `touch_down_1` device with the name `0_home_0_header.jsonl`.

To avoid the "Output file name length must not exceed 30 characters" error, make sure that the
flattened file name (including the device folder prefix) does not exceed 30 characters.

# Contributing

GitHub is for social coding: if you want to write code, I encourage contributions
through pull requests from forks of this repository. Create GitHub tickets for
bugs and new features and comment on the ones that you are interested in.

# License

```text
openhasp-config-manager is free software: you can redistribute it and/or modify
it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
```

