1
Fork 0
mirror of https://github.com/RGBCube/GDUS synced 2025-07-28 21:47:45 +00:00

Alert if time

This commit is contained in:
RGBCube 2024-01-12 14:18:29 +03:00
parent 627967ceb8
commit 9cd2df70f7
No known key found for this signature in database

View file

@ -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);
}
});
};