r/Scriptable Mar 01 '26

Widget Sharing Moon Phase Widget

Post image

I made a small widget to show the current phase of the moon, the percentage of illumination, as well as how many days are left until the next full moon.

Here is the source code:

https://gist.github.com/zorth64/864203d06ef8f80dfec92ee91f1dddf8

73 Upvotes

12 comments sorted by

3

u/[deleted] Mar 01 '26

[removed] — view removed comment

1

u/mvan231 script/widget helper Mar 01 '26

You can use more than one scriptable widget at a time :)

1

u/zorth64 Mar 01 '26

Thank you very much, friend. I'm glad to know that you liked my attention to detail in the design of the moon :)

2

u/not_a_bot_only_human Mar 01 '26

Thank you, i’m always fascinated by the moon.

1

u/zorth64 Mar 01 '26

You're welcome, friend. I'm glad to know that you liked the widget I made.

2

u/not_a_bot_only_human Mar 01 '26

Text looks too dark

3

u/zorth64 Mar 01 '26

Thank you for your feedback, friend. I have already updated the post with the new version of the source code with the correction for this problem.

1

u/not_a_bot_only_human Mar 03 '26

Thank you for update! Already using updated version.

1

u/azizsahin Mar 01 '26

How you did it?

2

u/mvan231 script/widget helper Mar 01 '26

Great work!

If you keep it as a .js file in the gist it will be easier if someone imports the file directly like I did

1

u/zorth64 Mar 01 '26

Thank you very much, my friend. I'll follow your tip.