Skip to content

AppsScript to automatically add events for when the sun is down

License

Notifications You must be signed in to change notification settings

e-lu6a/darktimes-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

darktimes calendar

  • block out when the sun's not out as a daily Google calendar event
  • each event starts at sunset, and ends at sunrise
  • uses https://sunrisesunset.io/api/ (thanks!)
image

make your own darktimes

  1. Copy and paste the script into AppScript
  2. Use your own calendar ID; adjust timezone and/or event name. I like creating a new calendar just for darktime events so that I can toggle it on and off and adjust settings for it independently.
  3. Set up a trigger so that it runs automatically. This script is written to run monthly, so the trigger should be once a month.
image

PST version

If you are in Pacific Standard Time, and want the calendar as is, feel free to subscribe to my existing calendar. It will bulk add new events at the beginning of each month.

About

AppsScript to automatically add events for when the sun is down

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published