Elektrubadur

Personal web page of Björn Lindström

Simple Nextcloud To-Do List Automation with Python and WebDAV

Category: Programming

I keep a task list in a todo.txt format in Nextcloud. They are simply kept as two text files, todo.txt and done.txt in the root of my Nextcloud user directory.

Some clients already have the option to move tasks from todo.txt to done.txt when you mark a task as done. However, I would prefer they stick around in the todo.txt for a while, in case I change my mind.

At first I thought I'd just write a script to run as a cronjob on the server hosting Nextcloud, but that won't work with syncrhonization, as it won't let Nextcloud know the files have changed. I then thought there must be an API to read/write files to Nextcloud, and then quickly realized that this API is WebDAV. So, I should be able to make a Python script to do this, using requests. A more full-featured WebDAV library would be overkill for this.

Continue reading

Buffalo

Suphan Buri

Category: Photos

I went on a work outing to Suphan Buri a little while back, here comes some photos. Most of the pictures are from the buffalo themed resort where we stayed.

Continue reading

Traffic

Traffic

Category: Photos

Lower Parel, Mumbai.

Gecko on Window

Gecko on Window

Category: Photos

Gecko climbing outside of my window.

Cow

Cow

Category: Photos

Resort cow.

Frog

Frog

Category: Photos

Bathroom decoration on Koh Lanta.

Ants

Ants

Category: Photos

Fruit on the porch attracting ants.

Hermit Crab

Hermit Crab

Category: Photos

Hermit crab on the beach.

Bat Yam at Night

Bat Yam at Night

Category: Photos

Bat Yam night time skyline.

Jaffa

Jaffa

Category: Photos

Port of Jaffa.