forked from ThisIsQasim/WebGPIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexampleconfig.yml
50 lines (48 loc) · 991 Bytes
/
exampleconfig.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
Rooms:
- Name: Bed Room
Appliances:
- Name: Fan
Type: GPIO
Pin: 18
- Name: Front Light
Type: GPIO
Pin: 17
- Name: Back Light
Type: GPIO
Pin: 27
- Name: Bright Light
Type: GPIO
Pin: 22
- Name: Garage
Appliances:
- Name: Light
Type: GPIO
Pin: 23
- Name: Door
Type: GPIO
Pin: 24
Duration: 2
- Name: Scripts
Appliances:
- Name: Internet
Type: Script
Status: ping -c 1 8.8.8.8 > /dev/null
Timeout: 0.3
- Name: Nginx
Type: Script
Status: sudo systemctl is-active --quiet nginx 2> /dev/null
Action:
On: sudo systemctl start nginx
Off: sudo systemctl stop nginx
#Settings:
# Host: 0.0.0.0
# Port: 8000
# Debug: True
# SSL:
# Enabled: False
# Path: default
# Certificate: WebGPIO.cer
# Key: WebGPIO.key
# Inverted: False
# RefreshRate: 4