JosefJantzen / MMM-AlexaControl

Control your MagicMirror with Alexa
MIT License
45 stars 10 forks source link

CEC-client capability #23

Closed masonbesmer closed 4 years ago

masonbesmer commented 4 years ago

Please add cec-client capability to the monitor toggle thing!

JosefJantzen commented 4 years ago

Hi, I added the cec-client but I'm not sure if it works because the library doesn't work for me. Can you test it? You can use it if you set vcgencmd to cec-client like this: vcgencmd: "cec-client. It uses the following commands:
echo 'standby 0' | cec-client -s -d 1 and echo 'on 0' | cec-client -s -d 1. Before you can test it you have to update my module. For that navigate in it's folder and run git pull.

masonbesmer commented 4 years ago

Hello, I will submit a pullrequest of the way I implemented CEC compatibility using cec-client!

edit: code added to node helper in the toggle section

would be smart to add a config option for the standby/on addresses, so if the user has multiple monitors set up for some reason, or if the IP isn't the same, the user can overwrite the default config (which would be set to 0.0.0.0)

JosefJantzen commented 4 years ago

I added the edit of you. Tomorrow I will add the address option.

JosefJantzen commented 4 years ago

Now I added the cecAddress option. Could you please test it?

masonbesmer commented 4 years ago

Works good, thank you!