Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Lindvig authored Jan 23, 2022
1 parent 9b295a4 commit b33c020
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
# Flagdays_DK
# Flagdays_DK

[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)

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

For installation instructions [see this guide](https://hacs.xyz/docs/faq/custom_repositories).
## Quick start
Add the following to your configuration.yaml
```yaml
flagdays_dk:
flags:
# Flags we own and want to use
- grønland
- færø
- pride
events:
# List of custom events
- 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
![Screenshot](https://github.com/J-Lindvig/Flagdays_DK/blob/main/images/screenshot.png)
### Attributes
date_str: 5. februar
date: 5-2-2022
flag_up_time: 08:42
flag_down_time: 16:02
timestamp: 1644046920
days_to_event: 13
event_name: Hendes Kongelige Højhed Kronprinsesse Marys fødselsdag
half_mast: false
half_mast_all_day: false
flag: Dannebrog
| Attribute name | Example value | Description |
|----------------------------|-------------------------------------------|------------------------------------|
| attribution | Created by J-Lindvig | Name of the creator |
| date_str | 5. februar | Nice TTS date of the event |
| date | 5-2-2022 | Date of the event |
| flag_up_time | 08:42 | Time to hoist the flag |
| flag_down_time | 16:02 | Time to pulle the flag |
| timestamp | 1644046920 | Timestamp of the event |
| days_to_event | 13 | Days to the event |
| event_name | Hendes Kongelige Højhed Kronprinsesse... | Name of the event |
| half_mast | false | Flag at half mast? |
| half_mast_all_day | false | Falg at half mast all day? |
| flag | Dannebrog | Name of flag to use |

0 comments on commit b33c020

Please sign in to comment.