Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The server part of the application that displays the day of the week in Ukrainian and the flag for holidays on the screens of LaMetric devices.

Notifications You must be signed in to change notification settings

ohorbatiuk/weekday

Repository files navigation

image

Introduce

It is the backend for a LaMetric app that displays the current day of the week in the Ukrainian language. A small visual trick is used to make the text more readable — some letters are substituted with similar-looking digits, resulting in cleaner and less rounded characters.

The app can also signal Ukrainian national holidays such as Independence Day, Constitution Day, and others. There are two ways it does this:

  • Letter coloring: one or more of the first letters of the day name are colored in the Ukrainian flag colors.
  • Flag display: if the length of the day name allows enough space, a small Ukrainian flag is shown instead, making the color highlight unnecessary.

Docker

Build image:

docker build \
  --build-arg TIMEZONE=$(grep ^TIMEZONE .env | cut -d '=' -f2) \
  -f Dockerfile.publish \
  -t ohorbatiuk/weekday .

Run container:

docker run -d -p 80:80 --name weekday-app ohorbatiuk/weekday