mirror of
https://github.com/RGBCube/GDUS
synced 2025-07-28 13:37:45 +00:00
Fix super high reminders
This commit is contained in:
parent
6ea93100f9
commit
1b15f3798f
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ const alertIfTime = () => {
|
|||
reminders.forEach(reminder => {
|
||||
const differenceSeconds = currentTime - reminder.timestamp;
|
||||
|
||||
if (differenceSeconds < 1 * 60) {
|
||||
if (differenceSeconds < 60 && differenceSeconds > -30) {
|
||||
if (reminder.led != 0) fetch("http://localhost:3000/led/toggle?" + new URLSearchParams({ number: reminder.led })).then(console.log);
|
||||
fetch("http://localhost:3000/speak?" + new URLSearchParams({ text: reminder.content })).then(console.log);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue