Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajyounguk/tpmonitor
A shell script which will turn a tplink hs100 smart plug on and off, based on the status of a machine on the network
https://github.com/ajyounguk/tpmonitor
home-automation hs100 hs110 ip kasa linux monitor pc-monitor shell shell-script smart-plug tplink unix utility
Last synced: 10 days ago
JSON representation
A shell script which will turn a tplink hs100 smart plug on and off, based on the status of a machine on the network
- Host: GitHub
- URL: https://github.com/ajyounguk/tpmonitor
- Owner: ajyounguk
- Created: 2019-04-25T08:28:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-27T12:51:35.000Z (about 3 years ago)
- Last Synced: 2024-11-20T14:51:11.879Z (2 months ago)
- Topics: home-automation, hs100, hs110, ip, kasa, linux, monitor, pc-monitor, shell, shell-script, smart-plug, tplink, unix, utility
- Language: Shell
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tpmonitor
Want to switch power on and off based on whether a network PC/device is on/off?
This is a shell script which will instruct a tplink hs100 smart plug to turn on and off, based on whether a device is available on the network. It will monitor an IP address, and send out a command to tp-link HS100 smart plug accordingly.
This was adapted from the work George Georgovassilis https://blog.georgovassilis.com/2016/05/07/controlling-the-tp-link-hs100-wi-fi-smart-plug/ and Thomas Baust on understanding the plug commands and decrypting the output.
There is also a related npm package here https://www.npmjs.com/package/tplink-smarthome-crypto?activeTab=readmeThere are some pointers in the script comments on how to schedule this script to run on a Windows 10 device with the bash developer extensions and the Windows Task Scheduler
Also see https://docs.microsoft.com/en-us/windows/wsl/install-win10 for details on how to install the Linux subsystem on Windows 10