SIMPLE Smart Plug random timer.

Selfbondage software and other kinky developments

Moderators: Riddle, Shannon SteelSlave

Post Reply
ItsForSCIENCE
*
Posts: 1
Joined: 18 Mar 2019, 00:33

SIMPLE Smart Plug random timer.

Post by ItsForSCIENCE »

While I've been visiting this site anonymously for years, I've finally put together something on my own I considered worth sharing.

I've put together a random timer for a smart socket that didn't require any electronics, and only needs the equivalent of 'baby steps' in programming.

You need:

A smart plug
- I used an eFamilycloud compatible one because it was cheap (https://www.amazon.co.uk/gp/product/B07F2JGM58/)
an android emulator
- Noxplayer is free and as simple to set up as a new phone
Automatic Mouse and Keyboard
- an old program from robot-soft https://www.robot-soft.com/automatic-mo ... board.html - it says it supports windows 10, but I had to run it in win xp compatibility mode

I haven't found a smart plug that can be accessed directly through a pc program, so I kludged this together
Basically you use an android app to switch the plug on and off, and all automatic mouse and keyboard does is click that on/off button with whatever random timings you've entered.

I ran this as a test program and hooked it up to a hitachi - works like a charm.
Attachments
Timer.JPG
User avatar
Shannon SteelSlave
Moderator
Posts: 6532
Joined: 03 Feb 2019, 19:49
Location: New England, USA

Re: SIMPLE Smart Plug random timer.

Post by Shannon SteelSlave »

Great work, Sci! Can we give you a proper welcome in NEW MEMBER INTRODUCTIONS? Great way to start your career here.
Bondage is like a foreign film without subtitles. Only through sharing and practice can we hope to understand.
A Jedi uses bondage for knowledge and defense, never for attack.
I am so smart! I am so smart! S-M-R-T!....I, I mean S-M-A-R-T!
👠👠
User avatar
sweh
***
Posts: 235
Joined: 10 Aug 2017, 01:14
Contact:

Re: SIMPLE Smart Plug random timer.

Post by sweh »

ItsForSCIENCE wrote:I haven't found a smart plug that can be accessed directly through a pc program, so I kludged this together
TP-Link HS100 series can be, if you're persistent enough

Code: Select all

% tplink_smartplug.py -t tpplug1 -c on  
Sent:      {"system":{"set_relay_state":{"state":1}}}
Received:  {"system":{"set_relay_state":{"err_code":0}}}
See https://github.com/softScheck/tplink-smartplug for the code.
Post Reply