Skip to content

Commit

Permalink
Merge pull request #636 from mathoudebine/fix/635-showing-1-jan-20254…
Browse files Browse the repository at this point in the history
…-after-running-during-year-change
  • Loading branch information
mathoudebine authored Jan 2, 2025
2 parents b72b67b + e75821e commit 5a0f531
Show file tree
Hide file tree
Showing 25 changed files with 162 additions and 37 deletions.
6 changes: 5 additions & 1 deletion res/themes/3.5inchTheme2/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ STATS:
FONT_SIZE: 10
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
WIDTH: 90
ANCHOR: lm
HOUR:
TEXT:
SHOW: True
Expand All @@ -221,4 +223,6 @@ STATS:
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 10
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
BACKGROUND_IMAGE: background.png
WIDTH: 64
ANCHOR: lm
Binary file modified res/themes/5inchTheme2/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 37 additions & 7 deletions res/themes/5inchTheme2/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ static_text:
DISK_USED_LABEL:
TEXT: "Used:"
X: 124
Y: 625
Y: 615
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
DISK_FREE_LABEL:
TEXT: "Free:"
X: 124
Y: 679
Y: 669
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
DISK_TOTAL_LABEL:
TEXT: "Total:"
X: 124
Y: 652
Y: 642
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand Down Expand Up @@ -165,7 +165,7 @@ STATS:
GRAPH:
SHOW: True
X: 124
Y: 600
Y: 590
WIDTH: 178
HEIGHT: 15
MIN_VALUE: 0
Expand All @@ -177,7 +177,7 @@ STATS:
SHOW: TRUE
SHOW_UNIT: True
X: 204
Y: 625
Y: 615
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -187,7 +187,7 @@ STATS:
SHOW: TRUE
SHOW_UNIT: True
X: 204
Y: 652
Y: 642
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -197,7 +197,7 @@ STATS:
SHOW: TRUE
SHOW_UNIT: True
X: 204
Y: 679
Y: 669
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -214,6 +214,8 @@ STATS:
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
WIDTH: 230
ANCHOR: lt
HOUR:
TEXT:
SHOW: True
Expand All @@ -223,3 +225,31 @@ STATS:
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
WIDTH: 230
ANCHOR: lt

WEATHER:
# For optimal use, if you don't want to trigger the free threshold daily call (1000 calls), the interval should be 90 MINIMUM (not really useful as the API didn't update that quickly)
INTERVAL: 300
TEMPERATURE:
TEXT:
SHOW: True
X: 270
Y: 768
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_IMAGE: background.png
WIDTH: 200
ANCHOR: rt
WEATHER_DESCRIPTION:
TEXT:
SHOW: True
X: 270
Y: 740
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_IMAGE: background.png
WIDTH: 200
ANCHOR: rt
Binary file modified res/themes/5inchTheme2Radial/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 37 additions & 7 deletions res/themes/5inchTheme2Radial/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ static_text:
DISK_USED_LABEL:
TEXT: "Used:"
X: 124
Y: 625
Y: 615
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
DISK_FREE_LABEL:
TEXT: "Free:"
X: 124
Y: 679
Y: 669
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
DISK_TOTAL_LABEL:
TEXT: "Total:"
X: 124
Y: 652
Y: 642
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand Down Expand Up @@ -184,7 +184,7 @@ STATS:
GRAPH:
SHOW: True
X: 124
Y: 600
Y: 590
WIDTH: 178
HEIGHT: 15
MIN_VALUE: 0
Expand All @@ -196,7 +196,7 @@ STATS:
SHOW: TRUE
SHOW_UNIT: True
X: 204
Y: 625
Y: 615
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -206,7 +206,7 @@ STATS:
SHOW: TRUE
SHOW_UNIT: True
X: 204
Y: 652
Y: 642
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -216,7 +216,7 @@ STATS:
SHOW: TRUE
SHOW_UNIT: True
X: 204
Y: 679
Y: 669
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -233,6 +233,8 @@ STATS:
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
WIDTH: 230
ANCHOR: lt
HOUR:
TEXT:
SHOW: True
Expand All @@ -242,3 +244,31 @@ STATS:
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
WIDTH: 230
ANCHOR: lt

