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

View File

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