# Analog\_Clock Configuration via API: How can I use the API to find, list, change the Analog\_Clock Configuration?

**URL:** <https://wled.discourse.group/t/analog-clock-configuration-via-api-how-can-i-use-the-api-to-find-list-change-the-analog-clock-configuration/10741>\
**Category:** Questions\
**Created:** [January 12, 2024, 1:12am UTC](https://wled.discourse.group/t/analog-clock-configuration-via-api-how-can-i-use-the-api-to-find-list-change-the-analog-clock-configuration/10741 "2024-01-12T01:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![markabyrd](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/markabyrd/32/3916_2.png) [@markabyrd](https://wled.discourse.group/u/markabyrd)\
**Post date:** [January 12, 2024, 1:12am UTC](https://wled.discourse.group/t/analog-clock-configuration-via-api-how-can-i-use-the-api-to-find-list-change-the-analog-clock-configuration/10741/1 "2024-01-12T01:12:59Z")

</div>

Changing Analog\_Clock marker colors…

Reading other questions about changing Analog\_Clock Usermod colors seems to indicate that changing colors requires making changes in Analog\_Clock.h and compiling a new bin.

When looking at where/how to make color changes, I find this in the Analog\_Clock.h code…

```
// configuration (available in API and stored in flash)
bool enabled = false;
Segment mainSegment;
bool hourMarksEnabled = true;
uint32_t hourMarkColor = 0xFF0000;
uint32_t hourColor = 0x0000FF;
uint32_t minuteColor = 0x00FF00;
bool secondsEnabled = true;
Segment secondsSegment;
uint32_t secondColor = 0xFF0000;
bool blendColors = true;
uint16_t secondsEffect = 0;

```

It is that comment line that raises my question…

" “available in API and stored in flash”

HOW CAN I USE THE API TO FIND, LIST, OR CHANGE THE ANALOG\_CLOCK CONFIGURATION VARIABLES?

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [January 13, 2024, 12:41am UTC](https://wled.discourse.group/t/analog-clock-configuration-via-api-how-can-i-use-the-api-to-find-list-change-the-analog-clock-configuration/10741/2 "2024-01-13T00:41:41Z")

</div>

I think API is described here [HTTP Request API - WLED Project](https://kno.wled.ge/interfaces/http-api/)

---

<div class="post-metadata">

**Author:** ![Tallman](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tallman](https://wled.discourse.group/u/Tallman)\
**Post date:** [April 20, 2024, 10:03am UTC](https://wled.discourse.group/t/analog-clock-configuration-via-api-how-can-i-use-the-api-to-find-list-change-the-analog-clock-configuration/10741/3 "2024-04-20T10:03:18Z")

</div>

Unfortunately I can’t find any call there that refers to the analog clock.
