Skip to content

Conversation

@d4rkd3v1l
Copy link
Contributor

This change allows to just switch back to the clock, without touching any parameters, and just display the clock as it was before. One can also specify parameters explicitly to enforce using those. Additionally "show" parameter has been removed, as it was basically unnecessary anyway. Backwards compatibility: It will work with and without providing it, as long as a "clock" json object is present.

Minimum json, to trigger clock being displayed:

{
    "clock": {}
}

Maximum (all parameters currently supported):

{
    "clock": {
        "fatFont": false,
        "switchAktiv": false,
        "switchSec": 5,
        "blinkAnimated": true,
        "withSeconds": false,
        "drawWeekDays": true,
        "hexColor": "#00FF00",
        "color": {
            "r": 0,
            "g": 255,
            "b": 0
        }
}

This change allows to just switch back to the clock, without touching any parameters, and just display the clock as it was before. One can also specify parameters explicitly to enforce using those. Additionally "show" parameter has been removed, as it was basically unnecessary anyway. Backwards compatibility: It will work with and without providing it, as long as a "clock" json object is present.

Minimum json, to trigger clock being displayed:
```
{
    "clock": {}
}
```

Maximum (all parameters currently supported):
```
{
    "clock": {
        "fatFont": false,
        "switchAktiv": false,
        "switchSec": 5,
        "blinkAnimated": true,
        "withSeconds": false,
        "drawWeekDays": true,
        "hexColor": "#00FF00",
        "color": {
            "r": 0,
            "g": 255,
            "b": 0
        }
}
```
@o0shojo0o o0shojo0o merged commit 75beabc into pixelit-project:main Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants