Skip to content

Commit

Permalink
feat(hwcontrol) beamer get state debug
Browse files Browse the repository at this point in the history
  • Loading branch information
smarthomeagentur committed Oct 17, 2024
1 parent e1c7048 commit 9f1b26e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/hwcontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,31 +143,37 @@ function pjlinkSet(ip, command) {
if (command == "status") {
const powerstate = await new Promise((resolve, reject) => {
projector.getPowerState(function (state) {
console.log(state);
resolve(state);
});
});
const input = await new Promise((resolve, reject) => {
projector.getInput(function (state) {
console.log(state);
resolve(state);
});
});
const name = await new Promise((resolve, reject) => {
projector.getName(function (state) {
console.log(state);
resolve(state);
});
});
const manufacturer = await new Promise((resolve, reject) => {
projector.getName(function (state) {
console.log(state);
resolve(state);
});
});
const model = await new Promise((resolve, reject) => {
projector.getName(function (state) {
console.log(state);
resolve(state);
});
});
const info = await new Promise((resolve, reject) => {
projector.getInfo(function (state) {
console.log(state);
resolve(state);
});
});
Expand Down

0 comments on commit 9f1b26e

Please sign in to comment.