# School Days Event Logic

**URL:** <https://discourse.nodered.org/t/school-days-event-logic/61263>\
**Category:** Share Your Projects\
**Tags:** http-request\
**Created:** [13 April 2022 20:17 UTC](https://discourse.nodered.org/t/school-days-event-logic/61263 "2022-04-13T20:17:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrdvt92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrdvt92/32/33122_2.png) [@mrdvt92](https://discourse.nodered.org/u/mrdvt92)\
**Post date:** [13 April 2022 20:17 UTC](https://discourse.nodered.org/t/school-days-event-logic/61263/1 "2022-04-13T20:17:57Z")

</div>

I'm trying to setup automation logic based on when my local school system has student days or not. As anyone with kids is aware, the days that kids have off is quite random and one jurisdiction does not have the same school days as another.

So, I put a calendar templating system together where I could build a calendar template and then another script to generate 365 JSON files from that template to use in my automation. It's on [github](https://github.com/mrdvt92/fcps-calendar-school-standard) as well as all 365 generated JSON files.

My concept is that each different school system could fork the project, edit the calendar template, and then generate the JSON files for everyone's use in that district.

I hope that others out there need something like this and are interested in refining the process and scripts. The scripts are rough but it is fairly easy to manually build the calendar template. I would appreciate any input. My next step is to automate the Sonos alarm for school days.
