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.
SIMPLE Smart Plug random timer.
Moderators: Riddle, Shannon SteelSlave
- Shannon SteelSlave
- Moderator
- Posts: 6622
- Joined: 03 Feb 2019, 19:49
- Location: New England, USA
Re: SIMPLE Smart Plug random timer.
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!
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!
Re: SIMPLE Smart Plug random timer.
TP-Link HS100 series can be, if you're persistent enoughItsForSCIENCE wrote:I haven't found a smart plug that can be accessed directly through a pc program, so I kludged this together
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}}}