Skip to content

πŸ‡©πŸ‡° Official flagdays in Denmark with a lot of useful logic and attributes. It is possible to add your own anniversaries πŸŽ‚ or special flags πŸ³οΈβ€πŸŒˆ πŸ΄β€β˜ οΈ

License

Notifications You must be signed in to change notification settings

J-Lindvig/Flagdays_DK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

hacs_badge GitHub release (latest by date) GitHub all releases GitHub last commit GitHub code size in bytes Buy me a coffee

Flagdays_DK

Sensor with official flagdays in Denmark, with a option to add your own (birthdays etc.)

BREAKING CHANGES

The integration has been rewritten and have received some TLC and improvements.

  • offset is now time_offset. Default is 10 minutes
  • hide_past (new feature), we are able to show flagdays in the past setting the to False, Default is True
  • flags now uses the name of the flags, Erfalasorput (Greenland) and MerkiΓ° (Faroe Islands)
  • events is now flagdays and the flagdays listed is now:
    • name, the name of the flagday
    • flag, the flag to use
    • date, the date of the flagday in either "dd-mm" or "dd-mm-yyyy". If year is stated, the years between current year and flagday will be calculated and appended to the name
    • date_end (new feature), the date to end the period of prolonged flagday, fx. Pride Month.

Credits

Data is from Justitsministeriet.

Sunrises and sunsets in the future is provided by Sunrise-Sunset API.

For installation instructions see this guide.

Quick start

Add the following to your configuration.yaml

flagdays_dk:
  # Optional entries
  time_offset: 5      # Time in minutes before flag up/down times, used for triggers fx. automation, Default is 10
  hide_past: false    # Hide flagdays from the past, default is True
  flags:              # Commonwealth (Greenland and Faroe Islands) flags we own 
    - erfalasorput
    - merkiΓ°
  flagdays:           # List of private flagdays
    - name: Jolly Roger Memorial Day
      flag: Jolly Roger
      date: 10-06-1975

    - name: Copenhagen Pride Month
      flag: Pride
      date: 01-08
      date_end: 31-08

    - name: Tim Berners Lee Birthday
      date: 08-06-1955

    - name: Ada Lovelace Birthday
      date: 10-12-1815

State and attributes

State is the number of days to the event image

Attributes

Attribute name Description
name Name of the flagday
flag Name of flag to use
instructions List of instuctions
flag_up_time Time to hoist the flag
flag_down_time Time to pull the flag
flag_up_time_trigger Trigger to use for flag up
flag_down_time_trigger Trigger to use for flag down
future_flagdays List of flagdays in the future
attribution Name of the creator

About

πŸ‡©πŸ‡° Official flagdays in Denmark with a lot of useful logic and attributes. It is possible to add your own anniversaries πŸŽ‚ or special flags πŸ³οΈβ€πŸŒˆ πŸ΄β€β˜ οΈ

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages