feat: Implement web-based water button status UI with a dedicated server and associated rule UI test files.

This commit is contained in:
sebseb7
2026-03-07 15:53:57 -05:00
parent 541f675bab
commit 65d4ff7b62
4 changed files with 725 additions and 3 deletions

View File

@@ -17,9 +17,8 @@
import fs from 'fs';
import path from 'path';
import http from 'http';
import { startStatusServer } from '../waterButtonStatusServer.js';
import { fileURLToPath } from 'url';
import { startStatusServer } from './waterTimerWebservice.js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
@@ -570,7 +569,6 @@ export default {
startStatusServer({
getState,
WATER_BUTTON_MAC,
getSendRPC: () => global.__waterBotRPC,
setLight,
persistedState,
saveState