Difference between revisions of "Python Control of Smart Plugs"

From OpenCircuits
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
= Introduction/Status=
 
= Introduction/Status=
  
'''Purpose:''' This is a Graphical User Interface Application is to control TP-LINK HS110 Smart Plug w/Energy Monitoring (*'''[https://www.amazon.com/gp/product/B0178IC5ZY/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1 TP-LINK HS110 Smart Plug w/Energy Monitoring - - Amazon.com ]''' ) graph and otherwise process the data.  The application uses the pyHS100 library code.  It should work on Windows, Mac, Linux, and the Raspberry Pi.  It does require at least Python 3.6 as it uses f-strings ( print( f"evaluate this{1+1}" )
+
'''Purpose:''' This is a Graphical User Interface Application (actually two applications ) is to control TP-LINK HS110 Smart Plug w/Energy Monitoring (*'''[https://www.amazon.com/gp/product/B0178IC5ZY/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1 TP-LINK HS110 Smart Plug w/Energy Monitoring - - Amazon.com ]''' ) graph and otherwise process the data.  The application uses the pyHS100 library code.  It should work on Windows, Mac, Linux, and the Raspberry Pi.  It does require at least Python 3.6 as it uses f-strings ( print( f"evaluate this{1+1}" )
  
'''Program Status:''' ( Program now Ver5 ) More or less beta, seems to work, but rough.  Intended for those with some Python experience who can add the files to their
+
'''Program Status:''' ( Program now Ver7 ) More or less beta, seems to work fairly well if not stressed.  Intended for those with some Python experience who can add the files to their
 
Python development environment ( no install features for this code ).  Some dependencies will need to be installed, probably prompted by error messages.
 
Python development environment ( no install features for this code ).  Some dependencies will need to be installed, probably prompted by error messages.
 
Editing of the parameter file should be easier for those with Python experience.  Users should find some useful documentation in the code, this is still  
 
Editing of the parameter file should be easier for those with Python experience.  Users should find some useful documentation in the code, this is still  
Line 11: Line 11:
 
'''This Page Status:''' This page is the "master" page for the project, all other pages link back here, either directly or indirectly. Pages are drafts, but worth reading if you are trying to use the program.
 
'''This Page Status:''' This page is the "master" page for the project, all other pages link back here, either directly or indirectly. Pages are drafts, but worth reading if you are trying to use the program.
  
'''Help File:'''  Including install and configuration. [[SmartPlug Help File]]
+
'''Help File:'''  Including install and configuration. [[SmartPlug Help File]].  Screen shots and more at: '''[[SmartPlug GUI Images]]'''.
  
 
'''More Documentation:'''  See links below, and code ( '''[https://github.com/russ-hensel/smart_plug russ-hensel/Smart Plug Repository]''' )
 
'''More Documentation:'''  See links below, and code ( '''[https://github.com/russ-hensel/smart_plug russ-hensel/Smart Plug Repository]''' )
Line 20: Line 20:
 
= Help "file" for the Program =
 
= Help "file" for the Program =
  
Not a file but a page on this Wiki, this includes information on Download and Install, see: [[SmartPlug Help File]]
+
Not a file but a page on this Wiki, this includes information on Download and Install, see: '''[[SmartPlug Help File]]'''
 
Note that the wiki pages as pdf files may be found in .\wiki_etc, but these sometimes lag the online versions.
 
Note that the wiki pages as pdf files may be found in .\wiki_etc, but these sometimes lag the online versions.
  
Line 41: Line 41:
 
*[[SmartPlug Technical]]
 
*[[SmartPlug Technical]]
 
*[[SmartPlug GUI Images]]
 
*[[SmartPlug GUI Images]]
 +
*[[Python Desk Top Applications]]
 
*Click on Python SmartPlug Category below
 
*Click on Python SmartPlug Category below
  

Latest revision as of 11:36, 19 February 2020

This is an article started by Russ Hensel, see "http://www.opencircuits.com/index.php?title=Russ_hensel#About My Articles" About My Articles for a bit of info. Still polishing up this page.

Introduction/Status[edit]

Purpose: This is a Graphical User Interface Application (actually two applications ) is to control TP-LINK HS110 Smart Plug w/Energy Monitoring (*TP-LINK HS110 Smart Plug w/Energy Monitoring - - Amazon.com ) graph and otherwise process the data. The application uses the pyHS100 library code. It should work on Windows, Mac, Linux, and the Raspberry Pi. It does require at least Python 3.6 as it uses f-strings ( print( f"evaluate this{1+1}" )

Program Status: ( Program now Ver7 ) More or less beta, seems to work fairly well if not stressed. Intended for those with some Python experience who can add the files to their Python development environment ( no install features for this code ). Some dependencies will need to be installed, probably prompted by error messages. Editing of the parameter file should be easier for those with Python experience. Users should find some useful documentation in the code, this is still a work in progress. Much code has been lifted from other projects of mine, some artifacts remain.

This Page Status: This page is the "master" page for the project, all other pages link back here, either directly or indirectly. Pages are drafts, but worth reading if you are trying to use the program.

Help File: Including install and configuration. SmartPlug Help File. Screen shots and more at: SmartPlug GUI Images.

More Documentation: See links below, and code ( russ-hensel/Smart Plug Repository )

Graphical User Interface[edit]

Like to see what the interface, the gui, looks like see: *SmartPlug GUI Images

Help "file" for the Program[edit]

Not a file but a page on this Wiki, this includes information on Download and Install, see: SmartPlug Help File Note that the wiki pages as pdf files may be found in .\wiki_etc, but these sometimes lag the online versions.

Python Code[edit]

Available at:

  • Directory Structure
    • .\ all executable python code
    • .\wiki_etc supplementary documentation, in particular this wiki's pages as pdf's.

Program Design[edit]

See: SmartPlug Technical

Links[edit]

In this Wiki[edit]

The Internet[edit]

General[edit]

Matthias Random Stuff and Related[edit]

Matthias's youtube videos originally informed me about the SmartPlugs.

Amazon[edit]

Of course there are other sources.

Youtube Not Involving Python[edit]

Or maybe some Python ??