Seasonal Info



To get the Seasonal Info (Kaalangal) for the day, just call the URL with just one parameter – Date (added to the end of the URL).

 

https://SyroCalendar.tk/SyroMalabarCalendar/?Mode=JSON&Type=Day&Date=

where you have to provide the Date in dd-mm-yyyy format.

Example URL Call

https://syrocalendar.tk/syromalabarcalendar/?Mode=JSON&Type=Day&Date=15-05-2021



Result

You will receive a JSON object that contains the following info:

FieldDetail
InputDateThe Date you provided
InputDayThe Day of the Date you provided
SeasonIDID of the Current Season (1-11)
SeasonName_Eng_FullName of the Season in English
SeasonName_Mal_FullName of the Season in Malayalam
SeasonName_Man_FullName of the Season in Manglish
SeasonName_Syr_FullName of the Season in Syriac
SeasonName_San_FullName of the Syrian Season term in English
WeeksNumberCurrent Seasonal Week Number
WeeksNumber_EngCurrent Seasonal Week Number in English Text
WeeksNumber_MalCurrent Seasonal Week Number in Malayalam Text
SeasonDate_StartDate the Current Season started
SeasonDay_StartDay the Current Season started
SeasonDate_EndDate the Current Season ends
SeasonDay_EndDay the Current Season ends
EasterDateThis Year’s Easter Date
EasterDayThis Year’s Easter Day
EasterDate_NextNext Year’s Easter Date
EasterDay_NextNext Year’s Easter Day


Example Code with Javascript


<div id="MalayalamSeason">Loading...</div>
<div id="EnglishSeason">Loading...</div>
<div id="ManglishSeason">Loading...</div>
<div id="SyrianSeason">Loading...</div>
<div id="SyrianEngSeason">Loading...</div>

<!-- SYRO CALENDAR SEASONAL INFO -->
<script>
var getJSON = function(url, callback) {
    var xhr = new XMLHttpRequest();
    xhr.open('GET', url, true);
    xhr.responseType = 'json';    
    xhr.onload = function() {    
        var status = xhr.status;        
        if (status == 200) {
            callback(null, xhr.response);
        } else {
            callback(status);
        }
    };    
    xhr.send();
};
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0!
var yyyy = today.getFullYear();
today = dd + '-' + mm + '-' + yyyy;

getJSON('https://syrocalendar.tk/SyroMalabarCalendar/?Mode=JSON&Type=Day&Date=' + today,  function(err, tmtm) {    
    if (err != null) {
        console.error(err);
    } else {
	// **Syro Malabar Calendar API. For more info, visit https://SyroCalendar.tk **
	document.getElementById("EnglishSeason").innerHTML = '<h3>' + tmtm.SeasonName_Eng_Full + '</h3>';
	document.getElementById("MalayalamSeason").innerHTML = '<h3>' + tmtm.SeasonName_Mal_Full + '</h3>';
	document.getElementById("ManglishSeason").innerHTML = '<h3>' + tmtm.SeasonName_Man_Full + '</h3>';
	
	if(tmtm.SeasonName_Syr_Full != null) 
		document.getElementById("SyrianSeason").innerHTML = '<h3>' + tmtm.SeasonName_Syr_Full + '</h3>';
	else 
		document.getElementById("SyrianSeason").style.display = "none";
	
	if(tmtm.SeasonName_San_Full != null) 
		document.getElementById("SyrianEngSeason").innerHTML = '<h3>' + tmtm.SeasonName_San_Full + '</h3>';
	else 
		document.getElementById("SyrianSeason").style.display = "none";
	
	document.getElementById("SeasonWeek").innerHTML = tmtm.WeeksNumber_Eng + " | " + tmtm.WeeksNumber_Mal;
    }
});
</script>

Please don’t forget to provide a link to SyroCalendar.tk below the Widget you implemented. It could be as simple as
Powered by SyroCalendar