n8nflow.net logo

Create Daily 4K Wallpapers from NASA's APOD with Google Drive & Slack Alerts

by Moka OuchiUpdated: Last update a day agoSource: n8n.io
Loading workflow viewer...

Getting Started

What it does

This workflow automatically downloads NASA's Astronomy Picture of the Day (APOD) every day. It then resizes the image to a 4K resolution (3840x2160), making it perfect for a desktop wallpaper, and uploads it to a specified Google Drive folder.

If the APOD for the day is a video or another media type instead of an image, the workflow will skip the download process and send an alert to a designated Slack channel, informing you of the media type and title.

Who's it for

This template is ideal for:

  • Space and astronomy enthusiasts who want a new stunning wallpaper every day.
  • Anyone looking to automate file downloading and cloud storage management.
  • n8n users who want to learn how to integrate APIs, schedule triggers, process images, and use conditional logic.

How to set up

Setup should take about 5-10 minutes.

  1. Configure Credentials :
    • NASA : Get a free API key from NASA APIs and add your credentials in the Fetch APOD data node.
    • Google Drive : Authenticate your Google account in the Upload to Google Drive node.
    • Slack : Authenticate your Slack workspace in the Send Slack alert node.
  2. Set Workflow Variables :
    • In the ⚙️ Configuration node, replace the placeholder values for DRIVE_FOLDER_ID and SLACK_CHANNEL_ID with your actual Google Drive folder ID and Slack channel ID. You can find the folder ID in the URL of your Google Drive folder.
  3. Activate the Workflow :
    • Toggle the "Active" switch to ON in the top-right corner. The workflow will now run once every day.

How to customize

  • Change Image Size : You can adjust the output resolution in the Resize image to 4K node.
  • Use a different Cloud Storage : Replace the Upload to Google Drive node with another cloud storage node like Dropbox or OneDrive.
  • Adjust the Schedule : Modify the Daily Trigger node to run more or less frequently.