I got a question concerning windows (batch) scripts.
For my smartmirror project i moved from Linux to a windows system, sounds weird, but IE is much faster.
I installed ssh/openssl via cygwin. So now i am able to connect from my linux machine.
Are there any tools for windows, that can be launched via cygwin to power the screen on/off.
i tried nircmd, but that did not succeed.
On a linux system: tvservice is the tool for changing video settings (at least on a raspberry pi)
I use Eventghost and MQTT to put my monitors to sleep.
in my .items file Switch GamingPC_Monitors "Gaming PC Monitors" <computer> { mqtt=">[openhab:/eventghost/events/GamingPC_Monitors_Off:command:OFF:1]" }
In eventghost I have an MQTT event listening for MQTT./eventghost/events/GamingPC_Monitors_Off
which fires off and sets monitors to power off mode. I know it’s not command line but this is how I made it work myself. Hope it helps.