WEATHER:
# For optimal use, if you don't want to trigger the free threshold daily call (1000 calls), the interval should be 90 MINIMUM (not really useful as the API didn't update that quickly)
INTERVAL: 300
TEMPERATURE:
TEXT:
SHOW: True
X: 270
Y: 768
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_IMAGE: background.png
WIDTH: 200
ANCHOR: rt
WEATHER_DESCRIPTION:
TEXT:
SHOW: True
X: 270
Y: 740
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_IMAGE: background.png
WIDTH: 200
ANCHOR: rt
4 changes: 4 additions & 0 deletions res/themes/BigClock/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ STATS:
FONT_SIZE: 80
FONT_COLOR: 200, 200, 200
BACKGROUND_COLOR: 0, 0, 0
WIDTH: 460
ANCHOR: mm
HOUR:
TEXT:
SHOW: True
Expand All @@ -34,3 +36,5 @@ STATS:
FONT_SIZE: 80
FONT_COLOR: 200, 200, 200
BACKGROUND_COLOR: 50, 0, 0
WIDTH: 460
ANCHOR: mm
8 changes: 6 additions & 2 deletions res/themes/ColoredFlat/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -484,22 +484,26 @@ STATS:
TEXT:
FORMAT: medium # short (2/20/23) / medium (Feb 20, 2023) / long (February 20, 2023) / full (Monday, February 20, 2023)
SHOW: True
X: 275
X: 240
Y: 25
FONT: roboto/Roboto-Bold.ttf
FONT_SIZE: 30
FONT_COLOR: 247, 227, 227
BACKGROUND_IMAGE: background.png
WIDTH: 240
ANCHOR: mt
HOUR: # Format (12/24h, timezone translations) will match your computer locale
TEXT:
FORMAT: medium # short (6:48 PM) / medium (6:48:53 PM) / long (6:48:53 PM UTC) / full (6:48:53 PM Coordinated Universal Time)
SHOW: True
X: 55
X: 0
Y: 25
FONT: roboto/Roboto-Bold.ttf
FONT_SIZE: 30
FONT_COLOR: 247, 227, 227
BACKGROUND_IMAGE: background.png
WIDTH: 240
ANCHOR: mt
WEATHER:
# For optimal use, if you don't want to trigger the free threshold daily call (1000 calls), the interval should be 90 MINIMUM (not really useful as the API didn't update that quickly)
INTERVAL: 300
Expand Down
4 changes: 4 additions & 0 deletions res/themes/CyanTheme/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ STATS:
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_IMAGE: background.png
WIDTH: 300
ANCHOR: lt
HOUR: # Format (12/24h, timezone translations) will match your computer locale
TEXT:
FORMAT: medium # short (6:48 PM) / medium (6:48:53 PM) / long (6:48:53 PM UTC) / full (6:48:53 PM Coordinated Universal Time)
Expand All @@ -205,3 +207,5 @@ STATS:
FONT_SIZE: 25
FONT_COLOR: 255, 255, 255
BACKGROUND_IMAGE: background.png
WIDTH: 300
ANCHOR: lt
4 changes: 4 additions & 0 deletions res/themes/Cyberpunk-net/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ STATS:
FONT_SIZE: 18
FONT_COLOR: 255, 239, 8
BACKGROUND_IMAGE: background.png
WIDTH: 160
ANCHOR: lt
HOUR:
TEXT:
SHOW: True
Expand All @@ -245,3 +247,5 @@ STATS:
FONT_SIZE: 15
FONT_COLOR: 255, 239, 8
BACKGROUND_IMAGE: background.png
WIDTH: 100
ANCHOR: lt
4 changes: 4 additions & 0 deletions res/themes/Cyberpunk/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ STATS:
FONT_SIZE: 18
FONT_COLOR: 255, 239, 8
BACKGROUND_IMAGE: background.png
WIDTH: 160
ANCHOR: lt
HOUR:
TEXT:
SHOW: True
Expand All @@ -234,3 +236,5 @@ STATS:
FONT_SIZE: 15
FONT_COLOR: 255, 239, 8
BACKGROUND_IMAGE: background.png
WIDTH: 100
ANCHOR: lt
4 changes: 4 additions & 0 deletions res/themes/DragonBall5inch/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ STATS:
FONT_SIZE: 22
FONT_COLOR: 0, 0, 0
BACKGROUND_IMAGE: background.png
WIDTH: 200
ANCHOR: lt
HOUR: # Format (12/24h, timezone translations) will match your computer locale
TEXT:
FORMAT: medium # short (6:48 PM) / medium (6:48:53 PM) / long (6:48:53 PM UTC) / full (6:48:53 PM Coordinated Universal Time)
Expand All @@ -144,4 +146,6 @@ STATS:
FONT_SIZE: 28
FONT_COLOR: 0, 0, 0
BACKGROUND_IMAGE: background.png
WIDTH: 200
ANCHOR: lt

6 changes: 5 additions & 1 deletion res/themes/Landscape15Grid/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ STATS:
FONT_SIZE: 20
FONT_COLOR: 255, 255, 255
BACKGROUND_IMAGE: background_grid.png
WIDTH: 130
ANCHOR: lt
HOUR: # Format (12/24h, timezone translations) will match your computer locale
TEXT:
FORMAT: short # short (6:48 PM) / medium (6:48:53 PM) / long (6:48:53 PM UTC) / full (6:48:53 PM Coordinated Universal Time)
Expand All @@ -300,4 +302,6 @@ STATS:
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 28
FONT_COLOR: 255, 255, 255
BACKGROUND_IMAGE: background_grid.png
BACKGROUND_IMAGE: background_grid.png
WIDTH: 130
ANCHOR: lt
9 changes: 7 additions & 2 deletions res/themes/LandscapeEarth/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,18 @@ STATS:
FONT_SIZE: 20
FONT_COLOR: 252, 255, 255
BACKGROUND_IMAGE: background.png
WIDTH: 180
ANCHOR: lt
HOUR:
TEXT:
FORMAT: short
SHOW: True
X: 14
Y: 30
Y: 26
FONT: generale-mono/GeneraleMonoA.ttf
FONT_SIZE: 26
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 16, 28, 57 # In case hour is over the star in background
BACKGROUND_COLOR: 16, 24, 49
WIDTH: 115 # Increase to 160 if you need the time to cover the star (e.g. am/pm indicator)
HEIGHT: 30
ANCHOR: lm
6 changes: 5 additions & 1 deletion res/themes/LandscapeMagicBlue/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,20 @@ STATS:
SHOW: True
X: 58
Y: 10
WIDTH: 100
FONT: generale-mono/GeneraleMonoA.ttf
FONT_SIZE: 12
FONT_COLOR: 128, 255, 255
BACKGROUND_IMAGE: background.png
ANCHOR: mt # Text is centered (needs fixed WIDTH)
HOUR:
TEXT:
SHOW: True
X: 334
X: 325
Y: 10
WIDTH: 100
FONT: generale-mono/GeneraleMonoA.ttf
FONT_SIZE: 12
FONT_COLOR: 128, 255, 255
BACKGROUND_IMAGE: background.png
ANCHOR: mt # Text is centered (needs fixed WIDTH)
Loading

0 comments on commit 5a0f531

Please sign in to comment.