Skip to content

Commit

Permalink
docs(all): restructure and minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Sep 29, 2023
1 parent 77e529b commit c06b701
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .vscode/ltex.dictionary.en-AU.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fyne
Hass
37 changes: 22 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# go-hass-app
<!--
Copyright (c) 2023 Joshua Rich <[email protected]>
This software is released under the MIT License.
https://opensource.org/licenses/MIT
-->

# Go Hass Agent

![MIT](https://img.shields.io/github/license/joshuar/go-hass-agent)
![GitHub last commit](https://img.shields.io/github/last-commit/joshuar/go-hass-agent)
Expand Down Expand Up @@ -50,8 +57,8 @@ See also the [FAQ](docs/faq.md).
## 🤝 Compatibility

Currently, only Linux is supported. Though the code is designed to be extensible
to other operating systems. See [the development docs](docs/development.md) for
details on how to extend for other operating systems.
to other operating systems. See development information in the
[docs](docs/README.md) for details on how to extend for other operating systems.

## ⬇️ Installation

Expand All @@ -65,20 +72,20 @@ distribution:
- For **Arch**, use the `.tar.zst`.

For other distributions not listed above, you can try the binary, or build it
yourself from source (see [development](docs/development.md)). Note that while
yourself from source (see development [docs](docs/README.md)). Note that while
Go is known for statically compiled binaries that "run anywhere", the Fyne UI
toolkit used by **go-hass-agent** makes use of shared libraries that may need to
toolkit used by Go Hass Agent makes use of shared libraries that may need to
be installed as well.

## 🖱️ Usage

**go-hass-agent** runs as a tray icon by default. It is operating system,
Go Hass Agent runs as a tray icon by default. It is operating system,
distribution and desktop-environment agnostic and should manifest itself in any
tray of any desktop environment.

### First-run

On first-run, **go-hass-agent** will display a window where you will need to enter
On first-run, Go Hass Agent will display a window where you will need to enter
some details, so it can register itself with a Home Assistant instance to be
able to report sensors and receive notifications.

Expand All @@ -89,14 +96,14 @@ able to report sensors and receive notifications.
- A long-lived access token. You can generate one on your [account profile
page](https://www.home-assistant.io/docs/authentication/#your-account-profile).
- The web address (URL) on which a Home Assistant instance can be found.
- **go-hass-agent** will try to auto-detect this for you, and you can select it in
- Go Hass Agent will try to auto-detect this for you, and you can select it in
the _Auto-discovered servers_ list. Otherwise, you will need to select _Use
Custom Server?_, and enter the details manually in _Manual Server Entry_.

When you have entered all the details, click **Submit** and the agent should
start running and reporting sensors to the Home Assistant instance.

As alternative, you can register **go-hass-agent** on the command-line with by
As alternative, you can register Go Hass Agent on the command-line with by
running:

```shell
Expand All @@ -108,32 +115,32 @@ Assistant instance, `_URL_`.

### Regular Usage

When running, **go-hass-agent** will appear as a device under the [Mobile
When running, Go Hass Agent will appear as a device under the [Mobile
App](https://www.home-assistant.io/integrations/mobile_app) integration in your
Home Assistant instance. It should also report a list of sensors/entities you
can use in any automations, scripts, dashboards and other parts of Home
Assistant.

### Running Headless

**go-hass-agent** can run in a “headless” mode, without any GUI elements, by
Go Hass Agent can run in a “headless” mode, without any GUI elements, by
specifying the `-t` or `--terminal` command-line option. On Linux systems, There
is also a systemd service file that can be used for automatic start-up,
installed (but not activated by default) in `/usr/lib/systemd/system`.

## 🧑‍🤝‍🧑 Contributing

### 🏗️ Development
### Development

I would welcome your contribution! If you find any improvement or issue you want
to fix, feel free to send a pull request!

Some documentation for development can be found in
the [development docs](docs/development.md). There is information for developing
**go-hass-agent** for different operating systems as well as adding additional
the [docs](docs/README.md). There is information for developing
Go Hass Agent for different operating systems as well as adding additional
sensors. This might help anyone to look to contribute, extend or fork this tool.

### 🌐 Translations
### Translations

While this application does not have many points where text is displayed to
the end user (logging aside), translation is supported through the `language`
Expand Down
16 changes: 16 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
Copyright (c) 2023 Joshua Rich <[email protected]>
This software is released under the MIT License.
https://opensource.org/licenses/MIT
-->

# Go Hass Agent Docs

- [FAQ](faq.md).

## Development

- [General Development Notes](development/README.md).
- [Agent development](development/agent.md).
- [Adding Sensors](development/sensors.md).
8 changes: 4 additions & 4 deletions docs/development.md → docs/development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
https://opensource.org/licenses/MIT
-->

# go-hass-agent Development
# Go Hass Agent Development Notes

## Build Requirements

**go-hass-agent** has a number of build requirements external to `go.mod` that
Go Hass Agent has a number of build requirements external to `go.mod` that
need to be installed:

- [stringer](https://pkg.go.dev/golang.org/x/tools/cmd/stringer).
Expand Down Expand Up @@ -39,7 +39,7 @@ container, as it is exposed as per above.

## Building

**go-hass-agent** makes use of `go generate` to generate some of the code. A typical build process would be:
Go Hass Agent makes use of `go generate` to generate some of the code. A typical build process would be:

```shell
go generate ./...
Expand All @@ -48,7 +48,7 @@ go build

## Packaging

**go-hass-agent** uses [Goreleaser](https://goreleaser.com/intro/) to create
Go Hass Agent uses [Goreleaser](https://goreleaser.com/intro/) to create
packages for Fedora, Arch and Ubuntu and
[fyne-cross](https://github.com/fyne-io/fyne-cross) to create packages for
Debian.
Expand Down
File renamed without changes.

0 comments on commit c06b701

Please sign in to comment.