Add timestamp to startup and shutdown commands

This commit is contained in:
Skylar Grant 2024-09-04 19:53:44 -04:00
parent 53b1be6f59
commit 9499d6756e
1 changed files with 4 additions and 2 deletions

View File

@ -118,14 +118,16 @@ export class Communicator {
// Send startup command
startup() {
this.send('hestia/command/startup', JSON.stringify({
"publisher": "front"
"publisher": "front",
"timestamp": Date.now()
}));
}
// Send shutdown command
shutdown() {
this.send('hestia/command/shutdown', JSON.stringify({
"publisher": "front"
"publisher": "front",
"timestamp": Date.now()
}));
}
}