mirror of
https://github.com/RGBCube/GDUS
synced 2025-07-28 21:47:45 +00:00
Alert if time
This commit is contained in:
parent
627967ceb8
commit
9cd2df70f7
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ const alertIfTime = () => {
|
|||
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);
|
||||
|
||||
setTimeout(() => {
|
||||
alert(reminder.content);
|
||||
}, 0);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue