Workflow automation for the Nextcloud Deck app. This project runs independently of Nextcloud and communicates with it exclusively through the Nextcloud and Deck REST APIs, so it can be deployed on any shared webspace without server-side Nextcloud app installation.
- website/ — A web UI for selecting a configured Nextcloud instance and its boards/decks, and defining automation workflows for them. See website/README.md.
- automation/ — A Python script that periodically executes the configured workflows in the background (e.g. via cron job). See automation/README.md.
- workflows/ — Storage for the workflow definitions created via the website; they can be organized in real subfolders (managed in the website).
- config/ — YAML configuration files (Nextcloud connections, credentials, general settings).
Want to add your own capability beyond the modules shipped here (e.g. a new action a workflow can use)? See MODULE_GUIDE.md.
All configuration and workflow data is stored as YAML files, requiring no database.
- A shared webspace with PHP 8.4.27+ (for the website) and Python 3 (for the automation script)
- Access to a Nextcloud instance with the Deck app enabled
- Ability to schedule a recurring cron job
The repository itself isn't directly uploadable (dev-only files, no vendor/, no real credentials). Two scripts in tools/ handle that:
- On your dev machine:
tools/build.shexports the current (or a given) git ref, strips developer-only files, bundleswebsite/vendor/via Composer, and produces an upload-ready folder and.zip/.tar.gzinbuild/upload/. - Upload that folder/archive to your webspace - into the domain's document root or any subdirectory (e.g.
/tools/deck/); the included.htaccesssends visitors on towebsite/and blocks everything else (seewebsite/README.md). - On the server, inside the uploaded directory: run
./install.sh- it walks you through PHP/Python dependencies, runs./configure.sh(see below) to writeconfig/*.yaml, optionally sets up HTTP Basic Auth forwebsite/, checks write permissions, offers to add the cron job, and verifies everything at the end.
./configure.sh (in the upload folder; tools/configure.sh in the repository) reads config/nextcloud.yaml, settings.yaml and smtp.yaml and goes through every value: what is already set is offered for adoption (Enter), what is missing is proposed with its default and marked [NEU]. The files are always written complete - every value with a comment saying what it is for, including the optional sections (error_notifications, webhooks, written with enabled: false) - and the previous file is kept as *.yaml.bak. install.sh uses it for its configuration step, so a first install proposes all defaults.
./configure.sh # all files
./configure.sh settings # one file (nextcloud | settings | smtp)
./configure.sh --missing # only values a newer version added
./configure.sh --get settings.public_url # print one valueThe config/*.example.yaml templates are generated from the same definition (python -m automation.config.configure --write-examples); a test fails if they drift apart.
- Configure your Nextcloud connection(s):
tools/configure.sh, or copy theconfig/*.example.yamlfiles by hand. - Use the website to create and manage workflows for your decks; workflows are saved as YAML files in
workflows/. - Schedule
automation/to run periodically via cron to execute the workflows in the background.
New to building workflows here? TUTORIAL.md (German) walks through using the tool from first principles to a multi-step example. Looking for ideas on what to build next? See ROADMAP.md (German) for a curated list of not-yet-implemented features.
This project is licensed under the MIT License — see LICENSE for details.