Back to Oh My Posh

Orthodox Calendar

website/docs/segments/health/orthodoxcal.mdx

29.26.12.0 KB
Original Source

What

Displays the Orthodox fasting level and feast information for the current day. Data comes from the orthocal.info API, which follows OCA rubrics. This is the same data source used by meatandright.com.

Sample Configuration

import Config from "@site/src/components/Config.js";

<Config data={{ type: "orthodoxcal", style: "powerline", powerline_symbol: "\uE0B0", foreground: "#ffffff", background: "#8B0000", options: { calendar: "gregorian", }, }} />

Options

NameTypeDescriptionDefault
calendarstringCalendar type: gregorian or juliangregorian
http_timeoutintTimeout for the API request in milliseconds20

Template (info)

:::note default template

template
☦ {{ .FastLevelDesc }}{{ if .FastExceptionDesc }} ({{ .FastExceptionDesc }}){{ end }} · {{ .SummaryTitle }}

:::

Properties

NameTypeDescription
.FastLevelintNumeric fasting level (0 = no fast, 1-5 = increasing strictness)
.FastLevelDescstringHuman-readable fasting description (e.g., "No Fast", "Strict Fast")
.FastExceptionintNumeric exception code
.FastExceptionDescstringException detail (e.g., "Wine and Oil are Allowed")
.SummaryTitlestringBest title for the day (feast or saint commemoration)
.FeastLevelintNumeric feast level
.FeastLevelDescstringFeast level description (e.g., "Liturgy", "Great Feast")
.Feasts[]stringList of feast names
.Saints[]stringList of commemorated saints
.Titles[]stringLiturgical titles for the day
.ToneintLiturgical tone (1-8)
.IsFastingbooltrue when the day has any fasting requirement
.FeastNamesstringAll feasts joined with commas
.SaintNamesstringAll saints joined with commas