Skip to content

Enable/disable videos based on time of day#57

Open
klarrieu wants to merge 2 commits intoenen92:masterfrom
klarrieu:daynight
Open

Enable/disable videos based on time of day#57
klarrieu wants to merge 2 commits intoenen92:masterfrom
klarrieu:daynight

Conversation

@klarrieu
Copy link

@klarrieu klarrieu commented Apr 1, 2024

This PR allows videos to be enabled/disabled based on time of day. This may be desired to avoid showing videos with bright blue or white light at night (e.g. underwater scenes), or to have day/night scenes play at corresponding day/night time. The following changes were made:

  • converted video settings (in settings.xml) from boolean (enabled/disabled) to integer with the following options:
    • 0: On
    • 1: Day Only
    • 2: Night Only
    • 3: Off
  • The corresponding labels for these new options have also been added to the language strings.po files.
  • These settings are compared with the system time as parsed out in resources/lib/playlist.py to determine whether to play a video when the screensaver is invoked.

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.

1 participant