Add timestamp to startup and shutdown commands
This commit is contained in:
parent
53b1be6f59
commit
9499d6756e
@ -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()
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user