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

Toggle led on reminder

This commit is contained in:
RGBCube 2023-12-20 12:32:54 +03:00
parent fcbfd988d5
commit 60c3201ddf
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View file

@ -15,4 +15,5 @@
!.gitignore
!*.md
!*.py
!*.rs

View file

@ -109,8 +109,7 @@ async fn view(data: Data<SqlitePool>) -> web::Result<Markup> {
const differenceSeconds = currentTime - reminder.timestamp;
if (differenceSeconds < 1 * 60) {
// new Audio("/beep.mp3").play();
alert("Geldi! " + reminder.content);
fetch("http://localhost:3000/toggle").then(console.log);
}
});
};