From bd08b7e0e4089d11efd559fabcb4000ef17b0115 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 20 Oct 2024 15:01:08 +0200 Subject: [PATCH] add Developer Mode and value to API Call --- interface/src/app/main/types.ts | 2 ++ interface/src/app/settings/ApplicationSettings.tsx | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/interface/src/app/main/types.ts b/interface/src/app/main/types.ts index 38398bccb..69eeea539 100644 --- a/interface/src/app/main/types.ts +++ b/interface/src/app/main/types.ts @@ -42,6 +42,7 @@ export interface Settings { modbus_port: number; modbus_max_clients: number; modbus_timeout: number; + developer_mode: boolean; } export enum busConnectionStatus { @@ -273,6 +274,7 @@ export interface APIcall { device: string; cmd: string; id: number; + value?: string; // optional } export interface Action { diff --git a/interface/src/app/settings/ApplicationSettings.tsx b/interface/src/app/settings/ApplicationSettings.tsx index 946f295fd..6af5901b4 100644 --- a/interface/src/app/settings/ApplicationSettings.tsx +++ b/interface/src/app/settings/ApplicationSettings.tsx @@ -686,6 +686,16 @@ const ApplicationSettings = () => { {LL.SPECIAL_FUNCTIONS()} + + } + label={LL.DEVELOPER_MODE()} + /> { } label={LL.HEATINGOFF()} /> -