Using the Microsoft Graph API to retrieve Calendar and convert to Orgmode compatible plain text.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Levi Olson 8bcee387f8
Updated README
3 years ago
.gitignore Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
.python-version Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
LICENSE Add MIT License 3 years ago
README.org Updated README 3 years ago
config-example.cfg Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
config.py Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
msgraph-orgmode.py Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
oauth2ms.py Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
requirements.txt Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago

README.org

README

Installation


git clone https://gitea.l3vi.co/leviolson/msgraph2orgmode

cd msgraph2orgmode/

cp config-example.cfg config.cfg

Then install the python dependencies:

Note: Consider optionally using a Virtual Environment. This ensures the installed packages are kept separate.


python -m venv venv

source venv/bin/activate

Finally, install actual packages:


pip install -r requirements.txt

Usage

After installation, you're ready to get your client_id and client_secret from Azure.

Follow the steps here -> https://github.com/microsoftgraph/python-sample-console-app#application-registration

Then:

  1. Update config.cfg to contain your client_id as well as the machine name and login you choose.

  2. Update .authinfo.gpg to include something like:


machine azure.api login email@example.com^client_secret password CLIENT_SECRET_GOES_HERE

Given the above authinfo entry, you would set the following in config.cfg:

#...
client_id=CLIENT_ID_GOES_HERE
machine=azure.api
login=email@example.com
#...

And finally, you can run the tool with:


python msgraph-orgmode.py