🌐 Cloudflare Workers integration with Notion for scheduling household tasks.
This project utilizes Cloudflare Workers to control Notion tasks and schedule household tasks. It provides a convenient way to automate and manage your household chores using the power of Cloudflare's serverless platform and Notion's collaborative workspace.
Before deploying this project, make sure you have the following:
-
Cloudflare API Token: Obtain an API Token from your Cloudflare account to authenticate API requests.
-
Notion API Key: Generate an API Key from your Notion workspace to access and manipulate tasks.
-
Notion Container: Configure a Notion container that contains the tasks you want to schedule. Each task should have specific properties to define its schedule and other relevant details.
-
Clone this repository:
git clone https://github.com/LeonHuzen/cloudflare-workers.git cd cloudflare-workers cd household
-
Install project dependencies:
npm install
-
Configure your environment variables: Edit the
wrangler.tomlfile in the household directory:CLOUDFLARE_API_TOKEN=your-cloudflare-api-token NOTION_API_KEY=your-notion-api-key
-
Deploy the Cloudflare Worker:
npm run deploy
Once deployed and running, the Cloudflare Worker will automatically control your Notion tasks based on the defined schedule. Update the Notion Container with the relevant tasks and their properties, and the worker will take care of managing and executing them according to the specified schedule.
Feel free to customize the worker's behavior and add any additional functionality to meet your specific needs.
This project is licensed under the MIT License. Feel free to modify the content and customize it further according to your project's requirements.