forked from home-assistant/home-assistant.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No dollar signs in shell code (home-assistant#10477)
- Loading branch information
Showing
43 changed files
with
316 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,7 +169,7 @@ If you are using the default `FULL` recovery model for MS SQL Server you will ne | |
If you are running a database server instance on the same server as Home Assistant then you must ensure that this service starts before Home Assistant. For a Linux instance running Systemd (Raspberry Pi, Debian, Ubuntu and others) then you should edit the service file. | ||
|
||
```bash | ||
$ sudo nano /etc/systemd/system/[email protected] | ||
sudo nano /etc/systemd/system/[email protected] | ||
``` | ||
|
||
and add the service for the database, for example, PostgreSQL: | ||
|
@@ -183,7 +183,7 @@ After=network.target postgresql.service | |
Save the file then reload `systemctl`: | ||
|
||
```bash | ||
$ sudo systemctl daemon-reload | ||
sudo systemctl daemon-reload | ||
``` | ||
|
||
## Installation notes | ||
|
@@ -205,15 +205,15 @@ For MariaDB you may have to install a few dependencies. If you're using MariaDB | |
On the Python side we use the `mysqlclient`: | ||
|
||
```bash | ||
$ sudo apt-get install libmariadbclient-dev libssl-dev | ||
$ pip3 install mysqlclient | ||
sudo apt-get install libmariadbclient-dev libssl-dev | ||
pip3 install mysqlclient | ||
``` | ||
|
||
For MySQL you may have to install a few dependencies. You can choose between `pymysql` and `mysqlclient`: | ||
|
||
```bash | ||
$ sudo apt-get install default-libmysqlclient-dev libssl-dev | ||
$ pip3 install mysqlclient | ||
sudo apt-get install default-libmysqlclient-dev libssl-dev | ||
pip3 install mysqlclient | ||
``` | ||
|
||
After installing the dependencies, it is required to create the database manually. During the startup, Home Assistant will look for the database specified in the `db_url`. If the database doesn't exist, it will not automatically create it for you. | ||
|
@@ -225,8 +225,8 @@ Once Home Assistant finds the database, with the right level of permissions, all | |
For PostgreSQL you may have to install a few dependencies: | ||
|
||
```bash | ||
$ sudo apt-get install postgresql-server-dev-X.Y | ||
$ pip3 install psycopg2 | ||
sudo apt-get install postgresql-server-dev-X.Y | ||
pip3 install psycopg2 | ||
``` | ||
|
||
For using Unix Sockets, add the following line to your [`pg_hba.conf`](https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html): | ||
|
@@ -250,14 +250,14 @@ A service restart will work as well. | |
For MS SQL Server you may have to install a few dependencies: | ||
|
||
```bash | ||
$ sudo apt-get install freetds-dev | ||
$ pip3 install pymssql | ||
sudo apt-get install freetds-dev | ||
pip3 install pymssql | ||
``` | ||
|
||
If you are in a virtual environment, don't forget to activate it before installing the pymssql package. | ||
|
||
```bash | ||
$ sudo -u homeassistant -H -s | ||
$ source /srv/homeassistant/bin/activate | ||
$ pip3 install pymssql | ||
sudo -u homeassistant -H -s | ||
source /srv/homeassistant/bin/activate | ||
pip3 install pymssql | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,18 +24,18 @@ Snips takes voice or text as input and produces *intents* as output, which are e | |
The Snips platform can be installed via the Snips APT/Debian repository. | ||
|
||
```bash | ||
$ sudo apt-get update | ||
$ sudo apt-get install -y dirmngr | ||
$ sudo bash -c 'echo "deb https://raspbian.snips.ai/$(lsb_release -cs) stable main" > /etc/apt/sources.list.d/snips.list' | ||
$ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys D4F50CDCA10A2849 | ||
$ sudo apt-get update | ||
$ sudo apt-get install -y snips-platform-voice | ||
sudo apt-get update | ||
sudo apt-get install -y dirmngr | ||
sudo bash -c 'echo "deb https://raspbian.snips.ai/$(lsb_release -cs) stable main" > /etc/apt/sources.list.d/snips.list' | ||
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys D4F50CDCA10A2849 | ||
sudo apt-get update | ||
sudo apt-get install -y snips-platform-voice | ||
``` | ||
|
||
Note that if the keyserver pgp.mit.edu is down then try to use another one in the 4th line, like pgp.surfnet.nl: | ||
|
||
```bash | ||
$ sudo apt-key adv --keyserver pgp.surfnet.nl --recv-keys D4F50CDCA10A2849 | ||
sudo apt-key adv --keyserver pgp.surfnet.nl --recv-keys D4F50CDCA10A2849 | ||
``` | ||
|
||
### Creating an assistant | ||
|
@@ -45,13 +45,13 @@ Head over to the [Snips Console](https://console.snips.ai) to create your assist | |
The next step is to get the assistant to work on your device. Unzip and copy the `assistant` folder that you downloaded from the web console to the path. Assuming your downloaded `assistant` folder is on your desktop, just run: | ||
|
||
```bash | ||
$ scp -r ~/Desktop/assistant pi@<raspi_hostname.local_or_IP>:/home/pi/. | ||
scp -r ~/Desktop/assistant pi@<raspi_hostname.local_or_IP>:/home/pi/. | ||
``` | ||
|
||
Now ssh into your Raspberry Pi: | ||
|
||
```bash | ||
$ ssh pi@<raspi_hostname.local_or_IP> | ||
ssh pi@<raspi_hostname.local_or_IP> | ||
``` | ||
|
||
By default, this command is `ssh [email protected]`, if you are using the default Raspberry Pi hostname. | ||
|
@@ -76,7 +76,7 @@ Make sure that a microphone is plugged to the Raspberry Pi. If you are having tr | |
Start the Snips Voice Platform by starting the `snips-*` services: | ||
|
||
```bash | ||
$ sudo systemctl start "snips-*" | ||
sudo systemctl start "snips-*" | ||
``` | ||
|
||
Snips is now ready to take voice commands from the microphone. To trigger the listening, simply say | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.