Skip to content

Releases: J-Lindvig/Flagdays_DK

Lots of improvements and bugfixes

07 Feb 15:39
71ab1f9
Compare
Choose a tag to compare

Bugfixes and improvements

02 Feb 20:50
f9042e0
Compare
Choose a tag to compare
v3.1.1

Add files via upload

Changed device_class and more

24 Jan 19:59
2b622de
Compare
Choose a tag to compare

The state is changed to the timestamp of the flagday, flagup, halfmast or flagdown.

The code is furthermore been optimized.

It is now possible to state what name in a given sensor attributes we should be using.

Bugfixes and minor improvements

23 Jan 22:13
5bbf60c
Compare
Choose a tag to compare
v3.0.3

Delete manifest.json

Bug fixes

16 Jan 18:16
987259e
Compare
Choose a tag to compare

Fixed a bug with a fatal error occuring when no custom flagdays was specified.

Error fixes...

16 Jan 10:58
44853fc
Compare
Choose a tag to compare

Fixed:

  • Error in the data with flagdays

Optimized determination on halfmast days.

Complete rewrite

15 Jan 21:27
983365a
Compare
Choose a tag to compare

This a complete rewrite with mayor improvements.

The integration is no longer depending on webscraping for the flagdays, since the regular flagdays is loaded and the holidays (easter etc.) is calculated. Furthermore is no longer uses a online API for the calculation of sunrise/sunset in the future, but uses the Astral module.

There is also been made some quite nifty improvements in the custom flagdays and is it also possible to include or exclude flagdays.

Please be aware that there is now breaking changes in the config and attributes.

Added option to unhide flagdays in the past

19 Jun 09:11
f28414f
Compare
Choose a tag to compare

BREAKING CHANGES

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

  • offset is now time_offset. Default is 10 minutes
  • flags now uses the name of the flags, Erfalasorput (Greenland) and Merkið (Faroe Islands)
  • events is now flagdays and the flagdays listed is now:
    • 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

New features

  • hide_past (new feature), we are able to show flagdays in the past setting the to False, Default is True
  • flagdays:
    • date_end (new feature), the date to end the period of prolonged flagday, fx. Pride Month.

Config

flagdays_dk:
  # Optional entries
  time_offset: 5      # Time in minutes before flag up/down times, used for triggers fx. automation. Default is 10 minutes
  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

Rewrite, new features and Breaking Changes

18 Jun 19:20
5e10efc
Compare
Choose a tag to compare

BREAKING CHANGES

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

  • offset is now time_offset
  • flags, no change
  • 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.

Config

flagdays_dk:
  # Optional entries
  time_offset: 30
  flags:
    - erfalasorput
    - merkið
  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

Fix a typo in a key

18 Apr 19:58
37d656f
Compare
Choose a tag to compare

In the use of custom events, there was a typo i dict key - fixed.