Setting a notes property to output of a script/plugin

What I’m trying to do

I’m using the weather fetcher plugin and want to add the current weather to a property in my daily note.

Things I have tried

At the moment I’m adding as inline text in the template with

<% app.commands.executeCommandById("weather-fetcher:weather-insert") %> 

and this does work fine, but I think a property will be cleaner, and can also be used in the new basis functionality.


I’ve tried creating a new property

weather : <% app.commands.executeCommandById(“weather-fetcher:weather-insert”) %>

<% weather %> : <% set weather = app.commands.executeCommandById(“weather-fetcher:weather-insert”) %>

and even

<% weather %> : <% set weather = await app.commands.executeCommandById(“weather-fetcher:weather-insert”) %>

But the property is always empty

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.