Difference between revisions of "Constraint: Sunrise/Sunset"

 
Line 1: Line 1:
<span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span>
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on sunrise or sunset times.</pre>
  
This constraint can be used to allow/prevent actions being run if the time is before or after sunset/sunrise within a day.
+
''' Options '''
 +
 
 +
* '''Before/After Sunrise or Sunset''' - Select the time window to match
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Lower brightness after sunset''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Screen On/Off - Screen On</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Brightness (30%)</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Sunrise/Sunset - After Sunset</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Sunset/Sunrise|Sunset/Sunrise Trigger]]

Latest revision as of 13:50, 9 January 2026

This constraint allows or prevents a macro/feature from running based on sunrise or sunset times.

Options

  • Before/After Sunrise or Sunset - Select the time window to match

Example

Example 1: Lower brightness after sunset

Triggers

Screen On/Off - Screen On
Actions

Brightness (30%)
Constraints

Sunrise/Sunset - After Sunset

See Also