cbot
A script to synchronize projects from Redmine to TimeCamp on a daily basis.
This script automates the process of synchronizing projects between Redmine and TimeCamp. It runs daily to ensure that the projects in TimeCamp are up-to-date with the projects in Redmine.
- Fetches projects from Redmine
- Updates existing projects in TimeCamp
- Creates new projects and tasks in TimeCamp if they don't exist
- Exports time entries from TimeCamp to Redmine for a specified date range
- Python 3.x
- Access to Redmine API
- Access to TimeCamp API
-
Clone this repository:
git clone https://github.com/timecamp-org/script-timecamp-projects-sync.git cd script-timecamp-projects-sync
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up the environment variables:
- Copy
.env.example
to.env
- Fill in your Redmine and TimeCamp API credentials and other configuration in
.env
- Copy
To run the script manually:
python sync_projects.py
python export_time_entries.py 2024-11-15 2024-11-20
To set up automatic daily synchronization, you can use a task scheduler like cron (Linux/macOS) or Task Scheduler (Windows).
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.