mirror of
https://github.com/SrIzan10/dlink.git
synced 2026-06-05 16:46:47 +00:00
main
dlink
A really simple proxy for the TP-Link DSP-W115 and DSP-W245 smart plugs. Created with Home Assistant in mind, though setup has to be done manually.
Installation
A Docker image is available on Docker Hub, so you can run the app with the following command:
docker run -d -p 4000:4000 --name dlink -e IP=ip -e PIN=123456 --restart unless-stopped srizan10/dlink
Or with docker-compose:
services:
dlink:
image: srizan10/dlink
container_name: dlink
environment:
- IP=ip
- PIN=123456
ports:
- 4000:4000
restart: unless-stopped
API routes
The routes require absolutely no authentication, so make sure to run the app in a secure environment.
GET /status
Returns the status of the plug.
POST /on
Turns the plug on.
POST /off
Turns the plug off.
Description
Languages
HTML
67.7%
JavaScript
22.1%
Dockerfile
10.2%