Skip to content

Auto Calendar lets you have a beautiful calendar, in PDF format and automatically updated every year just by changing the year in the data.json file :)

License

Notifications You must be signed in to change notification settings

LudoTreb/auto_calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Calendar

Welcome to Auto Calendar, a Python script that utilizes the Blender bpy library to create a calendar based on data it retrieves, such as the year, fonts, colors, etc., present in a JSON file.
The script generates a PDF file with all the months, in A3 format. This way, you get a beautiful up-to-date calendar by simply changing the year, and that for all the upcoming years ✨😊

📕 Table of Contents

Prerequisites

Before using Auto Calendar, make sure you have the following installed on your system:

🧰 Instalation

macOs, linux

Open a terminal

  1. Clone this repository to your machine:

    git clone https://github.com/LudoTreb/auto_calendar.git
    
  2. Navigate to the project directory:

    cd auto_calendar
    
  3. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate
  4. Install the necessary dependencies using the requirements.txt file:

    pip install -r requirements.txt
  5. ⚠️ Path to Blender application ⚠️ Once Blender is installed, you need to define the path to where the Blender application executable is located in the data.json file. For example, on my system, the Blender executable is here:
    /Applications/Blender.app/Contents/MacOS/Blender
    and I put it in the data.json file like this:

    "blender": {
        "application_path": "/Applications/Blender.app/Contents/MacOS/Blender"
      }

windows

  1. Clone this repository to your machine using Git Bash:

    git clone https://github.com/LudoTreb/auto_calendar.git
    
  2. Navigate to the project directory:

    cd auto_calendar
    
  3. Create and activate a virtual environment:

    python -m venv venv
    venv\Scripts\activate
  4. Install the necessary dependencies using the requirements.txt file:

    pip install -r requirements.txt
  5. ⚠️ Path to Blender application ⚠️ Once Blender is installed, you need to define the path to where the Blender application executable is located in the data.json file. To avoid problems, use a double \ to define the path. For example:
    "C:\\Users\\apps\\blender\\current\\blender.exe"
    and I put it in the data.json file like this:

    "blender": {
        "application_path": "C:\\Users\\apps\\blender\\current\\blender.exe"
      }

🕹️ Usage

Open a terminal

  1. Make sure you are in the root directory of the project and your virtual environment is activate:
cd /path/to/folder/auto_calendar

source venv/bin/activate # on macos linux

venv\Scripts\activate # on windows
  1. Run the main script main.py to generate the calendar:
python main.py
  1. Retrieve the calendar in PDF format from the 'export_pdf' folder and there you go ✨

Preview

preview gif

When the next year comes, you just have to change the year in the data.json file and rerun the script to get an up-to-date calendar 🎉

About

Auto Calendar lets you have a beautiful calendar, in PDF format and automatically updated every year just by changing the year in the data.json file :)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages