Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any "clock" json parameters are now optional #222

Merged
merged 1 commit into from
Oct 23, 2022

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