remote power button

This commit is contained in:
Brahim Hadriche committed 2023-11-15 20:50:10 -05:00
1 parent d89b1c519d
commit af091fe8f7
4 files changed
+32 -1

No files matched your search

@@ -8,6 +8,12 @@ export class ExternalControlProtocol {
body: '',
})
}
static async pressKey(key) {
return fetch(`http://${getIp()}:8060/keypress/${key}`, {
method: 'POST',
body: '',
})
}
static async pressKeyUp(key) {
console.log("Pressing key up", key)