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:
parent
fcbfd988d5
commit
60c3201ddf
2 changed files with 2 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,4 +15,5 @@
|
|||
!.gitignore
|
||||
|
||||
!*.md
|
||||
!*.py
|
||||
!*.rs
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue