Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshjohanning/homebridge-cmd-scripts
Scripts for my homebridge instance
https://github.com/joshjohanning/homebridge-cmd-scripts
Last synced: about 1 month ago
JSON representation
Scripts for my homebridge instance
- Host: GitHub
- URL: https://github.com/joshjohanning/homebridge-cmd-scripts
- Owner: joshjohanning
- Created: 2023-04-14T00:58:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T04:08:46.000Z (about 2 months ago)
- Last Synced: 2024-12-04T05:19:17.227Z (about 2 months ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# homebridge-cmd-scripts
For the Homebridge plugin [hans-1/homebridge-cmdtriggerswitch](https://github.com/hans-1/homebridge-cmdtriggerswitch), I created various switches to do things such as wake and sleep my PC (usually turning on PC to watch Plex).
- Using Wake-on-LAN (WoL) sample found [here](https://stackoverflow.com/a/31588036/4270353)
- Using the [DontSleep](https://www.softwareok.com/?seite=Microsoft/DontSleep) app to keep the PC from sleeping when awakened
- Using a scheduled task [workaround](https://stackoverflow.com/a/70382385/4270353) to launch a GUI application (DontSleep) via Windows SSH
- Using [PsShutdown](https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown) from the Sysinternals suite to sleep PCRight now, using a stateful switch to turn on/off PC.
On command:
```bash
/home/pi/scripts/wake.sh xx:xx:xx:xx:xx:xx 192.168.1.xx 9 Joshua
```Off command:
```bash
/home/pi/scripts/sleep.sh Joshua 192.168.1.xx
```