-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dashboard Configuration Capability
Added dashboard configuration capability defined in the ./dashboard folder with a json file defining configuration for each. This will get built on boot and loaded dynamically. Default dashboard now has the option to set the maximum temperature to display for both the primary and the food gauges. This can be configured by clicking on the gear icon.
- Loading branch information
Showing
8 changed files
with
218 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% macro config_input_float_int(classname, id_prefix, label, default, min, max, step) %} | ||
<input type="number" class="form-control {{ classname }}" | ||
value="{{ default }}" | ||
min="{{ min }}" | ||
max="{{ max }}" | ||
step="{{ step }}" | ||
id="{{ id_prefix }}_{{ label }}" | ||
name="{{ id_prefix }}_{{ label }}"/> | ||
{% endmacro %} | ||
|
||
{% macro config_input_list(classname, id_prefix, label, default, list_values, list_labels) %} | ||
<select class="form-control {{ classname }}" | ||
id="{{ id_prefix }}_{{ label }}" | ||
name="{{ id_prefix }}_{{ label }}"> | ||
{% for item in list_values %} | ||
<option value="{{ item }}"{% if default == item %} selected{% endif %}>{{ list_labels[loop.index0] }}</option> | ||
{% endfor %} | ||
</select> | ||
{% endmacro %} | ||
|
||
{% macro config_input_string(classname, id_prefix, label, default) %} | ||
<input type="text" class="form-control {{ classname }}" | ||
value="{{ default }}" | ||
id="{{ id_prefix }}_{{ label }}" | ||
name="{{ id_prefix }}_{{ label }}"/> | ||
{% endmacro %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters