Skip to content

Commit

Permalink
feat: add electricity outages calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Jun 19, 2024
1 parent 582e1b2 commit 16088af
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 14 deletions.
10 changes: 10 additions & 0 deletions integrations/ics_calendar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Logger
#
# https://www.home-assistant.io/integrations/logger/
#

ics_calendar:
calendars:
- name: Electricity Outages
url: !secret outages_calendar_ics
17 changes: 3 additions & 14 deletions secrets.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@ wifi_password: MyWiFiPassword
trusted_proxies: []
ip_ban_enabled: true
login_attempts_threshold: 2
internal_url: http://192.168.0.0:8123
ssl_certificate: /path/to/ssl/fullchain.pem
ssl_key: /path/to/ssl/privkey.pem

# Google
google_project_id: my-home

# Vacuum
vacuum_host: 192.168.0.0
vacuum_token: 111111eeeeeeffffddddd99999aaaaaa
vacuum_username: username
vacuum_password: password

# Camera
home_camera_stream: rtsp://192.168.0.0/stream

Expand All @@ -32,8 +24,5 @@ html5_notify_pub_key: xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
html5_notify_prv_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
html5_notify_email: [email protected]

# OpenWeather
openweathermap_api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# Healthcheck
healthcheck_ping: https://hc-ping.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# Outages Calendar
outages_calendar_ics: http://path.to/calendar.ics
99 changes: 99 additions & 0 deletions www/outages.ics
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ical.marudot.com//iCal Event Maker
X-WR-CALNAME:Electricity Outages Group 5
NAME:Electricity Outages Group 5
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Europe/Kyiv
LAST-MODIFIED:20231222T233358Z
TZURL:https://www.tzurl.org/zoneinfo-outlook/Europe/Kyiv
X-LIC-LOCATION:Europe/Kyiv
BEGIN:STANDARD
TZNAME:EET
TZOFFSETFROM:+0300
TZOFFSETTO:+0200
DTSTART:19701025T040000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
BEGIN:DAYLIGHT
TZNAME:EEST
TZOFFSETFROM:+0200
TZOFFSETTO:+0300
DTSTART:19700329T030000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240603T000000
RRULE:FREQ=WEEKLY;BYDAY=MO
DTEND;TZID=Europe/Kyiv:20240603T010000
SUMMARY:Off
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240603T060000
RRULE:FREQ=WEEKLY;BYDAY=SU,MO,TH
DTEND;TZID=Europe/Kyiv:20240603T100000
SUMMARY:Off
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240603T150000
RRULE:FREQ=WEEKLY;BYDAY=SU,MO,TH
DTEND;TZID=Europe/Kyiv:20240603T190000
SUMMARY:Off
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240604T000000
RRULE:FREQ=WEEKLY;BYDAY=TU,FR
DTEND;TZID=Europe/Kyiv:20240604T040000
SUMMARY:Off
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240604T090000
RRULE:FREQ=WEEKLY;BYDAY=TU,FR
DTEND;TZID=Europe/Kyiv:20240604T130000
SUMMARY:Off
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240604T180000
RRULE:FREQ=WEEKLY;BYDAY=TU,FR
DTEND;TZID=Europe/Kyiv:20240604T220000
SUMMARY:Off
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240605T030000
RRULE:FREQ=WEEKLY;BYDAY=WE,SA
DTEND;TZID=Europe/Kyiv:20240605T070000
SUMMARY:Off
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240605T120000
RRULE:FREQ=WEEKLY;BYDAY=WE,SA
DTEND;TZID=Europe/Kyiv:20240605T160000
SUMMARY:Off
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20240605T085303Z
UID:[email protected]
DTSTART;TZID=Europe/Kyiv:20240605T210000
RRULE:FREQ=WEEKLY;BYDAY=WE,SA
DTEND;TZID=Europe/Kyiv:20240606T010000
SUMMARY:Off
END:VEVENT
END:VCALENDAR

0 comments on commit 16088af

Please sign in to comment.