remove ignore from .ics for testing
This commit is contained in:
parent
b8d0a40315
commit
a1d8757453
3 changed files with 91 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,4 +13,3 @@ tmp
|
|||
config/client_google_auth.json
|
||||
|
||||
## output ##
|
||||
*.ics
|
91
maccabi-haifa-fc.ics
Normal file
91
maccabi-haifa-fc.ics
Normal file
|
@ -0,0 +1,91 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
CALSCALE:GREGORIAN
|
||||
PRODID:https://mhaifafc.com/
|
||||
METHOD:PUBLISH
|
||||
X-PUBLISHED-TTL:PT1H
|
||||
BEGIN:VEVENT
|
||||
UID:cba9cb6a-56ae-4730-ba62-b98032e7767a
|
||||
SUMMARY:Maccabi Haifa F.C.
|
||||
DTSTAMP:20230329T074644Z
|
||||
DTSTART:20230401T170000Z
|
||||
DTEND:20230401T190000Z
|
||||
DESCRIPTION:Maccabi Haifa vs. H Be'er Sheva
|
||||
URL:https://mhaifafc.com/
|
||||
LOCATION:Sammy Ofer Stadium
|
||||
STATUS:CONFIRMED
|
||||
CATEGORIES:
|
||||
ORGANIZER;CN=Maccabi Haifa F.C.
|
||||
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:cba9cb6a-56ae-4730-ba62-b98032e7767a
|
||||
SUMMARY:Maccabi Haifa F.C.
|
||||
DTSTAMP:20230329T074644Z
|
||||
DTSTART:20230404T173000Z
|
||||
DTEND:20230404T193000Z
|
||||
DESCRIPTION:Maccabi Tel aviv vs. Maccabi Haifa
|
||||
URL:https://mhaifafc.com/
|
||||
LOCATION:Sammy Ofer Stadium
|
||||
STATUS:CONFIRMED
|
||||
CATEGORIES:
|
||||
ORGANIZER;CN=Maccabi Haifa F.C.
|
||||
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:cba9cb6a-56ae-4730-ba62-b98032e7767a
|
||||
SUMMARY:Maccabi Haifa F.C.
|
||||
DTSTAMP:20230329T074644Z
|
||||
DTSTART:20230408T170000Z
|
||||
DTEND:20230408T190000Z
|
||||
DESCRIPTION:Maccabi Haifa vs. Maccabi Netanya
|
||||
URL:https://mhaifafc.com/
|
||||
LOCATION:Sammy Ofer Stadium
|
||||
STATUS:CONFIRMED
|
||||
CATEGORIES:
|
||||
ORGANIZER;CN=Maccabi Haifa F.C.
|
||||
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:cba9cb6a-56ae-4730-ba62-b98032e7767a
|
||||
SUMMARY:Maccabi Haifa F.C.
|
||||
DTSTAMP:20230329T074644Z
|
||||
DTSTART:20230415T153000Z
|
||||
DTEND:20230415T173000Z
|
||||
DESCRIPTION:Hapoel Jerusalem vs. Maccabi Haifa
|
||||
URL:https://mhaifafc.com/
|
||||
LOCATION:Sammy Ofer Stadium
|
||||
STATUS:CONFIRMED
|
||||
CATEGORIES:
|
||||
ORGANIZER;CN=Maccabi Haifa F.C.
|
||||
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:cba9cb6a-56ae-4730-ba62-b98032e7767a
|
||||
SUMMARY:Maccabi Haifa F.C.
|
||||
DTSTAMP:20230329T074644Z
|
||||
DTSTART:20230423T173000Z
|
||||
DTEND:20230423T193000Z
|
||||
DESCRIPTION:F.C Ashdod vs. Maccabi Haifa
|
||||
URL:https://mhaifafc.com/
|
||||
LOCATION:Sammy Ofer Stadium
|
||||
STATUS:CONFIRMED
|
||||
CATEGORIES:
|
||||
ORGANIZER;CN=Maccabi Haifa F.C.
|
||||
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:cba9cb6a-56ae-4730-ba62-b98032e7767a
|
||||
SUMMARY:Maccabi Haifa F.C.
|
||||
DTSTAMP:20230329T074644Z
|
||||
DTSTART:20230501T173000Z
|
||||
DTEND:20230501T193000Z
|
||||
DESCRIPTION:H Be'er Sheva vs. Maccabi Haifa
|
||||
URL:https://mhaifafc.com/
|
||||
LOCATION:Sammy Ofer Stadium
|
||||
STATUS:CONFIRMED
|
||||
CATEGORIES:
|
||||
ORGANIZER;CN=Maccabi Haifa F.C.
|
||||
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
|
@ -33,13 +33,9 @@ const app = new App();
|
|||
|
||||
const start = async () => {
|
||||
const outputFileLocation = 'maccabi-haifa-fc.ics';
|
||||
console.info("START APP!")
|
||||
const games = await app.gameSource.getGamesFromHaifa();
|
||||
console.info("NEW GAMES FOUND!")
|
||||
const icsEvents = app.ics.generateIcsOutputFromGames(games);
|
||||
console.info("NEW ICS EVENTS GENERATED!" )
|
||||
fs.writeFileSync(outputFileLocation, icsEvents);
|
||||
console.log("ICS FILE GENERATED In: " + outputFileLocation)
|
||||
}
|
||||
|
||||
start();
|
Loading…
Reference in a new issue