moon-phase-background: script to update Background with current high res NASA image

Submit your artwork to make Linux Mint look better
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
chrisbottle
Level 1
Level 1
Posts: 2
Joined: Mon Jul 12, 2021 8:12 am

moon-phase-background: script to update Background with current high res NASA image

Post by chrisbottle »

I wanted to automatically set the background to a picture of the current moon phase and couldn't find a program for that. Then I found this website: https://svs.gsfc.nasa.gov/vis/a000000/a004800/a004874/ from NASA that shows a high resolution image of the current moon phase (updated every hour).

So i wrote a simple bash script that downloads the current moon phase image from NASA and sets it as a desktop background in front of a background of stars and displays some information in the corner. (Illumination % and Cycle Age)

I then added a cron job(on my computer) to make it run the script and update every 12 hours. Also I added it to Startup Applications.

I am happy with the way this turned out so I thought I'd share it, so anybody else who is interested can try it out. Here is the Link to the github repository: https://github.com/desertplant/moon-phase-background

Let me know what you think.

PS. Oh i just remembered I made this for cinnamon. So if You don't have cinnamon you need to replace 2 lines in the code. (It should be really easy though.)

Here is an example picture of the current moon phase. (I had to shrink it)
Attachments
back_example_small.jpg
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
cool
Level 2
Level 2
Posts: 56
Joined: Sat May 28, 2011 12:44 am
Contact:

Re: moon-phase-background: script to update Background with current high res NASA image

Post by cool »

Hi, It's a nice script!
Xplanet, probably familiar with, is also excellent at display Solar objects.


Moon seen from Earth
xplanet-snapshot071721.jpg
For latest visit: SpaceEdge
chrisbottle
Level 1
Level 1
Posts: 2
Joined: Mon Jul 12, 2021 8:12 am

Re: moon-phase-background: script to update Background with current high res NASA image

Post by chrisbottle »

i did not know about that but it looks cool! i will check it out, thanks!
Locked

Return to “Your Artwork”