Skip to content

Releases: pengowray/ScreenSleeper

ScreenSleeper v1.1.1

Choose a tag to compare

@pengowray pengowray released this 12 Sep 00:54
  • Retry connecting continuously (Default for new installs)
  • Cap log box at 2000 lines
  • Bump MQTTnet to 5.2.0.1603
  • Other fixes and code cleanup

Add this to your mqttConfig.json for continuous retries:

  "MQTTRetry": -1,

The above will appear in new configs, but the default is still 5 retries if MQTTRetry is not specified (i.e. config files generated before this version)

v1.0.2

Choose a tag to compare

@pengowray pengowray released this 24 Mar 23:11

minor fixes

Config documentation is now in the Wiki:

https://github.com/pengowray/ScreenSleeper/wiki/config

v1.0.1 First ScreenSleeper Release

Choose a tag to compare

@pengowray pengowray released this 24 Mar 07:31

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.