Current Moon Phase #1144
wheresalice
started this conversation in
Templates Showcase
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Borrowing this gist I created a user system command function to output the current moon phase to my daily notes with
<% tp.user.moon_icon() %>
Here's what my settings look like for this:
I could just put the code into Obsidian, but I also want to use this script elsewhere (my zsh prompt) so I have put it in an executable bash script
~/bin/moon_icon
Here's what it looks like in my daily template (Dracula for Obsidian theme):
Whilst this sounds like a very small thing (I'm reusing someone else's code and it's literally a single emoji), for me it was what made me realize just how powerful Templater is. It's also a great example of what you can do locally with just a few lines of code instead of calling out to services on the internet
Beta Was this translation helpful? Give feedback.
All reactions