Module Export - quick import into your scenario
You can copy and paste this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.
-
Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the right of the code, which looks like this:
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.
-
Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.
JSON module export — paste this directly in your scenario
{"subflows":[{"flow":[{"id":2,"module":"util:SetVariables","version":1,"parameters":{},"mapper":{"variables":[{"name":"Days in Current Month","value":"{{floor(formatDate(setDate(addMonths(now; 1); 1) - 86400000; \"D\"))}}"},{"name":"First Monday Current Month","value":"{{setSecond(setMinute(setHour(addDays(setDay(setDate(now; 1); 2); if(formatDate(setDay(setDate(now; 1); 2); \"M\") = formatDate(addMonths(now; -1); \"M\"); 7; 0)); 0); 0); 0)}}"},{"name":"First Tuesday Current Month","value":"{{setSecond(setMinute(setHour(addDays(setDay(setDate(now; 1); 3); if(formatDate(setDay(setDate(now; 1); 2); \"M\") = formatDate(addMonths(now; -1); \"M\"); 7; 0)); 0); 0); 0)}}"},{"name":"First Wednesday Current Month","value":"{{setSecond(setMinute(setHour(addDays(setDay(setDate(now; 1); 4); if(formatDate(setDay(setDate(now; 1); 2); \"M\") = formatDate(addMonths(now; -1); \"M\"); 7; 0)); 0); 0); 0)}}"},{"name":"First Thursday Current Month","value":"{{setSecond(setMinute(setHour(addDays(setDay(setDate(now; 1); 5); if(formatDate(setDay(setDate(now; 1); 2); \"M\") = formatDate(addMonths(now; -1); \"M\"); 7; 0)); 0); 0); 0)}}"},{"name":"First Friday Current Month","value":"{{setSecond(setMinute(setHour(addDays(setDay(setDate(now; 1); 6); if(formatDate(setDay(setDate(now; 1); 2); \"M\") = formatDate(addMonths(now; -1); \"M\"); 7; 0)); 0); 0); 0)}}"},{"name":"First Saturday Current Month","value":"{{setSecond(setMinute(setHour(addDays(setDay(setDate(now; 1); 0); if(formatDate(setDay(setDate(now; 1); 2); \"M\") = formatDate(addMonths(now; -1); \"M\"); 7; 0)); 0); 0); 0)}}"},{"name":"First Sunday Current Month","value":"{{setSecond(setMinute(setHour(addDays(setDay(setDate(now; 1); 1); if(formatDate(setDay(setDate(now; 1); 2); \"M\") = formatDate(addMonths(now; -1); \"M\"); 7; 0)); 0); 0); 0)}}"},{"name":"Next Monday","value":"{{setSecond(setMinute(setHour(if(setDay(now; 1) > now; setDay(now; 2); setDay(now; 9)); 0); 0); 0)}}"},{"name":"Next Tuesday","value":"{{setSecond(setMinute(setHour(if(setDay(now; 2) > now; setDay(now; 3); setDay(now; 10)); 0); 0); 0)}}"},{"name":"Next Wednesday","value":"{{setSecond(setMinute(setHour(if(setDay(now; 3) > now; setDay(now; 4); setDay(now; 11)); 0); 0); 0)}}"},{"name":"Next Thursday","value":"{{setSecond(setMinute(setHour(if(setDay(now; 4) > now; setDay(now; 5); setDay(now; 12)); 0); 0); 0)}}"},{"name":"Next Friday","value":"{{setSecond(setMinute(setHour(if(setDay(now; 5) > now; setDay(now; 6); setDay(now; 13)); 0); 0); 0)}}"},{"name":"Next Saturday","value":"{{setSecond(setMinute(setHour(if(setDay(now; 6) > now; setDay(now; 0); setDay(now; 7)); 0); 0); 0)}}"},{"name":"Next Sunday","value":"{{setSecond(setMinute(setHour(if(setDay(now; 0) > now; setDay(now; 1); setDay(now; 8)); 0); 0); 0)}}"}],"scope":"roundtrip"},"metadata":{"designer":{"x":300,"y":0,"name":"Sam's Time & Date Changes"}}}]}],"metadata":{"version":1}}
Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!