@@ -153,8 +153,111 @@ ps -efxw
153
153
### Other commands
154
154
155
155
`````
156
- [root@alarm /]# ls /usr/local/lb/
157
- ADC bit-util Button cloud_client comm-util DAC etc hw_util LEDcolor mfg_test
156
+ [root@alarm /]# tree /usr/local/lb
157
+ +---lb
158
+ | +---ADC
159
+ | | +---bin
160
+ | +---Button
161
+ | | +---bin
162
+ | +---DAC
163
+ | | +---bin
164
+ | +---LEDcolor
165
+ | | +---bin
166
+ | +---bit-util
167
+ | +---cloud_client
168
+ | | +---bin
169
+ | +---comm-util
170
+ | +---etc
171
+ | | +---hostapd
172
+ | | +---iptables
173
+ | | +---lighttpd
174
+ | | +---systemd
175
+ | +---hw_util
176
+ | | +---bin
177
+ | +---mfg_test
178
+ | | +---ADCtoDAC
179
+ | | | +---bin
180
+ | | +---RGBcycle
181
+ | | | +---bin
182
+ Total directories = 25
183
+
184
+ `````
185
+
186
+ ### Cloud Client Conf
187
+
188
+ `````
189
+ #Cloud Client Conf
190
+ [cloud_parameters]
191
+ cloud_host = cloud.littlebits.cc
192
+ cloud_port = 9480
193
+ setup_version = 1.0.0
194
+ protocol_version = 1.1.0
195
+ use_ssl = 1
196
+ dont_ignore_pings = 1 #switch to 1 if you want to connect to staging, this switches ping styles
197
+
198
+ [daemon_parameters]
199
+ adc_host = /var/lb/ADC_socket
200
+ dac_host = /var/lb/DAC_socket
201
+ led_host = /var/lb/SET_COLOR_socket
202
+
203
+ [client_parameters]
204
+ mac_file = /var/lb/mac
205
+ hash_id_file = /var/lb/id
206
+ ssid_file = /var/lb/current_ssid
207
+ device = littlebits-module-cloud
208
+ current_ssid = /var/lb/current_ssid
209
+ #this (and other parameters) should be pulled from the same place as the scripts do
210
+ firmware_version=1.0.140611a
211
+ ping_timeout = 2400
212
+ ping_maxmiss = 3
213
+ rx_buff_len = 100
214
+ tx_buff_len = 1000
215
+ token_len = 11
216
+ `````
217
+
218
+ ### Scripts Conf
219
+
220
+ `````
221
+ #!/usr/bin/env
222
+
223
+ # GENERAL
224
+ WADAP=wlan0
225
+ LB_WWW="www.littlebits.cc"
226
+ LB_DOM="littlebits.cc"
227
+ NTP_SERVER="pool.ntp.org"
228
+ TMP_DIR="/var/lb"
229
+ PM_MODE="/var/lb/power_mode"
230
+ CLOUDID="/var/lb/id"
231
+ MACADDR="/var/lb/mac"
232
+ SALT="/var/salt"
233
+
234
+ # LED COLORS
235
+ DEFAULT_COLOR="violet"
236
+ COMMISSION_COLOR="blue"
237
+ CONNECTING_COLOR="yellow"
238
+ CONNECTED_COLOR="green"
239
+ NOT_CONNECTED_COLOR="red"
240
+
241
+ # COMMISSIONING
242
+ GATEWAYIP=10.0.0.1
243
+ NETMASK=255.255.255.0
244
+ DOMAIN="cloudsetup.cc"
245
+ NETCTL_CONFIG="/etc/netctl/cloudbit"
246
+ WPA_CONFIG="/etc/wpa_supplicant/cloudbit.conf"
247
+ HOSTAPD_CONFIG="/etc/hostapd/hostapd.conf"
248
+ DNS_CONFIG="/etc/dnsmasq.conf"
249
+ COMM_LOG="/var/log/commissioning"
250
+
251
+ # DAEMON PATHS
252
+ CCPATH=/usr/local/lb/cloud_client/bin
253
+ BUTTONPATH=/usr/local/lb/Button/bin
254
+ ADCPATH=/usr/local/lb/ADC/bin
255
+ DACPATH=/usr/local/lb/DAC/bin
256
+ LEDPATH=/usr/local/lb/LEDcolor/bin
257
+
258
+ # SCRIPT PATHS
259
+ TESTPATH=/usr/local/lb/mfg_test
260
+ CUTILPATH=/usr/local/lb/comm-util
158
261
159
262
`````
160
263
0 commit comments