ב"ה
Home & Minyanim Widget
Fetches the current date and time, requests Jewish time data from the Hebcal API, and calculates if it is after 8 PM.
It then fetches the current Omer count from another Hebcal API, and updates the webpage to display the Omer count along with a message to "Repeat Shema" after a certain day of the week and time formatted as a 12-hour clock with AM/PM notation. The link within the widget opens the "Count Omer" page in a new tab.
After 8pm it does use the next days sunset time...
Example Output: 'Count Omer 45 & Repeat Shema after Monday 8:25 PM'
Main Widget
Fetches the current date and time. It then sends a request to the Hebcal API to fetch Zmanim data, including sunset and dawn times, based on the provided location. Next, it determines whether to display the blessings, i.e., only if they are after sunset and before dawn. It fetches the Omer count for the current date from the Hebcal API and updates the widget, displaying the count in both Hebrew and English.