mirror of
https://github.com/RGBCube/GDUS
synced 2025-07-29 05:57:45 +00:00
Toggle led on reminder
This commit is contained in:
parent
fcbfd988d5
commit
60c3201ddf
2 changed files with 2 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,4 +15,5 @@
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
||||||
!*.md
|
!*.md
|
||||||
|
!*.py
|
||||||
!*.rs
|
!*.rs
|
||||||
|
|
|
@ -109,8 +109,7 @@ async fn view(data: Data<SqlitePool>) -> web::Result<Markup> {
|
||||||
const differenceSeconds = currentTime - reminder.timestamp;
|
const differenceSeconds = currentTime - reminder.timestamp;
|
||||||
|
|
||||||
if (differenceSeconds < 1 * 60) {
|
if (differenceSeconds < 1 * 60) {
|
||||||
// new Audio("/beep.mp3").play();
|
fetch("http://localhost:3000/toggle").then(console.log);
|
||||||
alert("Geldi! " + reminder.content);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue