scheduler: midnight as default HH:MM

allow just "UTC", "Monday", "05-01", etc.
clarify webui paragraph and mention KEYWORD as an element

ignore sunrise and sunset keywords when sun module is disabled

move all of parsing to time module, test whether combined match works
This commit is contained in:
Maxim Prokhorov
2024-05-27 03:18:34 +03:00
parent 17a599f91b
commit d6f807d68c
25 changed files with 11097 additions and 10754 deletions

View File

@@ -973,9 +973,14 @@
<li><samp>YEAR-MONTH-DAY</samp> or <samp>MONTH-DAY</samp></li>
<li><samp>Weekday</samp> in English (abbreviated of full), or number in range <samp>1&ndash;7</samp> (1 meaning Monday and 7 - Sunday)</li>
<li><samp>HOUR:MINUTE</samp></li>
<li><samp>KEYWORD</samp></li>
</ul>
<p><samp>HOUR:MINUTE</samp> always uses local time, unless followed by <samp>UTC</samp></p>
<p><samp>HOUR:MINUTE</samp> always uses local time, unless <samp>UTC</samp> keyword is used.</p>
<p>When <samp>HOUR:MINUTE</samp> is omitted, <samp>00:00</samp> is used instead.</p>
<p class="module module-sun"><samp>Sunrise</samp> or <samp>Sunset</samp> keywords can be used in place of <samp>HOUR:MINUTE</samp>.</p>
<a href="https://github.com/xoseperez/espurna/wiki/Scheduler">See full documentation</a>
@@ -995,8 +1000,6 @@
<fieldset class="module module-sun">
<legend>Location</legend>
<p>Used for <samp>Sunrise</samp> or <samp>Sunset</samp>, which can be specified instead of <samp>HOUR:MINUTE</samp></p>
<div class="pure-control-group">
<label>Latitude</label>
<input name="schLat" type="text">