https://github.com/roe-dl/weewx-easter-almanac-example
Example how to write an almanac extension
https://github.com/roe-dl/weewx-easter-almanac-example
Last synced: 3 months ago
JSON representation
Example how to write an almanac extension
- Host: GitHub
- URL: https://github.com/roe-dl/weewx-easter-almanac-example
- Owner: roe-dl
- License: gpl-3.0
- Created: 2025-01-07T21:26:05.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-01-08T15:18:51.000Z (5 months ago)
- Last Synced: 2025-01-16T20:00:44.946Z (5 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weewx-easter-almanac-example
Example how to write an almanac extension for WeeWXThis is an example how to write an almanac extension for WeeWX. It provides the date of the easter sunday calculated by the formula of Carl Friedrich Gauß.
Put in your skin:
* `$almanac.easter.format('%Y-%m-%d')`
* `$almanac(almanac_time=time).easter.format('%Y-%m-%d')`Replace the format string by the date format of your choice.
As this is an example, it is simple. One attribute is calculated only. A real world extension would provide a `next_easter` and `previous_easter` attribute as well.