Compare commits
2 Commits
c52fca4b5a
...
2823f9d96d
Author | SHA1 | Date | |
---|---|---|---|
2823f9d96d | |||
51ba50c0c6 |
2692
package-lock.json
generated
2692
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pscontrolpanel",
|
"name": "hestia",
|
||||||
"version": "0.2.1",
|
"version": "0.3.0",
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {},
|
"packages": {},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -10,6 +10,6 @@
|
|||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"rpi-gpio": "^2.1.7",
|
"rpi-gpio": "^2.1.7",
|
||||||
"sequelize": "^6.28.0",
|
"sequelize": "^6.28.0",
|
||||||
"sqlite3": "^5.1.4"
|
"sqlite3": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<table id="status-table" class="table table-bordered col-sm-12 col-md-6">
|
<table id="status-table" class="table table-bordered col-sm-12 col-md-6">
|
||||||
<tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Igniter</td>
|
<td>Igniter</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
@ -37,6 +36,7 @@
|
|||||||
<td>Exhaust</td>
|
<td>Exhaust</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>Auger</td>
|
<td>Auger</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -131,17 +131,17 @@
|
|||||||
|
|
||||||
// Get the elements we need to update
|
// Get the elements we need to update
|
||||||
const statusTable = document.getElementById('status-table');
|
const statusTable = document.getElementById('status-table');
|
||||||
const igniterStatus = statusTable.rows[0].cells[1];
|
const igniterStatus = statusTable.rows[1].cells[1];
|
||||||
const exhaustStatus = statusTable.rows[1].cells[1];
|
const exhaustStatus = statusTable.rows[2].cells[1];
|
||||||
const augerStatus = statusTable.rows[2].cells[1];
|
const augerStatus = statusTable.rows[0].cells[1];
|
||||||
const feedRate = statusTable.rows[3].cells[1];
|
const feedRate = statusTable.rows[3].cells[1];
|
||||||
const feedRateSelect = document.getElementById('feed-rate-select');
|
const feedRateSelect = document.getElementById('feed-rate-select');
|
||||||
|
|
||||||
// console.log(config);
|
// console.log(config);
|
||||||
|
|
||||||
augerStatus.innerHTML = parseStatus(config.status.auger);
|
|
||||||
igniterStatus.innerHTML = parseStatus(config.status.igniter);
|
igniterStatus.innerHTML = parseStatus(config.status.igniter);
|
||||||
exhaustStatus.innerHTML = parseStatus(config.status.exhaust);
|
exhaustStatus.innerHTML = parseStatus(config.status.exhaust);
|
||||||
|
augerStatus.innerHTML = parseStatus(config.status.auger);
|
||||||
|
|
||||||
switch (config.intervals.augerOn) {
|
switch (config.intervals.augerOn) {
|
||||||
case '500':
|
case '500':
|
||||||
|
Loading…
Reference in New Issue
Block a user