dvargas92495 / SmartBlocks

Useful examples from developer community for Roam42 SmartBlocks
147 stars 7 forks source link

Repeating Events for Daily Notes #113

Open eatondpe opened 3 years ago

eatondpe commented 3 years ago

✂️ Copy of your #42SmartBlock from Roam

📋 Describe the SmartBlock

This SmartBlock uses 4 settings ...

 1. eventDescription  (The name of your event; ex, New Years Eve)
 2. startDate               (The base date for the event; ex, Dec 31 1900)  (do not use commas in date)
 3. period                   (How frequently does the event occur; ex, yearly)
 4. daysBefore            (How many days before the next event do you want to include it; ex, 10)

... to determine how far in the future the next event will occur.

The nextEventDate and daysRemaining (rounded to the nearest whole day) will be returned.

✅ Describe any prerequisites or dependencies that are required for this SmartBlock

None.

📷 Screenshot of your #42SmartBlock workflow/template from Roam

image

💡 Additional Info

This SmartBlock is intended to be duplicated for each event for which you want a reminder on your Daily Notes pages and can be included on your Daily Notes pages (typically by way of a template) using <%SMARTBLOCK:Repeating Events%> -- for example, <%SMARTBLOCK:New Years Eve%> if you had a copy called New Years Eve.

https://www.loom.com/share/35b9d3211b9e41128f26528e2f2f862a