Giter Site home page Giter Site logo

chrisblakley / daylight-calendar-ics Goto Github PK

View Code? Open in Web Editor NEW
40.0 5.0 5.0 32 KB

Daylight Calendar is a dynamically generated .ics calendar that you can host and subscribe to in Google Calendar, iCal, or other calendar software.

Home Page: https://gearside.com/google-daylight-calendar/

License: GNU General Public License v2.0

PHP 100.00%
calendar ics google-calendar ical daylight sunrise sunset daylight-savings daylight-saving-time

daylight-calendar-ics's People

Contributors

ajedi32 avatar chrisblakley 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

daylight-calendar-ics's Issues

Nighttime events

Discussed in #10

Originally posted by jamesdeluk May 24, 2023
Is it possible to create the opposite function, i.e. calendar entries showing night?

Feature request: Allow for notifications

It's nice to be able to see sunrise and sunset times, but it would be great if we had the option to add a notification e.g. at 0 minutes to sunset, or 30 minutes before sunset. (I use Tasker to read calendar notifications out loud.)

Localization

I'm really glad I came across your project and I really appreciate your work.
I wanted to ask if it would be possible to localize the title of the calendar event i.e. sunrise/sunset?
It's not many words, so it shouldn't take much time.
This could be done either manually or more elegantly with a query parameter?

Caching problem in Thunderbird

I noticed that when subscribing to Daylight Calendar in Thunderbird, offline support must be disabled in the calendar properties (see: https://support.mozilla.org/en-US/kb/changing-calendar-preferences).
Otherwise, a new event is created every time the calendar is synchronized, resulting in a very cluttered calendar view.
This doesn't happen with other calendars I subscribed to even with offline support enabled for them.
So I assume that this is a server-side problem with Daylight Calendar?

Open Source License

You wrote on your blog that you invite others to copy and customize the code.
Can you please put a LICENSE file into the repository, so that this is also visible here.
(e.g. an MIT license would be simple and fine; or consult https://choosealicense.com/)

Relative events

Thank you for this great calendar

Is it possible to set up an event with respect to another? Let say set up something every day 1 hour after sunrise?

Something's jacked up

This calendar was working great until about 2/10/23. Now, it doesn't show any "events" and when I look at the URL in debug mode, the dates are pretty messed up. What's going on?

Bug in GMT data?

Screenshot_20230319-084049
Hey, first of all love this calendar feature! This was exactly what I was looking for.

Then to the bug(?):
I had some trouble getting the correct sunlight times. I live in GMT +1 (Amsterdam), but when I filled in 1 or +1 the wrong sunlight showed up in my calendar (the blue ones in the screenshot).
The sunlight window was correct when I used:
https://gearside.com/calendars/daylight.php?lat=52.4&lng=4.9&gmt=-4
(Orange in the screenshot)

Only the solar noon time seems still off. Should be around 1 or 2 PM.
Is this a bug or did I maybe not use the correct query parameters?

Feature Request

This is not really an "issue", but I was wondering if it would be possible for you to make a minor modification so that instead of showing one single event all day, the url pointed to a calendar with two separate short "events", one for sunrise (or the start of civil daylight, or nautical daylight, etc.) and one for sunset (civil sunset, nautical sunset...). Currently the calendar produces one long event which "squishes" all other events on the calendar; it would be nice to just see sunrise and sunset as distinct events during the day. Thanks so much for making this calendar available!

CREATED time and RRULE (frequency)

When I used it to export for 2021 year for my location, I noticed the ICS actually repeats for 3 years and has a created time from 2020.
Would it make sense to make the the frequency a parameter as well or just eliminate it? Because if I export for a specific year, I likely only want it for that year.
Not sure if the created time of 2020 matters at all.

BEGIN:VEVENT
**CREATED:20200101T000000Z**
DTSTART:20210101T150700Z
DTEND:20210102T005400Z
DTSTAMP:20211030T132158Z
LAST-MODIFIED:20200702T133055Z
UID:[email protected]
DESCRIPTION:Daylight calendar by Gearside.com
URL;VALUE=URI:http://gearside.com/calendars/daylight.ics
SUMMARY: 9h 47m (40.8%) [1 Percentile]. Solar noon: 1:00pm. 
**RRULE:FREQ=YEARLY;COUNT=3**
END:VEVENT

what to do with GMT offset during DST?

Without diving into the code, I'm curious do the times adjust for Daylight Saving Time? I'm wondering what to put for the GMT offset, or even why it's required given the lat/lng

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.