Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Documentation cleanup #185

Merged
merged 18 commits into from
Oct 2, 2018
56 changes: 34 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,46 @@
## Hassbian-scripts
These are the scripts used in the [Hassbian](https://github.com/home-assistant/pi-gen) image.
The scripts in this repository where made to be used with the Hassbian image and the included Home Assistant instance.
# Hassbian-scripts

These are the scripts used in the [Hassbian][hassbian] image.
The scripts in this repository where made to be used with the Hassbian image
and the included Home Assistant instance.

## The included scripts
The following scripts are currently included. You can view the documentation below for usage and instructions.

The following scripts are currently included. You can view the documentation
below for usage and instructions.

<!--- When adding stuff here, please keep it alphabetical --->
* [hassbian-config](/docs/hassbian_config.md)
* [AppDaemon](/docs/appdaemon.md)
* [Cloud9](/docs/cloud9.md)
* [Duck DNS](/docs/duckdns.md)
* [Hassbian](/docs/hassbian.md)
* [Home Assistant](/docs/homeassistant.md)
* [HUE](/docs/hue.md)
* [LibCEC](/docs/libcec.md)
* [MariaDB](/docs/mariadb.md)
* [Mosquitto](/docs/mosquitto.md)
* [PostgreSQL](/docs/postgresql.md)
* [MS SQL](/docs/mssql.md)
* [RaZberry ](/docs/razberry.md)
* [Samba](/docs/samba.md)
* [Trådfri](/docs/tradfri.md)
* [Webterminal](/docs/webterminal.md)
* [Changelog](https://github.com/home-assistant/hassbian-scripts/releases)

- [hassbian-config](/docs/hassbian_config.md)
- [AppDaemon](/docs/appdaemon.md)
- [Cloud9](/docs/cloud9.md)
- [Duck DNS](/docs/duckdns.md)
- [Hassbian](/docs/hassbian.md)
- [Home Assistant](/docs/homeassistant.md)
- [HUE](/docs/hue.md)
- [LibCEC](/docs/libcec.md)
- [MariaDB](/docs/mariadb.md)
- [Mosquitto](/docs/mosquitto.md)
- [PostgreSQL](/docs/postgresql.md)
- [MS SQL](/docs/mssql.md)
- [RaZberry](/docs/razberry.md)
- [Samba](/docs/samba.md)
- [Trådfri](/docs/tradfri.md)
- [Webterminal](/docs/webterminal.md)
- [Changelog][changelog]

***

## Raspbian Jessie
If this package is used with a Debian Jessie based distribution then you need to uncomment the source repositories in `/etc/apt/sources.list`

If this package is used with a Debian Jessie based distribution then you need
to uncomment the source repositories in `/etc/apt/sources.list`

```text
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
```

<!--- Links --->
[changelog]: https://github.com/home-assistant/hassbian-scripts/releases
[hassbian]: https://github.com/home-assistant/pi-gen
37 changes: 25 additions & 12 deletions docs/appdaemon.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
## Description
This Installs AppDaemon in a separate Venv onto this system.\
For more information about AppDaemon see the [documentation.](http://appdaemon.readthedocs.io/en/latest/)
# AppDaemon

This Installs AppDaemon in a separate Venv onto this system.
For more information about AppDaemon see the [documentation.][appdaemon-docs]

## Installation

```bash
$ sudo hassbian-config install appdaemon
sudo hassbian-config install appdaemon
```

## Upgrade

```bash
$ sudo hassbian-config upgrade appdaemon
sudo hassbian-config upgrade appdaemon
```

## Additional info

Description | Command/value
:--- | :---
Running as: | homeassistant
Expand All @@ -21,20 +25,29 @@ Start service: | `sudo systemctl start [email protected]`
Stop service: | `sudo systemctl stop [email protected]`
Restart service: | `sudo systemctl restart [email protected]`
Service status: | `sudo systemctl status [email protected]`
|

Enter the virtual environment where AppDaemon is installed as `homeassistant`:

```bash
$ sudo su -s /bin/bash homeassistant
$ source /srv/appdaemon/bin/activate
sudo su -s /bin/bash homeassistant
source /srv/appdaemon/bin/activate
```

When you are done, type `exit` to return to the `pi` user.

To manually start AppDaemon, enter the AppDaemon virtual environment as described above, and then type this to start it:
To manually start AppDaemon, enter the AppDaemon virtual environment as
described above, and then type this to start it:

```bash
$ appdaemon -c /home/homeassistant/appdaemon/
appdaemon -c /home/homeassistant/appdaemon/
```

***
The installation script was originally contributed by [@Landrash](https://github.com/landrash).
The upgrade script was originally contributed by [@Ludeeus](https://github.com/ludeeus).

The installation script was originally contributed by [@Landrash][landrash].
The upgrade script was originally contributed by [@Ludeeus][ludeeus].

<!--- Links --->
[appdaemon-docs]: http://appdaemon.readthedocs.io/en/latest/
[landrash]: https://github.com/landrash
[ludeeus]: https://github.com/ludeeus
23 changes: 15 additions & 8 deletions docs/cloud9.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
## Description
Cloud9 SDK is an webservice IDE that makes it easy to manage your configuration files.
# Cloud9

*This suite can't be installed on Raspberry Pi Zero*
Cloud9 SDK is an webservice IDE that makes it easy to manage your configuration files.
**This suite can't be installed on Raspberry Pi Zero**

## Installation

```bash
$ sudo hassbian-config install cloud9
sudo hassbian-config install cloud9
```

## Upgrade

```bash
$ sudo hassbian-config upgrade cloud9
sudo hassbian-config upgrade cloud9
```

## Remove

```bash
$ sudo hassbian-config remove cloud9
sudo hassbian-config remove cloud9
```

## Additional info

Description | Command/value
:--- | :---
Running as: | homeassistant
Expand All @@ -28,7 +32,10 @@ Start service: | `sudo systemctl start [email protected]`
Stop service: | `sudo systemctl stop [email protected]`
Restart service: | `sudo systemctl restart [email protected]`
Service status: | `sudo systemctl status [email protected]`
|

***
This script was originally contributed by [@Ludeeus](https://github.com/ludeeus).

This script was originally contributed by [@Ludeeus][ludeeus].

<!--- Links --->
[ludeeus]: https://github.com/ludeeus
29 changes: 21 additions & 8 deletions docs/duckdns.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
## Description
This script adds an cron job to auto update you the WAN IP address for the defined domain.\
Before running this script you should already have an Duck DNS account, during the installation you will be asked to supply your domain name and the token for your account.
# Duck DNS

This script adds an cron job to auto update you the WAN IP address for the
defined domain.
Before running this script you should already have an
[Duck DNS account][duckdns], during the installation you will be asked to
supply your domain name and the token for your account.

## Installation
```
$ sudo hassbian-config install duckdns

```bash
sudo hassbian-config install duckdns
```

## Additional info

Running as: `homeassistant`

If you choose to also generate SSL certificates with this you would need to add this under `http:` to your `configuration.yaml`
```
If you choose to also generate SSL certificates with this you would need to
add this under `http:` to your `configuration.yaml`

```yaml
ssl_certificate: /home/homeassistant/dehydrated/certs/YOURDOMAIN.duckdns.org/fullchain.pem
ssl_key: /home/homeassistant/dehydrated/certs/YOURDOMAIN.duckdns.org/privkey.pem
base_url: YOURDOMAIN.duckdns.org:PORTNUMBER
```

***
This script was originally contributed by [@Ludeeus](https://github.com/ludeeus).

This script was originally contributed by [@Ludeeus][ludeeus].

<!--- Links --->
[duckdns]: http://www.duckdns.org
[ludeeus]: https://github.com/ludeeus
16 changes: 11 additions & 5 deletions docs/hassbian.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
## Description
# Hassbian

This script will update the base OS on the system.

## Upgrade
```
$ sudo hassbian-config upgrade hassbian

```bash
sudo hassbian-config upgrade hassbian
```

## Additional info

Description | Command/value
:--- | :---
Running as: | pi
Default password: | raspberry
Hostname: | hassbian
SSH enabled: | true
|

***
This script was originally contributed by [@Landrash](https://github.com/Landrash).

The installation script was originally contributed by [@Landrash][landrash].

<!--- Links --->
[landrash]: https://github.com/landrash
49 changes: 30 additions & 19 deletions docs/hassbian_config.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
## Description
This command is a package handler for the Hassbian scripts. All interactions for installing software should be handled through this command.\
_Running the individual scripts to install software will no longer work as expected._
# hassbian-config

This command is a package handler for the Hassbian scripts.
All interactions for installing software should be handled
through this command.
_Running the individual scripts to install
software will no longer work as expected._

## Usage

#### Usage
The hassbian-config command is invoked with:

```bash
hassbian-config *command* *suite* *flag(optional)*
```
where command is one of:

where `*command*` is one of:
Command | Description
:--- | :---
`install` | Use this to install an suite.
Expand All @@ -16,39 +23,43 @@ Command | Description
`log` | This will show you the log of last hassbian-config operation.
`share-log` | This will generate an hastebin link of the last hassbian-config operation.
`show-installed` | Generates a list of installed suites.
|

Optional flags:
**Optional flags:**
Flag | Alt. flag | Description
:--- | :--- | :---
`--accept` | `-Y` | This will accept defaults on scripts that allow this.
`--force` | `-F` | This will force run an script. This is useful if you need to reinstall a package.
`--debug` | `-D` | This will output every comand to the console.
`--beta` |`-B` | This will install the current beta version if implemented.
`--dev` | | This will install the current development version if implemented.
|

Other available commands:
**Other available commands:**
Command | Alt. command | Description
:--- | :--- | :---
`--version` | - `-V` | This will show you the installed version of `hassbian-config`.
`--help` | - `-H` | Shows help for the tool, with all available commands.

## Installation
This package is pre-installed on the [Hassbian image](https://github.com/home-assistant/pi-gen/releases).\
This package can be used with Raspbian lite but it's not recommended.
```
$ curl https://api.github.com/repos/home-assistant/hassbian-scripts/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -qi -
$ sudo apt install -y ./hassbian*
```

This package is pre-installed on the [Hassbian image][hassbian-image].
This package *can* be used with Raspbian lite but it's not recommended.

## Upgrade
```bash
curl https://api.github.com/repos/home-assistant/hassbian-scripts/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -qi -
sudo apt install -y ./hassbian*
```
$ sudo hassbian-config upgrade hassbian-script

## Upgrade

```bash
sudo hassbian-config upgrade hassbian-script
```

## Upgrade to dev branch

```bash
sudo hassbian-config upgrade hassbian-script --dev
```
$ sudo hassbian-config upgrade hassbian-script --dev
```

<!--- Links --->
[hassbian-image]: https://github.com/home-assistant/pi-gen/releases
16 changes: 12 additions & 4 deletions docs/homeassistant.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Description
# Home Assistant

This is a copy of the installation script run during first boot of your Raspberry Pi with the [Hassbian image](https://github.com/home-assistant/pi-gen/releases/latest)\
This is a copy of the installation script run during first
boot of your Raspberry Pi with the [Hassbian image][hassbian-image]
And an easy way to upgrade Home Assistant to the newest version.

## Installation
Expand Down Expand Up @@ -36,6 +37,7 @@ sudo hassbian-config upgrade homeassistant=0.65.6
```

## Additional info

Description | Command/value
:--- | :---
Running as: | homeassistant
Expand Down Expand Up @@ -75,5 +77,11 @@ hacheckconf | `source /srv/homeassistant/bin/activate;hass --script check_config
hapyshell | `source /srv/homeassistant/bin/activate;cd ~/.homeassistant`

***
The installation script was originally contributed by [@Landrash](https://github.com/landrash).
The upgrade scripts was originally contributed by [@Ludeeus](https://github.com/ludeeus).

The installation script was originally contributed by [@Landrash][landrash].
The upgrade script was originally contributed by [@Ludeeus][ludeeus].

<!--- Links --->
[hassbian-image]: https://github.com/home-assistant/pi-gen/releases/latest
[landrash]: https://github.com/landrash
[ludeeus]: https://github.com/ludeeus
17 changes: 12 additions & 5 deletions docs/hue.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
## Description
Configures the Python executable to allow usage of low numbered port numbers for use with Amazon Echo, Google Home and Mycroft.ai.
# Hue

Configures the Python executable to allow usage of low numbered port numbers
for use with Amazon Echo, Google Home and Mycroft.ai.

## Installation
```
$ sudo hassbian-config install hue

```bash
sudo hassbian-config install hue
```

***
This script was originally contributed by [@Landrash](https://github.com/Landrash).

The installation script was originally contributed by [@Landrash][landrash].

<!--- Links --->
[landrash]: https://github.com/landrash
Loading