frimkron / phpcalfeed Goto Github PK
View Code? Open in Web Editor NEWA simple PHP script for providing calendar feeds for your website in a variety of different formats including iCalendar, RSS, JSON and XML.
License: MIT License
A simple PHP script for providing calendar feeds for your website in a variety of different formats including iCalendar, RSS, JSON and XML.
License: MIT License
This script looks by far most promising than any comparabel i found here on github. And your todo-List is even nicer.
Too bad you this isn't maintained anymore. -_-
Could you please give us a hint on how to add location to the .ics ? And maybe how to integrate facebook?
This might help: https://github.com/chrisnoisel/FB-events-to-iCalendar
Events are being excluded from the output once their start time is in the past, which isn't the desired behaviour, especially for events spanning multiple days.
Is it possible to implement an alert time for each calendar event and an option to add a default calendar update frequency?
I get an Invalid time format error when I read a JSON containing events which don't have a starting time (they are for the whole day).
The corresponding JSON file looks like this:
Array
(
[name] => Homepage Kalender
[events] => Array
(
[0] => Array
(
[name] => allgemeiner Unterrichtsschluss 13:00 Uhr (4. Lehrerkonferenz)
[date] => 2021-02-23
)
[1] => Array
(
[name] => allgemeiner Unterrichtsschluss 13:00 Uhr (Klassenkonferenzen/ pädagogische Konferenzen)
[date] => 2021-03-01
)
[2] => Array
(
[name] => allgemeiner Unterrichtsschluss 13:00 Uhr (Klassenkonferenzen/ pädagogische Konferenzen)
[date] => 2021-03-02
)
[3] => Array
(
[name] => Zwischenzeugnisse Jahrgangsstufen 5-10 (Stand: 01/2021)
[date] => 2021-03-05
)
[4] => Array
(
[name] => Zeugnisausgabe Q12 (Ausbildungsabschnitt 12/1); Stand: 01/2021
[date] => 2021-03-05
)
[5] => Array
(
[name] => Bayernweite Woche der Aus- und Weiterbildung (www.ausbildungswochen.bayern)
[date] => 2021-03-15
)
[6] => Array
(
[name] => Känguru-Wettbewerb der Mathematik
[date] => 2021-03-18
[time] => 09:45
)
[7] => Array
(
[name] => Informationsveranstaltung zum Ãœbertritt in die 5. Klasse
[date] => 2021-03-24
[time] => 19:00
)
[8] => Array
(
[name] => 2. Elternsprechtag; Nachmittagsunterricht entfällt
[date] => 2021-04-22
[time] => 17:30
)
[9] => Array
(
[name] => Neuanmeldung für die Aufnahme in die Jahrgangsstufe 5 (9:00 bis 12:00 Uhr sowie 14:00 bis 17:00 Uhr)
[date] => 2021-05-10
)
[10] => Array
(
[name] => Abiturprüfung Deutsch (Stand: 12/2020)
[date] => 2021-05-12
)
[11] => Array
(
[name] => Abiturprüfung Mathematik (Stand: 12/2020)
[date] => 2021-05-18
)
[12] => Array
(
[name] => Probeunterricht
[date] => 2021-05-18
)
[13] => Array
(
[name] => Abiturprüfung 3. schriftliches Fach MIT Französisch (Stand: 12/2020)
[date] => 2021-05-21
)
[14] => Array
(
[name] => Kolloquiumsprüfungen 1. Woche (Stand: 12/2020)
[date] => 2021-06-07
)
[15] => Array
(
[name] => Probentage für Chor, Orchester, Bigband
[date] => 2021-06-14
)
[16] => Array
(
[name] => Kolloqiumsprüfungen 2. Woche (Stand: 12/2020)
[date] => 2021-06-14
)
[17] => Array
(
[name] => Probentage für Unterstufenchor
[date] => 2021-06-16
)
[18] => Array
(
[name] => Bekanntgabe der Abitur-Prüfungsnoten (Stand: 12/2020)
[date] => 2021-06-18
)
[19] => Array
(
[name] => Anmeldung zu den mündlichen Abitur-Zusatzprüfungen (Stand 12/2020)
[date] => 2021-06-21
)
[20] => Array
(
[name] => Tutorenschulung in Grafrath (Start am 22.06. ca. 13:30 Uhr, Ende am 24.06. ca. 14:00 Uhr)
[date] => 2021-06-22
)
[21] => Array
(
[name] => Mündliche Abitur-Zusatzprüfungen (Stand 12/2020)
[date] => 2021-06-22
)
[22] => Array
(
[name] => Lernstandserhebung NT
[date] => 2021-06-24
)
[23] => Array
(
[name] => Generalprobe Sommerkonzert in der Aula (Schüler bis 13:00 Uhr)
[date] => 2021-07-06
[time] => 08:00
)
[24] => Array
(
[name] => Sommerkonzert
[date] => 2021-07-06
[time] => 19:30
)
[25] => Array
(
[name] => Sommerkonzert
[date] => 2021-07-07
[time] => 19:30
)
[26] => Array
(
[name] => Q11: Studienfahrt Berlin
[date] => 2021-07-11
)
[27] => Array
(
[name] => Projekt WaageMut (9. Jahrgangsstufe)
[date] => 2021-07-15
)
[28] => Array
(
[name] => Entlassung der Abiturienten und Ãœbergabe der Abiturzeugnisse (Stand: 01/2021)
[date] => 2021-07-16
)
[29] => Array
(
[name] => Bundesjugenspiele 5-7
[date] => 2021-07-21
)
[30] => Array
(
[name] => Projekt WaageMut (9. Jahrgangsstufe)
[date] => 2021-07-22
)
[31] => Array
(
[name] => Zeugnisausgabe 5-10 und Q11 (11/2)
[date] => 2021-07-29
)
)
)
Hallo,
I generate an ics from a json.
The json input is eg:
[8] => Array
(
[name] => Title
[date] => 2021-04-22
[time] => 17:30
[duration] => 1h
)
the output from phpcalfeedconvert is
BEGIN:VEVENT
DTSTART:20210422T153000
DTEND:20210422T163000
SUMMARY: Title
END:VEVENT
The timezone seems off. How can I adjust for that?
Add simple text field for location description in events (output as e.g. Location in iCalendar format)
I am using the json import functionality.
On localhost everything works fine. I pushed it to GitHub and pulled it to my ec2 instance.
When I call the calendar.php all files get generated, so permissions should be alright.
So although everything seems fine the calendar in calendar.php does not have any events and no title.
What could be the issue?
Use Facebook API to gather events from a page or group
Hi,
although I deem my CSV totally valid, it does not recognise the column names.
How can I fix that?
I will add the csv file:
name|date|time
2. Runde der Mathematik-Olympiade|12.11.2020|08:00
1. Elternsprechtag; Nachmittagsunterricht entfällt|02.12.2020|17:30
3. Lehrerkonferenz; Unterrichtsende: 13:00|15.12.2020|14:00
Unterrichtsende: 13:00 Uhr|22.12.2020|00:00
Zeugnisausgabe Q12 (12/1)|25.01.2021|00:00
Unterrichtsende: 13:00 Uhr|08.02.2021|00:00
Betriebspraktikum der 9. Klassen|08.02.2021|00:00
Besuch der KZ-Gedenkstätte Dachau (9a und 9d)|08.03.2021|08:00
Besuch der KZ-Gedenkstätte Dachau (9b und 9c)|10.03.2021|08:00
Känguru-Wettbewerb der Mathematik|18.03.2021|09:45
Informationsveranstaltung zum Übertritt in die 5. Klasse|24.03.2021|19:00
2. Elternsprechtag; Nachmittagsunterricht entfällt|22.04.2021|17:30
Neuanmeldung für die Aufnahme in die Jahrgangsstufe 5 (9:00 bis 12:00 Uhr sowie 14:00 bis 17:00 Uhr)|10.05.2021|00:00
Probeunterricht|18.05.2021|00:00
Tutorenschulung in Grafrath (Start am 22.06. ca. 13:30 Uhr, Ende am 24.06. ca. 14:00 Uhr)|22.06.2021|00:00
Lernstandserhebung NT|24.06.2021|00:00
Entlassung der Abiturienten und Übergabe der Abiturzeugnisse|25.06.2021|00:00
USA-Austausch (abhängig vom Infektionsgeschehen)|26.06.2021|00:00
Generalprobe Sommerkonzert in der Aula (Schüler bis 13:00 Uhr)|06.07.2021|08:00
Sommerkonzert|06.07.2021|19:30
Sommerkonzert|07.07.2021|19:30
Bundesjugenspiele 5-7|21.07.2021|00:00
Zeugnisausgabe 5-10 und Q11 (11/2)|29.07.2021|00:00
I installed this in the root directory of a site.
http://localhost:20160/calendar.php
The URLs to the feeds are all missing a slash
eg
webcal://localhost:20160calendar.php?format=icalendar
instead of
webcal://localhost:20160/calendar.php?format=icalendar
I followed the installation instructions, i.e. I copied the files calendar-cal.css
, calendar-sub.css
, calendar-sub.png
, calendar.php
and calendar.xsd
to a folder PHPCalFeed-master
on my web server, and put a calendar calendar-master.ics
in the same folder.
As far as I can tell, my server meets the installation requirements, i.e. it has a sufficiently recent version of php installed and calendar.php
has write access to the folder PHPCalFeed-master
.
I verified this as follows: An auxiliary php-file in PHPCalFeed-master
with contents
<?php echo 'Current PHP version: ' . phpversion(); ?>
<br>
<?php echo `whoami`; ?>
displays as
Current PHP version: 7.0.33-0ubuntu0.16.04.7
www-data
in my browser, and ls -l ../ && ls -l calendar.php
returns:
drwxr-xr-x 2 www-data 1001 4096 Dec 6 15:28 PHPCalFeed-master
-rwxr-xr-x 1 www-data 1001 183214 Dec 14 2014 calendar.php
However, when I try to open calendar.php
in my browser, I get the error message HTTP ERROR 406
. Any ideas what I'm doing wrong? How could I debug this?
This appears to be due to a security update Apple made requiring iCal feeds to be served over a secure connection
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.