Dynamically fill the dashboard with content based off of database.JSON
Members
(inner, constant) DATA_INTERFACING
(inner, constant) TIMER
Methods
(static) fillAllItems(testing)
/**
Creates an element for each sensor and appends it to the dropdown
Parameters:
Name | Type | Description |
---|---|---|
testing |
Boolean | true if testing false if not |
(static) fillAllTables()
Fills all tables on the dashboard
(inner) createActualCol(name) → {HTMLElement}
Creates the actual value coluumn for a sensor
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the sensor |
Returns:
The table column
- Type
- HTMLElement
(inner) createHeaderCol(name, group, units) → {HTMLElement}
Creates the name column for the sensor
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the sensor |
group |
String | The group it belongs to |
units |
String | The units it's displayed to |
Returns:
The table column
- Type
- HTMLElement
(inner) createMaxCol(name, group)
Creates the maximum value column for a sensor
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the sensor |
group |
String | The group the sensor belongs to |
(inner) createMinCol(name, group) → {HTMLElement}
Creates the minimum value column for a sensor
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the sensor |
group |
String | The group it belongs to |
Returns:
The table column
- Type
- HTMLElement
(inner) createRow(name, group, units)
Creates a table row with a name, min, actual, and max column and appends it to specified table
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the sensor |
group |
String | The group the sensor belogns to |
units |
String | The units to display in |
(inner) fillAllBounds(state)
Fills all tables nominal values
Parameters:
Name | Type | Description |
---|---|---|
state |
String |
(inner) fillRowBounds(subsystem, sensor, state)
Fills a row's nomimal values
Parameters:
Name | Type | Description |
---|---|---|
subsystem |
String | The group the sensor belongs to |
sensor |
String | The name of the sensor |
state |
String | The state which bounds are being filled |
(inner) fillTable(table)
Fills a table with rows
Parameters:
Name | Type | Description |
---|---|---|
table |
String | The name of the group/table to fill |
(inner) fillTableBounds(subsystem, state)
Fills a table's nominal values
Parameters:
Name | Type | Description |
---|---|---|
subsystem |
String | The table to fill |
state |
String | The state which bounds are being filled |
(inner) getMaxCell(sensor) → {HTMLElement}
Returns the div of the column that contains text
Parameters:
Name | Type | Description |
---|---|---|
sensor |
String | Name of sensor |
Returns:
The div the contains value text
- Type
- HTMLElement
(inner) getMinCell(sensor) → {HTMLElement}
Returns the div of the column that contains text
Parameters:
Name | Type | Description |
---|---|---|
sensor |
String | Name of sensor |
Returns:
The div the contains value text
- Type
- HTMLElement
(inner) setMaxCell(sensor, value)
Sets the text of the maximum value column for a row
Parameters:
Name | Type | Description |
---|---|---|
sensor |
String | Name of sensor |
value |
Number | Value to set |
(inner) setMinCell(sensor, value)
Sets the text of the minimum value column for a row
Parameters:
Name | Type | Description |
---|---|---|
sensor |
String | Name of sensor |
value |
Number | Value to set |