-
Notifications
You must be signed in to change notification settings - Fork 27
/
settings.htm
954 lines (842 loc) · 60.5 KB
/
settings.htm
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
<!doctype html>
<html lang="en" class="h-100">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="TiltBridge is designed to allow your Tilt Hydrometer to connect directly to WiFi.">
<meta name="author" content="John Beeler">
<title>TiltBridge</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<meta name="apple-mobile-web-app-title" content="TiltBridge">
<meta name="application-name" content="TiltBridge">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.5.2/sandstone/bootstrap.min.css"
integrity="sha384-zEpdAL7W11eTKeoBJK1g79kgl9qjP7g84KfK3AZsuonx38n8ad+f5ZgXtoSDxPOh" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" href="/common.css">
<link rel="stylesheet" href="/loading.css">
</head>
<body class="d-flex flex-column h-100">
<div id="overlay">
<div class="spinner"></div>
Loading...
</div>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="/">
<img src="/logo.png" width:34px;height:25px;>TiltBridge
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01"
aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="/settings/">Settings <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/calibration/">Calibration</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/help/">Help</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about/">About</a>
</li>
</ul>
</div>
<div class="navbar-collapse collapse w-100 order-3 dual-collapse2"> <!-- Context Help -->
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a id="contexthelp" name="contexthelp" class="navbar-brand nav-link active" target="_blank"
href="https://docs.tiltbridge.com/">?</a>
</li>
</ul>
</div>
</nav>
</header>
<main role="main" class="flex-shrink-0">
<div id="settingsAlert_placeholder"></div>
<div class="container" id="settingsapp"> <!-- App Container -->
<div class="card border-dark mb-3"> <!-- TiltBridge Settings -->
<ul class="nav nav-tabs"> <!-- Navigation Tab navigation -->
<li class="nav-item">
<a class="nav-link plain-link" data-toggle="tab" href="#tiltbridge">General Settings</a>
</li>
<li class="nav-item">
<a class="nav-link plain-link" data-toggle="tab" href="#calibration">Calibration Settings</a>
</li>
<li class="nav-item dropdown">
<span class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Target Settings</span>
<div class="dropdown-menu">
<a class="dropdown-item" data-toggle="tab" href="#cloudtarget">TiltBridge Cloud</a>
<a class="dropdown-item" data-toggle="tab" href="#localtarget">Fermentrack/BrewPi Remix</a>
<a class="dropdown-item" data-toggle="tab" href="#googlesheets">Google Sheets</a>
<a class="dropdown-item" data-toggle="tab" href="#brewersfriend">Brewer's Friend</a>
<a class="dropdown-item" data-toggle="tab" href="#brewfather">Brewfather</a>
<a class="dropdown-item" data-toggle="tab" href="#grainfather">Grainfather</a>
<a class="dropdown-item" data-toggle="tab" href="#brewstatus">Brewstatus</a>
<a class="dropdown-item" data-toggle="tab" href="#taplistio">Taplist.io</a>
<a class="dropdown-item" data-toggle="tab" href="#mqtt">MQTT</a>
<a class="dropdown-item" data-toggle="tab" href="#usertarget">Generic JSON Target</a>
</div>
</li>
<li class="nav-item dropdown">
<span class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Reset</span>
<div class="dropdown-menu">
<a class="dropdown-item" data-toggle="tab" href="#restartcontroller">Restart Controller</a>
<a class="dropdown-item" data-toggle="tab" href="#resetwifi">Reset WiFi</a>
<a class="dropdown-item" data-toggle="tab" href="#resetcontroller">Factory Reset</a>
</div>
</li>
</ul> <!-- Navigation tab navigation -->
<div id="tabcontent" class="tab-content"> <!-- Navigation Tab contents -->
<div class="tab-pane fade active show" id="default"> <!-- Initial Tab -->
<div class="card-header">
<h4 class="card-title">Settings for TiltBridge</h4>
</div>
<div class="card-body">
<p>
Use the tabs above to navigate the various settings and customize TiltBridge for your
own use. Be sure to use the update button after changing a field.
</p>
</div>
</div> <!-- Initial Page Tab -->
<div class="tab-pane fade" id="tiltbridge"> <!-- TiltBridge Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">TiltBridge Settings</h5>
</div>
<div class="card-body">
<p class="card-text">
These settings apply to the TiltBridge as a whole. If you change the mDNS
ID, the page will refresh and point to the new name. If it fails to load,
you may need to reset your controller or refer to the LCD screen to determine
what may have gone wrong.
</p>
<form action="/settings/controller/" method="POST" enctype="multipart/form-data">
<div class="form-group row">
<label for="mdnsID" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Host name (the xxxx in http://xxxx.local/.) Must be 8- 31 characters.">mDNS ID
</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="mdnsID"
id="mdnsID" placeholder="tiltbridge" minlength="3"
maxlength="32" :value="settings.mdnsID" required>
</div>
</div>
<div class="form-group row">
<label for="TZoffset" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Time zone offset from GMT (in hours)">Time Zone Offset</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="TZoffset" id="TZoffset"
placeholder="-5" min="-12" max="14" :value="settings.TZoffset" required>
</div>
</div>
<div class="form-group row">
<label for="tempUnit" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Units used for temperature measurement">Temperature Units</label>
<div class="col-sm-8">
<select class="form-control" name="tempUnit" id="tempUnit">
<option value="C" selected>Celsius (°C)</option>
<option value="F">Fahrenheit (°F)</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="smoothFactor" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Valid range 0 to 99. Setting affects time constant of exponentially weighted
moving average filter applied to specific gravity reading. In response to a step
change, the filtered value should reach steady state after ~ 5 time constants.
A setting of 0 gives no smoothing (filtering off) while higher values mean more
smoothing. A setting of 60 gives time constant of just over 5 seconds while 99
results in ~ 5 minutes.">
Specific Gravity Averaging</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="smoothFactor" id="smoothFactor"
min="0" max="99" placeholder="60" :value="settings.smoothFactor" required>
</div>
</div>
<div class="form-group row">
<label for="invertTFT" class="col-sm-4 form-check-label" data-toggle="tooltip"
title="Rotate TFT Display 180 degrees">Invert Display</label>
<div class="col-sm-8">
<input class="form-check-input" value="on" type="checkbox" id="invertTFT"
name="invertTFT">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">
Update</button>
</div>
</form>
</div>
</div> <!-- TiltBridge Tab -->
<div class="tab-pane fade" id="calibration"> <!-- Calibration Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Calibration Settings</h5>
</div>
<div class="card-body">
<p class="card-text">These settings control whether or not TiltBridge applies <a
href="/calibration/">calibration</a> and temperature corrections to the Tilt reading
before it is uploaded.</p>
<form action="/settings/calibration/" method="POST" enctype="multipart/form-data">
<div class="form-group row">
<label for="applyCalibration" class="col-sm-4 form-check-label"
data-toggle="tooltip" title="Apply calibration to Tilt data">Enable
Calibration</label>
<div class="col-sm-8">
<div class="col-sm-8">
<input class="form-check-input" value="on" type="checkbox"
id="applyCalibration" name="applyCalibration">
</div>
</div>
</div>
<div class="form-group row">
<label for="tempCorrect" class="col-sm-4 form-check-label" data-toggle="tooltip"
title="Apply temperature correction to Tilt data">Enable Temperature Correction
to 60 °F</label>
<div class="col-sm-8">
<div class="col-sm-8">
<input class="form-check-input" value="on" type="checkbox" id="tempCorrect"
name="tempCorrect">
</div>
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">Update</button>
</div>
</form>
</div>
</div> <!-- Calibration Tab -->
<div class="tab-pane fade" id="cloudtarget"> <!-- Cloud Target Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">TiltBridge Cloud</h5>
</div>
<div class="card-body">
<p class="card-text">TiltBridge Cloud allows you to leverage native
Android and iOS application integration without being in Bluetooth
range of your Tilts.
</p>
<form action="/settings/cloudtarget/" method="POST" enctype="multipart/form-data">
<div class="form-group row">
<div class="col-sm-1">
<!-- Buffer -->
</div>
<label for="cloudTargetEnabled" class="col-sm-2 col-form-label" data-toggle="tooltip"
title="Enable to leverage TiltBridge Cloud.">Enable:
</label>
<div class="col-sm-1">
<input class="form-check-input" value="off" type="checkbox" id="cloudTargetEnabled"
name="cloudTargetEnabled">
</div>
<div class="col-sm-8" id="applink">
<label for="cloudTargetEnabled" class="col-sm-2 col-form-label" data-toggle="tooltip"
title="QR code used by mobile application.">App QR:
</label>
<div class="col-sm-5">
<a href="#" id="qrlink" onclick="linkQR()">
<img id="qrious">
</a>
</div>
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">
Update</button>
</div>
</form>
</div>
</div> <!-- Cloud Target Tab -->
<div class="tab-pane fade" id="localtarget"> <!-- Local Target Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Fermentrack/BrewPi Remix Settings</h5>
</div>
<div class="card-body">
<p class="card-text">These settings control how TiltBridge talks to an endpoint like
<a href="https://www.fermentrack.com/">Fermentrack</a> or <a
href="https://www.brewpiremix.com/">BrewPi Remix</a>.
To disable the push, delete the URL.
</p>
<form action="/settings/localtarget/" method="POST" enctype="multipart/form-data">
<div class="form-group row">
<label for="localTargetURL" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Target URL. Delete to disable the push">Target URL</label>
<div class="col-sm-8">
<input type="url" class="form-control" name="localTargetURL"
id="localTargetURL" placeholder="http://127.0.0.1/tiltbridge/"
:value="settings.localTargetURL">
</div>
</div>
<div class="form-group row">
<label for="localTargetPushEvery" class="col-sm-3 col-form-label"
data-toggle="tooltip"
title="How often to push data (Range: 15 - 3600 seconds)">Push Frequency
(s)</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="localTargetPushEvery"
id="localTargetPushEvery" placeholder="30" min="15" max="3600"
:value="settings.localTargetPushEvery">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">
Update</button>
</div>
</form>
</div>
</div> <!-- Local Target Tab -->
<div class="tab-pane fade" id="googlesheets"> <!-- Google Sheets Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Google Sheets Settings</h5>
</div>
<div class="card-body">
<p class="card-text">
These settings control how TiltBridge talks to Google Sheets. To understand how to set
up
this feature (as well as a better explanation of these options), please read the
<a href="http://sheets.tiltbridge.com/">TiltBridge documentation here.</a>
</p>
<form action="/settings/googlesheets/" method="POST" enctype="multipart/form-data">
<div class="form-group row">
<label for="scriptsURL" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The Google Scripts URL associated with your deployment of the Tilt logging script">Google
Script URL</label>
<div class="col-sm-8">
<input type="url" class="form-control" name="scriptsURL" id="scriptsURL"
placeholder="https://script.google.com/.../" :value="settings.scriptsURL"
minlength="3" maxlength="254">
</div>
</div>
<div class="form-group row">
<label for="scriptsEmail" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The Google Scripts email address associated with your deployment of the Tilt logging script">Google
Script Email</label>
<div class="col-sm-8">
<input type="email" class="form-control" name="scriptsEmail" id="scriptsEmail"
placeholder="you@gmail.com" :value="settings.scriptsEmail"
minlength="8" maxlength="254">
</div>
</div>
<div class="form-group row">
<label for="sheetName_red" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The name of the spreadsheet to which log points for the red Tilt will be written">Red
Tilt Sheet Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="sheetName_red" id="sheetName_red"
placeholder="BeerName" :value="settings.sheetName_red"
minlength="1" maxlength="24">
</div>
</div>
<div class="form-group row">
<label for="sheetName_green" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The name of the spreadsheet to which log points for the green Tilt will be written">Green
Tilt Sheet Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="sheetName_green" id="sheetName_green"
placeholder="BeerName" :value="settings.sheetName_green"
minlength="1" maxlength="24">
</div>
</div>
<div class="form-group row">
<label for="sheetName_black" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The name of the spreadsheet to which log points for the black Tilt will be written">Black
Tilt Sheet Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="sheetName_black"
id="sheetName_black" placeholder="BeerName" :value="settings.sheetName_black"
minlength="1" maxlength="24">
</div>
</div>
<div class="form-group row">
<label for="sheetName_purple" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The name of the spreadsheet to which log points for the purple Tilt will be written">Purple
Tilt Sheet Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="sheetName_purple"
id="sheetName_purple" placeholder="BeerName" :value="settings.sheetName_purple"
minlength="1" maxlength="24">
</div>
</div>
<div class="form-group row">
<label for="sheetName_orange" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The name of the spreadsheet to which log points for the orange Tilt will be written">Orange
Tilt Sheet Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="sheetName_orange" id="sheetName_orange"
placeholder="BeerName" :value="settings.sheetName_orange"
minlength="1" maxlength="24">
</div>
</div>
<div class="form-group row">
<label for="sheetName_blue" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The name of the spreadsheet to which log points for the blue Tilt will be written">Blue
Tilt Sheet Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="sheetName_blue" id="sheetName_blue"
placeholder="BeerName" :value="settings.sheetName_blue"
minlength="1" maxlength="24">
</div>
</div>
<div class="form-group row">
<label for="sheetName_yellow" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The name of the spreadsheet to which log points for the yellow Tilt will be written">Yellow
Tilt Sheet Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="sheetName_yellow" id="sheetName_yellow"
placeholder="BeerName" :value="settings.sheetName_yellow"
minlength="1" maxlength="24">
</div>
</div>
<div class="form-group row">
<label for="sheetName_pink" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="The name of the spreadsheet to which log points for the pink Tilt will be written">Pink
Tilt Sheet Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="sheetName_pink" id="sheetName_pink"
placeholder="BeerName" :value="settings.sheetName_pink"
minlength="1" maxlength="24">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">Update</button>
</div>
</form>
</div>
</div> <!-- Google Sheets Tab -->
<div class="tab-pane fade" id="brewersfriend"> <!-- Brewer's Friend Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Brewer's Friend Settings</h5>
</div>
<div class="card-body">
<p class="card-text">
These settings control how TiltBridge talks to <a href="http://www.brewersfriend.com/">
Brewer's Friend.</a> With a premium account, Brewer's Friend supports logging from gravity
sensors such as the Tilt Hydrometer. To find your API key, log into your Brewer's Friend
account and go to Profile > Account. Your API key will be a string of letters and numbers
(not a URL).
</p>
<form action="/settings/brewersfriend/" method="POST">
<div class="form-group row">
<label for="brewersFriendKey" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Your Brewers Friend API key">Brewers Friend API Key</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="brewersFriendKey" id="brewersFriendKey"
placeholder="000ad814c6af391dee8f91" :value="settings.brewersFriendKey"
minlength="12" maxlength="64">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update">Update</button>
</div>
</form>
</div>
</div> <!-- Brewer's Friend Tab -->
<div class="tab-pane fade" id="brewfather"> <!-- Brewfather Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Brewfather Settings</h5>
</div>
<div class="card-body">
<p class="card-text">
These settings control how TiltBridge talks to <a href="http://www.brewfather.net/">
Brewfather.</a> With a premium account, Brewfather supports logging from gravity
sensors such as the Tilt Hydrometer. To find your API key, log into your Brewfather
account and go to Settings > Custom Stream. Your Stream key will be a string of
letters and numbers (not a URL).
</p>
<form action="/settings/brewfather/" method="POST">
<div class="form-group row">
<label for="brewfatherKey" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Your Brewfather Stream key">Brewfather Stream key</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="brewfatherKey" id="brewfatherKey"
placeholder="000ad814c6af391dee8f91" :value="settings.brewfatherKey"
minlength="12" maxlength="64">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">Update</button>
</div>
</form>
</div>
</div> <!-- BrewFather Tab -->
<div class="tab-pane fade" id="usertarget"> <!-- User Target Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">User Target Settings</h5>
</div>
<div class="card-body">
<p class="card-text">
These settings control how TiltBridge talks to a user-defined target. Specify a url
here and TiltBridge will send a
</p>
<form action="/settings/usertarget/" method="POST">
<div class="form-group row">
<label for="userTargetURL" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="URL to send data to">User Target URL</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="userTargetURL" id="userTargetURL"
placeholder="http://www.target.com/" :value="settings.userTargetURL"
minlength="12" maxlength="128">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">Update</button>
</div>
</form>
</div>
</div> <!-- User Target Tab -->
<div class="tab-pane fade" id="grainfather"> <!-- Grainfather Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Grainfather Settings</h5>
</div>
<div class="card-body">
<p class="card-text">
These settings control how TiltBridge talks to <a href="https://community.grainfather.com/">
Grainfather.</a> Grainfather supports logging from gravity sensors such as the Tilt
Hydrometer with an account. To find your API url, log into your Grainfather
account and go to Equipment > Fermentation Devices. Add a "Tilt" fermentation device for
each color Tilt you want to log. After adding the Tilt, the URL required below can be
found under setup instructions (accessible by clicking the circled "i" next to the Tilt
in Grainfather).
</p>
<form action="/settings/grainfather/" method="POST">
<div class="form-group row">
<label for="grainfatherURL_red" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Grainfather URL for a Red Tilt">Grainfather URL (Red)</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="grainfatherURL_red" id="grainfatherURL_red"
placeholder="https://community.grainfather.com/iot/xxxx-xxxx/tilt" :value="settings.grainfatherURL_red"
minlength="44" maxlength="64">
</div>
</div>
<div class="form-group row">
<label for="grainfatherURL_green" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Grainfather URL for a Green Tilt">Grainfather URL (Green)</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="grainfatherURL_green" id="grainfatherURL_green"
placeholder="https://community.grainfather.com/iot/xxxx-xxxx/tilt" :value="settings.grainfatherURL_green"
minlength="44" maxlength="64">
</div>
</div>
<div class="form-group row">
<label for="grainfatherURL_black" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Grainfather URL for a Black Tilt">Grainfather URL (Black)</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="grainfatherURL_black" id="grainfatherURL_black"
placeholder="https://community.grainfather.com/iot/xxxx-xxxx/tilt" :value="settings.grainfatherURL_black"
minlength="44" maxlength="64">
</div>
</div>
<div class="form-group row">
<label for="grainfatherURL_purple" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Grainfather URL for a Purple Tilt">Grainfather URL (Purple)</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="grainfatherURL_purple" id="grainfatherURL_purple"
placeholder="https://community.grainfather.com/iot/xxxx-xxxx/tilt" :value="settings.grainfatherURL_purple"
minlength="44" maxlength="64">
</div>
</div>
<div class="form-group row">
<label for="grainfatherURL_orange" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Grainfather URL for a Orange Tilt">Grainfather URL (Orange)</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="grainfatherURL_orange" id="grainfatherURL_orange"
placeholder="https://community.grainfather.com/iot/xxxx-xxxx/tilt" :value="settings.grainfatherURL_orange"
minlength="44" maxlength="64">
</div>
</div>
<div class="form-group row">
<label for="grainfatherURL_blue" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Grainfather URL for a Blue Tilt">Grainfather URL (Blue)</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="grainfatherURL_blue" id="grainfatherURL_blue"
placeholder="https://community.grainfather.com/iot/xxxx-xxxx/tilt" :value="settings.grainfatherURL_blue"
minlength="44" maxlength="64">
</div>
</div>
<div class="form-group row">
<label for="grainfatherURL_yellow" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Grainfather URL for a Yellow Tilt">Grainfather URL (Yellow)</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="grainfatherURL_yellow" id="grainfatherURL_yellow"
placeholder="https://community.grainfather.com/iot/xxxx-xxxx/tilt" :value="settings.grainfatherURL_yellow"
minlength="44" maxlength="64">
</div>
</div>
<div class="form-group row">
<label for="grainfatherURL_pink" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Grainfather URL for a Pink Tilt">Grainfather URL (Pink)</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="grainfatherURL_pink" id="grainfatherURL_pink"
placeholder="https://community.grainfather.com/iot/xxxx-xxxx/tilt" :value="settings.grainfatherURL_pink"
minlength="44" maxlength="64">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">Update</button>
</div>
</form>
</div>
</div> <!-- Grainfather Tab -->
<div class="tab-pane fade" id="brewstatus"> <!-- Brewstatus Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Brewstatus Settings</h5>
</div>
<div class="card-body">
<p class="card-text">These settings control how TiltBridge talks to
<a href="https://www.brewstat.us/">BrewStatus</a>. To disable pushing to BrewStatus,
delete the BrewStatus URL.
</p>
<form action="/settings/brewstatus/" method="POST" enctype="multipart/form-data">
<div class="form-group row">
<label for="brewstatusURL" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Target BrewStatus tiltbridge URL. Delete to disable pushing to BrewStatus">
BrewStatus URL</label>
<div class="col-sm-8">
<input type="url" class="form-control" name="brewstatusURL" id="brewstatusURL"
placeholder="https://www.brewstat.us/tilt/xxxxxxxxxx/log" :value="settings.brewstatusURL"
minlength="12" maxlength="254">
</div>
</div>
<div class="form-group row">
<label for="brewstatusPushEvery" class="col-sm-3 col-form-label"
data-toggle="tooltip"
title="How often to push data to BrewStatus (Range: 30 - 3600 seconds)">Push
Frequency (s)</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="brewstatusPushEvery"
min="30" max="3600">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">Update</button>
</div>
</form>
</div>
</div> <!-- Brewstatus Tab -->
<div class="tab-pane fade" id="taplistio"> <!-- Taplist.io Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Taplist.io Settings</h5>
</div>
<div class="card-body">
<p class="card-text">These settings control how TiltBridge talks to
<a href="https://taplist.io/">Taplist.io</a>. To disable pushing to Taplist.io,
delete the Taplist.io URL.
</p>
<form action="/settings/taplistio/" method="POST" enctype="multipart/form-data">
<div class="form-group row">
<label for="taplistioURL" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Target Taplist.io tiltbridge URL. Delete to disable pushing to Taplist.io">
Taplist.io URL</label>
<div class="col-sm-8">
<input type="url" class="form-control" name="taplistioURL" id="taplistioURL"
placeholder="https://api.taplist.io/api/v1/tilt-webhook/xxxx" :value="settings.taplistioURL"
minlength="12" maxlength="254">
</div>
</div>
<div class="form-group row">
<label for="taplistioPushEvery" class="col-sm-3 col-form-label"
data-toggle="tooltip"
title="How often to push data to Taplist.io (Range: 30 - 3600 seconds)">Push
Frequency (s)</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="taplistioPushEvery"
min="300" max="3600">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">Update</button>
</div>
</form>
</div>
</div> <!-- Taplist.io Tab -->
<div class="tab-pane fade" id="mqtt"> <!-- MQTT Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">MQTT Settings</h5>
</div>
<div class="card-body">
<p class="card-text">
These settings control how TiltBridge publishes data to an <a href="https://mqtt.org/">
MQTT</a> Broker. To disable pushing to the MQTT broker, delete the MQTT Broker IP.
</p>
<p class="card-text">
MQTT implementation supports <a href="https://www.home-assistant.io/">Home Assistant</a>
Auto Discovery of temperature and specific gravity sensors.
</p>
<p class="card-text">
General message payload is json and is formatted as follows:
<ul>
<li><strong>Topic:</strong> <pre>topic/tilt_color</pre></li>
<li><strong>Payload:</strong>
<pre>{"Color":"color","SG":"#.####","Temp":"##.#","fermunits":"SG","tempunits":"F","timeStamp":##########}</pre>
</li>
</ul>
</p>
<form action="/settings/mqtt/" method="POST" enctype="multipart/form-data">
<div class="form-group row">
<label for="mqttBrokerHost" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="MQTT Broker Server address. Delete to disable pushing to MQTT">MQTT
Broker Address</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="mqttBrokerHost" id="mqttBrokerHost"
placeholder="DNS or IP address" :value="settings.mqttBrokerHost"
minlength="3" maxlength="254">
</div>
</div>
<div class="form-group row">
<label for="mqttBrokerPort" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="MQTT Broker Server Port Number. Must be > 1024 and < 65535.">MQTT Broker
Port</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="mqttBrokerPort" id="mqttBrokerPort"
placeholder="1883" :value="settings.mqttBrokerPort"
min="1024" max="65535">
</div>
</div>
<div class="form-group row">
<label for="mqttUsername" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Username if using authentication for MQTT">MQTT Username</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="mqttUsername" id="mqttUsername"
placeholder="" :value="settings.mqttUsername"
minlength="4" maxlength="49">
</div>
</div>
<div class="form-group row">
<label for="mqttPassword" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="Password if using authentication for MQTT">MQTT Password</label>
<div class="col-sm-8">
<input type="password" class="form-control" name="mqttPassword"
id="mqttPassword" placeholder="" :value="settings.mqttPassword"
minlenth="1" maxlength="64">
</div>
</div>
<div class="form-group row">
<label for="mqttTopic" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="MQTT Topic to publish data to. Limited to maximum of 30 characters.">MQTT
Topic</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="mqttTopic" id="mqttTopic"
placeholder="tiltbridge" :value="settings.mqttTopic"
minlength="4" maxlength="29">
</div>
</div>
<div class="form-group row">
<label for="mqttPushEvery" class="col-sm-3 col-form-label" data-toggle="tooltip"
title="How often to push data to MQTT (Range: 30 - 3600 seconds)">Push Frequency
(s)</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="mqttPushEvery" id="mqttPushEvery"
placeholder="30" :value="settings.mqttPushEvery"
min="30" max="3600">
</div>
</div>
<div class="row col-sm-12 justify-content-center">
<button type="submit" class="btn btn-primary button-update"
onclick="if(!this.form.checkValidity(this)){return (false);}">Update</button>
</div>
</form>
</div>
</div> <!-- MQTT Tab -->
<div class="tab-pane fade" id="restartcontroller"> <!-- Restart Controller Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Restart TiltBridge</h5>
</div>
<div class="card-body">
<div class="card-body">
<p class="card-text">
If you would like to restart your TiltBridge, you may do so with the button below. This
action is identical to pressing the reset button on the controller and will not erase
your settings.
</p>
<div class="form-group row">
<div class="col-sm-5"></div>
<div class="col-sm-2">
<a href="/controllerrestart/" class="btn btn-success button-resetcontroller">Restart Controller</a>
</div>
</div>
</div>
</div>
</div> <!-- Restart Controller Tab -->
<div class="tab-pane fade" id="resetwifi"> <!-- Reset WiFi Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Reset WiFi</h5>
</div>
<div class="card-body">
<p class="card-text">
If you plan on relocating your TiltBridge to a new network, you can reset the WiFi
connection settings by clicking "Reset WiFi".
</p>
<div class="row col-sm-12 justify-content-center">
<a href="/wifireset/" class="btn btn-warning button-resetwifi">Reset WiFi</a>
</div>
</div>
</div> <!-- Reset WiFi Tab -->
<div class="tab-pane fade" id="resetcontroller"> <!-- Factory Reset Tab -->
<div class="card-header bg-light border-primary">
<h5 class="card-title">Factory Reset</h5>
</div>
<div class="card-body">
<p class="card-text">
If you would like to restore your TiltBridge to like-new settings, you may
use the button below. This will erase all settings, calibrations, and wifi
configuration including the host name. This action may not be undone, and
after, you will need to connect to the AP and reconfigure your device fully.
</p>
<div class="row col-sm-12 justify-content-center">
<a href="/factoryreset/" class="btn btn-danger button-resetfactory">Factory Reset</a>
</div>
</div>
</div> <!-- Factory Reset Tab -->
</div> <!-- Navigation Tab contents -->
</div> <!-- TiltBridge Settings -->
</div> <!-- App Container -->
</main>
<footer class="footer mt-auto py-3 bg-light">
<div class="container text-center">
<span class="text-muted">Copyright © 2018-2021, John Beeler</span>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js"
integrity="sha384-Dr98ddmUw2QkdCarNQ+OL7xLty7cSxgR0T7v1tq4UErS/qLV0132sBYTolRAFuOV"
crossorigin="anonymous">
</script>
<script src="/settings.js" defer></script>
<script src="/alerts.js" defer></script>
</body>
</html>