I started using a popular plugin with Obsidian called Templater. I would have called it something like Scripter because it allows you to replace special tags with the execution output of a script.
I wrote two little JavaScript programs for it: one calls a WeatherAPI endpoint and fetches today’s forecast, and the other calls the NYTimes API and fetches the current top headline. I use both of these as front matter in my daily notes!
Learn all about Templater over here