n8n workflow of the week · Episode 4 of 21 · just for fun
Every day Wikimedia Commons picks a “picture of the day”: nature, architecture, space, often breathtaking. The Wikimedia API delivers it with a description and a preview URL. A Code node turns it into a message, and ntfy attaches the image directly.
How it works
- Every morning at 7: starts every morning at 7.
- Featured content: fetches Wikimedia's “featured content” for today. The date sits in the URL as the expression
$now.toFormat('yyyy/MM/dd'). - Build message: takes the description, preview image and link to the file page.
- Push to phone: sends the message; the
attachfield makes ntfy download and show the image.
What it is good for
Honestly: for nothing but a nice start to the day. Technically you learn two things you will need often: dates in expressions and attachments in notifications.
Make it yours
Swap /en/ in the URL for /de/ or /it/ to get the description in German or Italian. Instead of your phone, the picture can go to the family by e-mail or into a Nextcloud folder as a wallpaper.
Import it in two minutes
- Download the workflow: week-04.json.
- In n8n, top right “…” → “Import from File”.
- In every push node replace
your-secret-topicwith your own hard-to-guess topic and subscribe to it in the ntfy app (free, no account). - Adjust the values marked with a comment in the Code node, press “Execute workflow” once, then activate it.
New to n8n? The basics are in n8n introduced.
All episodes of the series →
Start an n8n workflow live with one click →