Skip to content

egno/work-calendar

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 1, 2018 09:33
June 20, 2018 15:22
June 1, 2018 09:33
March 31, 2021 16:02
June 20, 2018 15:22
June 18, 2018 13:17
June 1, 2018 09:27
June 18, 2018 13:17

work-calendar

Work calendar service. It's a part of my Smart Home.

Сервис, возвращающий информацию, выходным или рабочим является день.

(EN)

How many holidays in Russia! This is a service that defines a business day or a day off. It use open data from data.gov.ru site.

Run

Simply use docker or docker-compose

Examples

https://my_host/calendar/day/

https://my_host/calendar/day/2018-06-09/

It returns JSON structure:

holiday: True or False

default: True when the calendar from gov.ru is not loaded

https://my_host/calendar/update/ - It requests data update from data.gov.ru

(RU)

Сервис, возвращающий информацию, является день праздничным или нет. Использую как часть своего "Умного дома". Используется производственный календарь, публикуемый на сайте data.gov.ru

Примеры запросов

https://my_host/calendar/day/

https://my_host/calendar/day/2018-06-09/

Возвращается JSON:

holiday: True or False

default - True когда нет данных с сайта gov.ru и значение вычислено только по дню недели

https://my_host/calendar/update/ - Запрашивает обновление календаря с сайта data.gov.ru

TODO

Add personal calendar and sync it with Google.

About

Work calendar service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published