Git Product home page Git Product logo

phpcalfeed's People

Contributors

frimkron avatar jarofgreen 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

phpcalfeed's Issues

JSON: Invalid time format - expected "hh:mm" or similar

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
                )

        )

)

Where to adjust for timezones?

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?

Works local, but not on EC2

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?

CSV: Required column 'name' not found in header

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

Bad Output path

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

HTTP ERROR 406

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?

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.