Difference between revisions of "ClipBoard Help File"

From OpenCircuits
Jump to navigation Jump to search
Line 5: Line 5:
  
  
Help file for backup application.
 
  
= Application Features =
 
  
*Highly configurable.
+
*GUI shows activity.
 
.....
 
  
= Download and Install =
 
  
There is really no install program.  Currently the application is intended for those who have at least a little familiarity with Python coding and can just insert the downloaded code into their development environment and run it.  Code not yet available.
 
 
<!-----------
 
 
   
 
   
 
Code at '''[https://github.com/russ-hensel/smart_plug/tree/master russ-hensel/Smart_plug Application ]''' For most of you it will not run due to dependency problems.  You will need to add them.  Pretty much read the error messages and install the missing code.  I use Anaconda Spyder so my preferred tool is conda ( conda install pyHS100 ).  If conda does not work or you do not use it use pip.  pyHS100, a library for smart plugs is pretty likely to be missing ( pip install pyHS100) .  Depending on your installation there may be more.
 
 
Much of the application is configurable through the parameter.py file, but the default should give you an application that runs, including a default database.  You probably will not be able to talk to your smartplugs, because the parameters do need to be told what and where ( tcpip address ) they are.
 
 
So to tell the application about your plugs.  You should know the address of each plug.  If not you might want to use an application like advanced ip scanner ( google it ).  The smartplug gives up very little information on my scans, but run the scan with the plug plugged in and out, and the address that appears ( or disappears ) it the address of your device.
 
 
The section of parameters.py that locates the device looks like this:
 
 
        self.device_list      =  [
 
                { "name": "device_1",  "tcpip": "192.168.0.209", "more": None, "gui_label": None, "gui_combo": None  },
 
                { "name": "device_2",  "tcpip": "192.168.0.209", "more": None, "gui_label": None, "gui_combo": None  },
 
                { "name": "device_3",  "tcpip": "192.168.0.209", "more": None, "gui_label": None, "gui_combo": None  },
 
                                  ]
 
it is a list of dictionaries.  The entry above is for 3 devices ( but I only have one, so the tcpip address is repeated ) For now only worry about the tcpip address and the name for the device; put in as many devices as you wish to control.
 
 
With the edited parameter file saved, restart the application.  You should be able to "talk" to your devices.  Not working?  Double check or email me.
 
 
In the future I may try to add some autodetect features.  There is a routine to discover the plugs in the pyHS100 library, but it does not work for me.
 
 
this cannot bee seen
 
------------->
 
 
 
= How To:... =
 
== Goal ==
 
This is how I use the program, you could use it differently:
 
 
Put a short Python script in a directory.  When this is double clicked start the GUI for the backup program set up to backup the directory to another directory either on the current disk or another disk.
 
 
  
 
== General ==
 
== General ==
Line 90: Line 52:
 
see: [[ClipBoard GUI]]
 
see: [[ClipBoard GUI]]
  
= Debugging =
 
 
There are several application outputs that may be useful for debugging.
 
 
* Watch the GUI
 
* Check the Python console.
 
* Look at the python log file ( use the GUI button <Edit Log> ( specify your editor in parameters.py first ) or use your editor on the default name of the log file, by default: clipboard.py_log.
 
  
Most issues will probably be missing libraries, parameters.py issues, or just bugs in my code (email me ).
 
  
 
<!-----------
 
<!-----------

Revision as of 10:01, 20 March 2020

This is the Help "file" for the Python Application whose main page is: Python Smart Clipboard

Right now this is Junk

Fix comming soon..... No it is not, help is going to link to the main project page. This material will be reused elsewhere if useful.





General

  • Edit the parameter file: Use your development environment for Python or a text editor to edit parameters.py. See also: The section below, Configuration Files For Python. I have a button on the GUI for this.
  • Install: see section above.
  • Debug: see section below.
  • Quick Restart of the application: Not in this app, just shutdown and restart.
  • Use your preferred text editor. In the parameter file, see below.

More Info Here

How to Use the Parameter File

See: Configuration Files For Python

Editing of the parameters.py file

    • See above in Download and Install
  • Enable your favorite editor to work with the application.
    • self.ex_editor = r"D:\apps\Notepad++\notepad++.exe" # use r" or the backslashes will not work, or you can use forward slashes instead; they may be "wrong" in Windowd, but they work.
  • Lots of other settings:
    • Read the comments in parameters.py and change as desired. If a setting does not work let me know.
  • If you mess up.
    • Re download and get back to the original parameter file.

The GUI

see: ClipBoard GUI



Links

  • Click on category page for this project ( ClipBoard ) below.
  • Click on What links here on the left of this page