Fix broken stuff

This commit is contained in:
Paulus Schoutsen 2016-02-17 00:13:00 -08:00
parent b96bf7d6c0
commit df8c1d8995
3 changed files with 55 additions and 17 deletions

View File

@ -204,7 +204,7 @@ p.note {
} }
.install-instructions-container { .install-instructions-container {
#normal-install, #raspberry-install, #docker-install, .install-instructions { #normal-install, #raspberry-install, #docker-install, #synology-install, .install-instructions {
display: none; display: none;
} }
@ -223,14 +223,16 @@ p.note {
#normal-install:checked ~ .menu-selector.normal, #normal-install:checked ~ .menu-selector.normal,
#raspberry-install:checked ~ .menu-selector.raspberry, #raspberry-install:checked ~ .menu-selector.raspberry,
#docker-install:checked ~ .menu-selector.docker #docker-install:checked ~ .menu-selector.docker,
#synology-install:checked ~ .menu-selector.synology
{ {
border-bottom-color: $blue; border-bottom-color: $blue;
} }
#normal-install:checked ~ .install-instructions.normal, #normal-install:checked ~ .install-instructions.normal,
#raspberry-install:checked ~ .install-instructions.raspberry, #raspberry-install:checked ~ .install-instructions.raspberry,
#docker-install:checked ~ .install-instructions.docker #docker-install:checked ~ .install-instructions.docker,
#synology-install:checked ~ .install-instructions.synology
{ {
display: block; display: block;
} }
@ -242,7 +244,7 @@ p.note {
.advanced-installs-container { .advanced-installs-container {
#upstart-install, #systemd-install, #osx-install, .advanced-installs { #upstart-install, #systemd-install, #osx-install, #synology-install, .advanced-installs {
display: none; display: none;
} }
@ -261,14 +263,16 @@ p.note {
#upstart-install:checked ~ .menu-selector.upstart, #upstart-install:checked ~ .menu-selector.upstart,
#systemd-install:checked ~ .menu-selector.systemd, #systemd-install:checked ~ .menu-selector.systemd,
#osx-install:checked ~ .menu-selector.osx #osx-install:checked ~ .menu-selector.osx,
#synology-install:checked ~ .menu-selector.synology
{ {
border-bottom-color: $blue; border-bottom-color: $blue;
} }
#upstart-install:checked ~ .advanced-installs.upstart, #upstart-install:checked ~ .advanced-installs.upstart,
#systemd-install:checked ~ .advanced-installs.systemd, #systemd-install:checked ~ .advanced-installs.systemd,
#osx-install:checked ~ .advanced-installs.osx #osx-install:checked ~ .advanced-installs.osx,
#synology-install:checked ~ .advanced-installs.synology
{ {
display: block; display: block;
} }

View File

@ -137,10 +137,13 @@ Home Assistant has been uninstalled.
To get Home Assistant to automatically start when you boot your Synology NAS: To get Home Assistant to automatically start when you boot your Synology NAS:
SSH onto your synology & login as admin or root SSH onto your synology & login as admin or root
```bash ```bash
$ cd /volume1/homeassistant $ cd /volume1/homeassistant
``` ```
Create "homeassistant.conf" file using the following code Create "homeassistant.conf" file using the following code
```bash ```bash
# only start this service after the httpd user process has started # only start this service after the httpd user process has started
start on started httpd-user start on started httpd-user
@ -155,15 +158,20 @@ stop on runlevel [06]
# the 'www' file is a node.js script which starts the foobar application. # the 'www' file is a node.js script which starts the foobar application.
exec /bin/sh /volume1/homeassistant/hass-daemon start exec /bin/sh /volume1/homeassistant/hass-daemon start
``` ```
Register the autostart Register the autostart
```bash ```bash
$ ln -s homeassistant-conf /etc/init/homeassistant-conf $ ln -s homeassistant-conf /etc/init/homeassistant-conf
``` ```
Make the relevant files executable: Make the relevant files executable:
```bash ```bash
$ chmod -r 777 /etc/init/homeassistant-conf $ chmod -r 777 /etc/init/homeassistant-conf
``` ```
That's it - reboot your NAS and homeassistant should automatically start
That's it - reboot your NAS and Home Assistant should automatically start
</div> <!-- SYNOLOGY --> </div> <!-- SYNOLOGY -->
</div> </div>

View File

@ -13,9 +13,11 @@ footer: true
<input name='install-instructions' type='radio' id='normal-install' checked> <input name='install-instructions' type='radio' id='normal-install' checked>
<input name='install-instructions' type='radio' id='raspberry-install'> <input name='install-instructions' type='radio' id='raspberry-install'>
<input name='install-instructions' type='radio' id='docker-install'> <input name='install-instructions' type='radio' id='docker-install'>
<label class='menu-selector normal' for='normal-install'>Install on local machine</label> <input name='install-instructions' type='radio' id='synology-install'>
<label class='menu-selector raspberry' for='raspberry-install'>Install on a Raspberry Pi</label> <label class='menu-selector normal' for='normal-install'>Local machine</label>
<label class='menu-selector docker' for='docker-install'>Install using Docker</label> <label class='menu-selector raspberry' for='raspberry-install'>Raspberry Pi</label>
<label class='menu-selector docker' for='docker-install'>Docker</label>
<label class='menu-selector synology' for='synology-install'>Synology NAS</label>
<div class='install-instructions normal' markdown='1'> <div class='install-instructions normal' markdown='1'>
Installing and running Home Assistant on your local machine is easy. Make sure you have [Python 3.4 or higher](https://www.python.org/downloads/) installed and execute the following code in a console: Installing and running Home Assistant on your local machine is easy. Make sure you have [Python 3.4 or higher](https://www.python.org/downloads/) installed and execute the following code in a console:
@ -77,7 +79,7 @@ Running these commands will:
<div class='install-instructions synology' markdown='1'> <div class='install-instructions synology' markdown='1'>
The following configuration has been tested on a Synology 415+ running DSM 5.2-5644 Update 3 The following configuration has been tested on Synology 415+ running DSM 5.2-5644 Update 3.
Running these commands will: Running these commands will:
@ -85,24 +87,33 @@ Running these commands will:
- Enable Home Assistant to be launched on [http://localhost:8123](http://localhost:8123) - Enable Home Assistant to be launched on [http://localhost:8123](http://localhost:8123)
Using the Synology webadmin: Using the Synology webadmin:
- Install python3 using the Synology package centre - Install python3 using the Synology package centre
- Create homeassistant user and add to the "users" group - Create homeassistant user and add to the "users" group
SSH onto your synology & login as admin or root SSH onto your synology & login as admin or root
Check the path to python3 (assumed to be /usr/local/python3/bin) Check the path to python3 (assumed to be /usr/local/python3/bin)
```bash ```bash
$ cd /usr/local/python3/bin $ cd /usr/local/python3/bin
``` ```
Use PIP to install Homeassistant package Use PIP to install Homeassistant package
```bash ```bash
$ pip3 install homeassistant $ pip3 install homeassistant
``` ```
Create homeassistant config directory & switch to it Create homeassistant config directory & switch to it
```bash ```bash
$ mkdir /volume1/homeassistant $ mkdir /volume1/homeassistant
$ cd /volume1/homeassistant $ cd /volume1/homeassistant
``` ```
Create hass-daemon file using the following code (edit the variables in uppercase if necessary) Create hass-daemon file using the following code (edit the variables in uppercase if necessary)
```bash ```bash
#!/bin/sh #!/bin/sh
@ -174,7 +185,7 @@ case $1 in
exit 0 exit 0
fi fi
;; ;;
restart) restart)
if daemon_status; then if daemon_status; then
echo Stopping ${DNAME} ... echo Stopping ${DNAME} ...
stop_daemon stop_daemon
@ -205,42 +216,58 @@ case $1 in
exit 1 exit 1
;; ;;
esac esac
``` ```
Create links to python folders to make things easier in the future: Create links to python folders to make things easier in the future:
```bash ```bash
$ ln -s /usr/local/python3/bin python3 $ ln -s /usr/local/python3/bin python3
$ ln -s /usr/local/python3/lib/python3.4/site-packages/homeassistant $ ln -s /usr/local/python3/lib/python3.4/site-packages/homeassistant
``` ```
Set the owner and permissions on your config folder Set the owner and permissions on your config folder
```bash ```bash
$ chown -r homeassistant:users /volume1/homeassistant $ chown -r homeassistant:users /volume1/homeassistant
$ chmod -r 660 /volume1/homeassistant $ chmod -r 660 /volume1/homeassistant
``` ```
Make the daemon file executable: Make the daemon file executable:
```bash ```bash
$ chmod -r 777 /volume1/homeassistant/hass-daemon $ chmod -r 777 /volume1/homeassistant/hass-daemon
``` ```
Copy your configuration.yaml file into the config folder Copy your configuration.yaml file into the config folder
That's it... you're all set to go That's it... you're all set to go
Here are some useful commands: Here are some useful commands:
- Start Home Assistant: - Start Home Assistant:
```bash ```bash
$ sh hass-daemon start $ sh hass-daemon start
``` ```
- Stop Home Assistant: - Stop Home Assistant:
```bash ```bash
$ sh hass-daemon stop $ sh hass-daemon stop
``` ```
- Restart Home Assistant: - Restart Home Assistant:
```bash ```bash
$ sh hass-daemon restart $ sh hass-daemon restart
``` ```
- Upgrade Home Assistant:: - Upgrade Home Assistant::
```bash ```bash
$ python3/pip3 install --upgrade homeassistant $ python3/pip3 install --upgrade homeassistant
``` ```
</div> <!-- INSTALL-INSTRUCTIONS SYNOLOGY --> </div> <!-- INSTALL-INSTRUCTIONS SYNOLOGY -->
</div> </div>
@ -252,7 +279,6 @@ For additional help, in addition to this site, there are four sources:
- [Forum](https://automic.us/forum/) - [Forum](https://automic.us/forum/)
- [Gitter Chatroom](https://gitter.im/balloob/home-assistant) for general Home Assistant discussions and questions. - [Gitter Chatroom](https://gitter.im/balloob/home-assistant) for general Home Assistant discussions and questions.
- [Development Mailing List](https://groups.google.com/forum/#!forum/home-assistant-dev) for development related questions and discussing new features.
- [GitHub Page](https://github.com/balloob/home-assistant/issues) for issue reporting. - [GitHub Page](https://github.com/balloob/home-assistant/issues) for issue reporting.
### What's next ### What's next