lfos / calcurse

A text-based calendar and scheduling application
https://calcurse.org
BSD 2-Clause "Simplified" License
973 stars 92 forks source link

Show lunar phases (and sunrise/-set). #307

Open Sur3 opened 4 years ago

Sur3 commented 4 years ago

It would be nice to have the option to show the lunar phases in the monthly overview. astral could be used to calculate the lunar phases (and it could also be used to show the sunrise and sunset in the daily overview): https://astral.readthedocs.io/en/latest/index.html

Unicode lunar phases:
U+1F311 | 🌑 | f0 9f 8c 91 | NEW MOON SYMBOL
U+1F312 | 🌒 | f0 9f 8c 92 | WAXING CRESCENT MOON SYMBOL
U+1F313 | 🌓 | f0 9f 8c 93 | FIRST QUARTER MOON SYMBOL
U+1F314 | 🌔 | f0 9f 8c 94 | WAXING GIBBOUS MOON SYMBOL
U+1F315 | 🌕 | f0 9f 8c 95 | FULL MOON SYMBOL
U+1F316 | 🌖 | f0 9f 8c 96 | WANING GIBBOUS MOON SYMBOL
U+1F317 | 🌗 | f0 9f 8c 97 | LAST QUARTER MOON SYMBOL
U+1F318 | 🌘 | f0 9f 8c 98 | WANING CRESCENT MOON SYMBOL

Unicode sunrise/sunset:
U+263C | ☼ | e2 98 bc | WHITE SUN WITH RAYS
U+2600 | ☀ | e2 98 80 | BLACK SUN WITH RAYS |  

There should also be the option to swap new moon/full moon and respective icons for supporting both black on white and white on black terminals.

lfos commented 4 years ago

This feature existed but was removed in 172efd7 (Remove phase of moon feature, 2017-09-05). If reintroduced, we should probably make it optional/configurable. Using UTF-8 moon phase symbols might also make it less confusing than it used to be indeed.

tlhall commented 3 years ago

The Documentation still describes this removed feature and needs updating.

Clarkinia commented 3 years ago

Seconding this moon phases feature. Thank you.

tlhall commented 3 years ago

Are you advocating returning the feature, or removing it's description from the documentation ?

Clarkinia commented 3 years ago

I am advocating for the return of the feature. Although updating the documentation sounds good as well.

Even though I would definitely use it, it makes sense so have it optional/ configurable like lfos proposed.

tlhall commented 3 years ago

I like the idea of having it be a configurable feature, but also have the documentation note that it's not 100% accurate. But I would like the in-between periods represented as phase "+" until the new phase.

Clarkinia commented 3 years ago

For clarification regarding the documentation note: What is not 100% accurate?

The plus sign "+" seems like a good solution. Less cryptic than the original. Perhaps the waxing periods would be depicted by "+" and the waning periods depicted by "-".

dickreckard commented 3 years ago

I'm also definitely advocating the return of the feature! Was so sad to notice today it's gone. :)

ericrpatton commented 2 years ago

@Clarkinia The PDF and HTML documentation here https://calcurse.org/support/ says that the appointment panel of calcurse shows the approximate lunar phase next to the date. This feature doesn't exist, so the documentation needs to be updated.

OT7EtoYoshimura commented 9 months ago

Being able to control repeating appointments based on the lunar phases would be quite nice as well. I'd happy to be proven wrong, but as of now I don't think it's possible to have a proper repeating app for Easter with calcurse.