No description
Find a file
2023-03-25 23:57:16 +00:00
.github/workflows Fix typo in build step 2023-03-24 18:31:06 +00:00
src Wait for settings to have actually saved in lockmanager 2023-03-25 00:24:22 +00:00
.editorconfig Initial commit 2023-03-05 20:26:49 +11:00
.eslintignore Initial commit 2023-03-05 20:26:49 +11:00
.eslintrc Initial commit 2023-03-05 20:26:49 +11:00
.gitignore Initial commit 2023-03-05 20:26:49 +11:00
.npmrc Initial commit 2023-03-05 20:26:49 +11:00
esbuild.config.mjs Initial CRON work 2023-03-24 14:09:37 +00:00
manifest.json Initial CRON work 2023-03-24 14:09:37 +00:00
package-lock.json Add CI/CD 2023-03-24 18:29:39 +00:00
package.json Add CI/CD 2023-03-24 18:29:39 +00:00
README.md Update README 2023-03-25 23:57:16 +00:00
styles.css Style settings to work better on mobile 2023-03-25 00:23:58 +00:00
tsconfig.json Initial commit 2023-03-05 20:26:49 +11:00
version-bump.mjs Initial commit 2023-03-05 20:26:49 +11:00
versions.json Add CI/CD 2023-03-24 18:29:39 +00:00

Obsidian Cron Plugin

Obsidian Cron is a plugin for Obsidian.md that allows users to schedule Obsidian commands or custom user scripts to run automatically on a schedule.

Installation

To install Obsidian Cron you can download it through the community packages within Obsidian, or download the latest release and add it manually.

Usage

Add jobs in the plugin settings page.

Each job requires

  1. a name
  2. an Obsidian command to run
  3. a cron schedule syntax expression
  • This will be the frequency your job runs. If you need help writing a cron schedule crontab.guru can help

Each job also has three toggable options

  1. Enable job to run on mobile
  • By default all jobs do not run on mobile
  1. Toggle job lock
  • If your job gets stuck with a bad log you can toggle the status here. Check locking for more details
  1. Toggle sync check
  • Toggles the sync check ability on a per job basis. Check sync for more details

Functionality

Sync

Obsidian cron has the ability to hook into the native Obsidian Sync plugin. When enabled all locks, cron runs & commands will wait for Obsidian Sync to be fully completed before running any cron jobs.

This is useful if you have multiple instances of Obsidian running and want to ensure that cron jobs only run on one device or once per Obsidian vault.

Locking

At the start of each cron job a lock is saved into the plugin settings that stops multiple instances of the same jobs running. Sometimes if jobs don't finish cleanly they can be left with locks still in place. They can be unlocked in the settings page of the plugin.

License

Obsidian Cron is released under the MIT License. See the LICENSE file for more information.