Releases: pengowray/ScreenSleeper
v1.0.2
v1.0.1 First ScreenSleeper Release
Initial release with core features working. Made this utility for myself, polished it up and releasing for anyone else who has use for it.
No installer, just unzip the folder and run ScreenSleeper.exe. Once you see it works, you can put a link to it in shell:startup
to autorun at startup. Probably needs some Microsoft DLLs that you already have installed. Only tested on Windows 10. Let me know if it works for you and your Windows version.
Connects to a MQTT server via all the usual protocols (mqtt/mqtts/websocket/wss), turns off your screen (and optionally locks Windows) when it sees the target payload. See the config file in explorer by hitting the "Find Config" button. The output text can be resized with browser-style shortcuts (Ctrl -
and Ctrl =
, or Ctrl+scrollwheel
). Retries when disconnected (fixed at 5 times). If you want to allow bad SSL certs "AllowBadSSL": true
(untested). Port can be set manually (pick a number) or to "Port": "auto"
which will choose a port number based on the protocol (mqtt => 1883, mqtts => 8883, ws => 80, wss => 443). You can also use "Port": "auto-ha"
which will pick a port number based on how homeassistant's Mosquitto add-on has its default ports (mqtt => 1883, mqtts => 8883, ws => 1884, wss => 8884).
If you're using this with Home Assistant's Mosquitto Broker add-on, see the wiki for help on making a separate mqtt login.
These notes were longer than I anticipated. Guess it needs some documentation. It's really a simple thing.