1.2 KiB
1.2 KiB
Weekly Planning Scripts
Setup
1. Install dependencies
cd /Users/aj.siegel/Projects/FullFocus
pip3 install -r scripts/requirements.txt
2. Get your Notion API Token
- Go to https://www.notion.so/my-integrations
- Click "+ New integration"
- Name it "Weekly Planning Script" (or whatever you prefer)
- Select your workspace
- Click "Submit"
- Copy the "Internal Integration Token"
3. Share databases with your integration
For each database (Projects, Tasks Tracker, Reading List):
- Open the database page in Notion
- Click "..." menu → "Connections"
- Add your "Weekly Planning Script" integration
4. Set environment variable
Add to your ~/.zshrc or ~/.bash_profile:
export NOTION_TOKEN="secret_your_token_here"
Then reload: source ~/.zshrc
Usage
Run the script to fetch weekly planning data:
python3 scripts/fetch_weekly_data.py
Or add it to your PATH and run directly:
./scripts/fetch_weekly_data.py
This outputs JSON with:
- Projects marked "Focus this week"
- Tasks due within the next 7 days
- Reading list articles (To Read or In Progress)
The weekly-template skill automatically calls this script to generate your weekly note, reducing AI inference costs.