Giter Site home page Giter Site logo

syncoutlook2kimai's Introduction

SyncOutlook2Kimai

synchronizes kimai2 with outlook calender. Works only on windows

Requires

if required install required packages with pip

pip install requests pypiwin32

Usage

python syncCalender.py [-c | --config] <config file json> [-b | --begin] <date> [-e | --end] <date> 

examples:

synchronize all events from Oct 10th 2022 till Oct 15th 2022  
syncCalender.py -c config.json -b 2022-10-12 -e 2022-10-16

synchronize all events from Oct 10th 2022 08:00 till now  
syncCalender.py -c config.json -b 2022-10-12 

synchronize all events from today   
syncCalender.py -c config.json   

-c configuration file
--config file  
    file path to the configuration file formatted in JSON,  
    which holds information about kimai server and API credentials  

example config.json:
{
    "url":"http://kimai2-server.com/api",
    "token":"kzTQ98BG_H8!~e3s",
    "user":"username",
    "user id":2,
    "work id":4,
    "work activity":1,
    "off id":9,
    "off activity":14
}

-url        - url of the Kimai API
-token      - API token generated for the user on the kimai server
-user       - username on the kimai server
-user id    - user id on the kimai server
-work id    - id of the project to which the regular meetings will be assigned
-work activity - activity id to which the regular meetings will be assigned
-off id     - id of the project to which the private meetings will be assigned 
-off activity - activity id to which the private meetings will be assigned

-b date in UTC  
--begin  date in UTC  
    If specified the events starting with the given date will be synchronized  
    The date is formatted in UTC.  
    example: 
        2022-10-15  

-b date in UTC  
--end date in UTC  
    If specified the events till the date will be synchronized  
    The date is formatted in UTC.  
    example: 
        2022-10-30  

-h  
--help   
    prints this message  

syncoutlook2kimai's People

Contributors

skajto 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.