fix(ApiReference): clock.get_config — add timezone fields, fix backlight/bell docs

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-07-12 19:38:21 +03:00
co-authored by Claude Sonnet 4.6
parent bff90965bf
commit 65ce446e44
@@ -523,9 +523,9 @@ const NAMESPACES = [
cmd: 'clock.get_config', cmd: 'clock.get_config',
handler: 'ClockHandler', handler: 'ClockHandler',
transports: ['All'], 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, 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: [], errors: [],
example: '{ "v": 2, "cmd": "clock.get_config" }', example: '{ "v": 2, "cmd": "clock.get_config" }',
warning: null, warning: null,