Add "time of day" to preset Time Condition in Default Settings

Status
Not open for further replies.

jadizzedin

New Member
Dec 18, 2023
3
0
1
30
I've added some additional presets for my time conditions in the gui: Advanced > Default Settings > Time Conditions

For example: {"mothers_day":{"wday":"1", "mon":"5","mday":"8-14"}}

Is there a way to add 'time of day' params to this preset?
For example, on Mothers day we want it to hit the set destination if it's between hours 9 and 22.
Otherwise, I imagine it would go to the time condition's main alternate destination?

SIDE QUESTION: does anyone know the preset params for Easter? It's a bit all over the place..

Thanks!
 

whut

Member
Dec 23, 2022
169
15
18
Easter is based upon the lunar calendar. As such, it will not fit within the time conditions framework to cover each year. For Easter you could get a multiple years list and create presets like easter2024, easter2025, and so forth.

For specific hours of the day on Mother's Day, add hours/hours:minutes to that preset's parameters.
 

jadizzedin

New Member
Dec 18, 2023
3
0
1
30
Thank you! Do you know the specific syntax for adding specific hours to the presets?
I tried a ton of variations but it never came across in the actual time condition preset, it was always just a blank field.
 

whut

Member
Dec 23, 2022
169
15
18
Create a simple time condition that includes what you want. Then view the dialplan of the newly created time condition and you will see exactly what you will need to add to your preset holiday's parameters.
 

jadizzedin

New Member
Dec 18, 2023
3
0
1
30
Thank you for your suggestion! I was able to copy the syntax found in the dial plan for 'Hour of Day' into a test preset I created and the condition is showing up as expected on a custom preset I created.

The problem i'm running into is that when I select the custom preset I created in a TimeCondition and click save, the box does not stay selected. The page reloads as if I had not selected it. I am wondering if you know why this behavior is occurring.
 

whut

Member
Dec 23, 2022
169
15
18
Make sure you have newest fusion and make sure your new time condition preset is created correctly. Use the other presets as your example to ensure you have all of the settings exact.
 
Status
Not open for further replies.