Coder Social home page Coder Social logo

indocalendarjson's Introduction

Indonesian Calendar JSON Fetcher

This GitHub Action fetches JSON data from the kalenderindonesia.com API for the Gregorian calendar years from 1910 to 2100. It organizes the fetched data into a folder structure and commits it back to the repository.

Workflow

The workflow is set to run every month and can also be manually triggered.

Folder Structure

The fetched JSON data is organized into the following folder structure:

json/
│
├── 1910/
│   ├── 0/             # January
│   ├── 1/             # February
│   ├── ...
│   └── 11/            # December
│
├── 1911/
│   ├── 0/             # January
│   ├── 1/             # February
│   ├── ...
│   └── 11/            # December
│
├── ...
│
└── 2100/
    ├── 0/             # January
    ├── 1/             # February
    ├── ...
    └── 11/            # December

How to use

You can fetch the JSON by fetching the following url format JSON per year:

https://raw.githubusercontent.com/User-425/IndoCalendarJson/main/json/[year]/data.json

Example usage (javascript):

fetch('https://raw.githubusercontent.com/User-425/IndoCalendarJson/main/json/2025/data.json')
    .then(res => res.json())
    .then((out) => {
        console.log('Output: ', out);
}).catch(err => console.error(err));

JSON per month:

https://raw.githubusercontent.com/User-425/IndoCalendarJson/main/json/[year]/[month]/data.json

Example usage (javascript):

fetch('https://raw.githubusercontent.com/User-425/IndoCalendarJson/main/json/2025/2/data.json')
    .then(res => res.json())
    .then((out) => {
        console.log('Output: ', out);
}).catch(err => console.error(err));

note: month index start from 0

indocalendarjson's People

Contributors

user-425 avatar actions-user avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.