This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathhardware.json
127 lines (127 loc) · 3.25 KB
/
hardware.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"display": {
"control": {
"enabled": true,
"backlight": {
"gpio": {
"pin": 26
}
},
"spi-over-gpio": {
"clk": 107,
"mosi": 106,
"cs": 105
}
}
},
"gesture": {
"enabled": true
},
"light": {
"enabled": true
},
"proximity": {
"enabled": true,
"i2c": {
"device": "/dev/i2c-3",
"id": 57
}
},
"batteryCharger": {
"enabled": true,
"gpio": {
"pin": 108
}
},
"batteryFuelGauge": {
"enabled": true,
"capacity": 2500,
"i2c": {
"device": "/dev/i2c-3",
"id": 85
}
},
"buttonInterruptHandler": {
"enabled": true,
"i2c": {
"device": "/dev/i2c-3",
"id": 32
},
"interrupt": {
"gpio": {
"pin": 18
}
}
},
"wiringPi": {
"enabled": true,
"ioExpander": {
"pinBase": 100,
"i2cId": 33
}
},
"hapticMotor": {
"enabled": true,
"i2c": {
"device": "/dev/i2c-3",
"id": 90
}
},
"systemservice": {
"enabled": true,
"systemd": {
"sudo" : false,
"timeout" : 30000,
"services": {
"wifi": "wpa_supplicant@wlan0.service",
"dns": "systemd-resolved.service",
"webserver": "lighttpd.service",
"ntp": "systemd-timesyncd.service",
"dhcp": "dhcpcd.service",
"zeroconf": "avahi-daemon",
"networking": "systemd-networkd"
}
}
},
"wifi": {
"enabled": true,
"maxScanResults": 20,
"joinRetryCount": 5,
"joinRetryDelay": 3000,
"pollInterval": 20000,
"useShellScript": false,
"interface": {
"wpa_supplicant" : {
"socketPath": "/var/run/wpa_supplicant/wlan0",
"removeNetworksBeforeJoin": false
},
"shellScript": {
"sudo": false,
"timeout": 30000,
"clearNetworks": "",
"connect": "/opt/yio/scripts/wifi_network_create.sh",
"listNetworks": "/opt/yio/scripts/wifi_network_list.sh",
"startAP": "/opt/yio/scripts/reset-wifi.sh",
"getSSID": "/opt/yio/scripts/wifi_ssid.sh",
"getIP": "/opt/yio/scripts/wifi_ip.sh",
"getMAC": "cat /sys/class/net/wlan0/address",
"getRSSI": "/opt/yio/scripts/wifi_rssi.sh"
}
},
"accessPoint": {
"TODO": true
}
},
"webserver" : {
"enabled": true,
"lighttpd" : {
"configFile": "/etc/lighttpd/lighttpd.conf",
"wifiSetupConfig": "/etc/lighttpd/lighttpd-wifisetup.conf",
"webConfiguratorConfig": "/etc/lighttpd/lighttpd-config.conf"
}
},
"sysinfo": {
"enabled": true,
"sysfsTemp": "/sys/class/thermal/thermal_zone0/temp"
}
}