Code Monkey home page Code Monkey logo

icalendar's Introduction

ICalendar

Purpose

  • command-line tool to create a new ICalendar / Google calendar file based on an existing calendar and modify the events to start from a specified date, time and timezone

  • run on all platforms/operating system that has a Java Virtual Machine (JVM) installed

source output

Pre-requisite

Check if Java/JVM is installed on your computer
java -version
(this program has been tested on openjdk version "11.0.6")

Instructions to install JVM on Windows
http://java.boot.by/scbcd5-guide/apas02.html

Instructions to install JVM on MacOS
https://mkyong.com/java/how-to-install-java-on-mac-osx/

Instructions to install JVM on Ubuntu
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04

Usage

1. Download the folder "icalcopy" to your computer

2. Export the source ICS file / ICalendar / Google calendar from your application and place it in the "icalcopy" folder
 
3. Open config.toml with a text editor and modify the settings as explained in the comments
 
4. Run the command:
java -jar icalcopy.jar
 
5. Import the output file to your Google/calendar app.

Known limitation

Why are attendees or guests not imported into Google calendar?

According to Google Help Center, when you import an event, guests and conference data for that event are not imported.
https://support.google.com/calendar/answer/37118?co=GENIE.Platform%3DDesktop&hl=en

Development notes

This program is coded in Kotlin and uses Java libraries and built using Gradle.
Although this program is functional and is safe to use on your own computer, work is needed in sanitizing user input before exposing the functionality as an API for the public.

References

https://github.com/ical4j/ical4j/wiki/Examples
http://ical4j.sourceforge.net/introduction.html
http://ical4j.github.io/docs/ical4j/api/3.0.4/net/fortuna/ical4j/model/Component.html

icalendar's People

Contributors

marknismo avatar

Watchers

 avatar

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.