Giter Site home page Giter Site logo

allanlaal / sunrise-calendar-feed Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 4.0 164 KB

simple! sunset-sunrise VCALENDAR calendar generator to be used in Google Calendar, your phone and elsewhere

License: MIT License

PHP 100.00%
google-calendar sunrise calendar-url sunset calendar webcal twilight icalendar

sunrise-calendar-feed's Introduction

sunrise

Display sunset and sunrise times as all day events from an iCalendar feed in Google Calendar, your phone or elsewhere.

usage

Example calendar URL:

http://sun.is.permanent.ee/?latitude=59.4388618469&longitude=24.7544727325&title=sunrise,sunset,length_civil&label_length_civil=☼&label_sunrise=↑&label_sunset=↓&start=-100&end=365&filename=sunrise.ics

Modify the parameters in the URL according to your needs. You will atleast need to modify latitude and longitude.

Add the above url into your Google Calendar at Other Calendars -> down arrow box thingie -> Add by URL

latitude

The latitude of your location, in degrees.

latitude=59.4388618469

longitude

The longitude of your location, in degrees.

longitude=24.7544727325

title

This sets what the calendar events title will be. You can use any of the below variables in any order:

variable description
astronomical_twilight_begin Start of astronomical twilight
nautical_twilight_begin Start of nautical twilight
civil_twilight_begin Start of civil twilight
sunrise Sunrise
transit Noon
sunset Sunset
civil_twilight_end End of civil twilight
nautical_twilight_end End of nautical twilight
astronomical_twilight_end End of astronomical twilight
length Day length from Sunrise until Sunset
length_civil Day length for civil twilight
length_nautical Day length for nautical twilight
length_astronomical Day length for astronomical twilight
title=sunrise,sunset,length,length_civil

labels

Normally the values of the variables in the calendar event titles are not prefixed with any text to conserve space, but you can change that by adding an URL parameter with the variable name prefixed with 'label_'.

label_astronomical_twilight_end=End%20of%20twilight

start

What day to start the calendar on from today.

start=-100

end

What day to end the calendar on from today.

end=365

filename

This is the filename of the file offered for download when you access the calendar URL directly. This needs to be the last URL parameter, because otherwise Google Calendar will not read anything from this URL and will silently fail.

filename=sunrise.ics

sunrise-calendar-feed's People

Contributors

allanlaal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sunrise-calendar-feed's Issues

Please fix it!

Dear allanlaal! I don't know what is the problem (maybe private or public setting) but your calendar is not working since yesterday. It was perfect, so far the best, so please, fix it! Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.