Inserting more detailed weather forecasts into a daily note

Nice, I like it!

There is also this website: https://wttr.in/:help for a full list of options and flags.

So you can run curl wttr.in and get a text-based weather report.

There is also curl v2.wttr.in for one with some graphs.

By default the color codes won’t render properly in Obsidian. You can specify options to make it render only text with no colors. So you’d still have to change the formatting a bit so it spit out valid Markdown or a code-block, otherwise the spaces won’t render properly.

curl wttr.in/?0?T - This would show text only and only the current weather:

In one terminal command, this would surround the output with code block backticks. I like how you use the URL scheme, but I’m just piping it to a file:

echo "\`\`\`" > ~/ObsidianNotes/weather.md && curl wttr.in/London?0?T >> ~/ObsidianNotes/weather.md && echo "\`\`\`" >> ~/ObsidianNotes/weather.md

How it looks in the terminal by default:


1 Like