smart-home-engine 0.32.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -16,7 +16,9 @@ Your home, your rules - written in plain JavaScript.
|
|
|
16
16
|
|
|
17
17
|
## Quick start
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
By default she webserver listens on port 8080
|
|
20
|
+
|
|
21
|
+
### Run manually
|
|
20
22
|
|
|
21
23
|
```bash
|
|
22
24
|
npm install -g smart-home-engine
|
|
@@ -25,7 +27,7 @@ she
|
|
|
25
27
|
|
|
26
28
|
All state is kept in `~/.she`
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
### Install as a systemd service
|
|
29
31
|
|
|
30
32
|
```bash
|
|
31
33
|
sudo npm install -g smart-home-engine
|
|
@@ -35,9 +37,18 @@ sudo systemctl start smart-home-engine
|
|
|
35
37
|
|
|
36
38
|
`she --install` creates a dedicated `she` system user and installs + enables the systemd unit. All state is kept in `/var/lib/she/`.
|
|
37
39
|
|
|
38
|
-
> **Tip:** use `journalctl -u smart-home-engine -o cat -f` to follow logs with colours intact.
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
### Run with Docker
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
docker build -t she .
|
|
45
|
+
docker run -d \
|
|
46
|
+
-p 8080:8080 \
|
|
47
|
+
-v she-data:/var/lib/she \
|
|
48
|
+
she
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
All state is kept in the `she-data` volume at `/var/lib/she`.
|
|
41
52
|
|
|
42
53
|
## Docs
|
|
43
54
|
|