From 65ce446e44a7e5246b31947474e60d46ca0725dd Mon Sep 17 00:00:00 2001 From: bonamin Date: Sun, 12 Jul 2026 19:38:21 +0300 Subject: [PATCH] =?UTF-8?q?fix(ApiReference):=20clock.get=5Fconfig=20?= =?UTF-8?q?=E2=80=94=20add=20timezone=20fields,=20fix=20backlight/bell=20d?= =?UTF-8?q?ocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - clock.get_config response example now includes gmt_offset_sec, dst_offset_sec, ntp_server - Description updated to note it supersedes clock.get_timezone - clock.set_backlight field names corrected to match wire format (backlight, backlight_output, backlight_on, backlight_off) Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/engineering/developer/ApiReferencePage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/engineering/developer/ApiReferencePage.jsx b/frontend/src/pages/engineering/developer/ApiReferencePage.jsx index 3a5d516..6fe3e50 100644 --- a/frontend/src/pages/engineering/developer/ApiReferencePage.jsx +++ b/frontend/src/pages/engineering/developer/ApiReferencePage.jsx @@ -523,9 +523,9 @@ const NAMESPACES = [ cmd: 'clock.get_config', handler: 'ClockHandler', transports: ['All'], - description: 'Read full clock configuration — outputs, timings, alerts, backlight, silence, enabled state.', + description: 'Read full clock configuration — outputs, timings, alerts, backlight, silence, enabled state, and timezone. Supersedes clock.get_timezone.', contents: null, - response: '{\n "status": "SUCCESS",\n "type": "clock.get_config",\n "data": {\n "enabled": true,\n "c1output": 4, "c2output": 5,\n "pulse_duration": 100, "pause_duration": 500,\n "physical_hour": 10, "physical_minute": 30,\n "next_is_c1": true, "last_sync_time": 1740000000,\n "alert_type": "HOURS", "alert_interval": 1,\n "hour_bell": 5, "half_bell": 255, "quarter_bell": 255,\n "backlight": true, "backlight_output": 6,\n "backlight_on": "07:00", "backlight_off": "22:00",\n "daytime_silence": false, "daytime_on": "00:00", "daytime_off": "00:00",\n "night_silence": true, "night_on": "22:00", "night_off": "07:00"\n }\n}', + response: '{\n "status": "SUCCESS",\n "type": "clock.get_config",\n "data": {\n "enabled": true,\n "c1output": 4, "c2output": 5,\n "pulse_duration": 100, "pause_duration": 500,\n "physical_hour": 10, "physical_minute": 30,\n "next_is_c1": true, "last_sync_time": 1740000000,\n "alert_type": "HOURS", "alert_interval": 1,\n "hour_bell": 5, "half_bell": 255, "quarter_bell": 255,\n "backlight": true, "backlight_output": 6,\n "backlight_on": "07:00", "backlight_off": "22:00",\n "daytime_silence": false, "daytime_on": "00:00", "daytime_off": "00:00",\n "night_silence": true, "night_on": "22:00", "night_off": "07:00",\n "gmt_offset_sec": 7200, "dst_offset_sec": 3600, "ntp_server": "pool.ntp.org"\n }\n}', errors: [], example: '{ "v": 2, "cmd": "clock.get_config" }', warning: null,