Editing SmartPlug Help File
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
− | Help file for smart plug application ( | + | Help file for smart plug application ( Program now Ver5 ). |
Line 8: | Line 8: | ||
*Works with multiple smartplugs. | *Works with multiple smartplugs. | ||
− | *Provides on, off, timing, and energy recording functions from a graphical user interface ( gui ) | + | *Provides on, off, timing, and energy recording functions from a graphical user interface ( gui ) |
*Supports graphing of data. Currently power and energy over time. Multiple devices on one graph. | *Supports graphing of data. Currently power and energy over time. Multiple devices on one graph. | ||
− | *Supports | + | *Supports csv output of data. |
*Saves data to a sql lite database that you can use any way you wish. | *Saves data to a sql lite database that you can use any way you wish. | ||
*Highly configurable. | *Highly configurable. | ||
Line 40: | Line 40: | ||
= How To:... = | = How To:... = | ||
− | |||
− | |||
− | |||
== Either/Both Applications == | == Either/Both Applications == | ||
Line 50: | Line 47: | ||
*Debug: see section below. | *Debug: see section below. | ||
*Edit the parameter file: *Change Parameters: Use the application button <Edit Parms> ( after configuring for your editor ) or any text editor suitable for Python ( no tabs ) on the file parameters.py. See also: The section below, [[Configuration Files For Python]] and [[SmartPlug GUI Images]] | *Edit the parameter file: *Change Parameters: Use the application button <Edit Parms> ( after configuring for your editor ) or any text editor suitable for Python ( no tabs ) on the file parameters.py. See also: The section below, [[Configuration Files For Python]] and [[SmartPlug GUI Images]] | ||
− | |||
*Backup the database: Just make a copy of the database using your file manager. It is all in one file, but you can make multiple databases. | *Backup the database: Just make a copy of the database using your file manager. It is all in one file, but you can make multiple databases. | ||
− | *Add a new device or change device data: edit the parameter file, device_list. | + | *Add a new device or change device data: edit the parameter file, device_list. |
*Quick Restart of the application: As perhaps after a parameter change. Use the <Restart> button. See also: [[SmartPlug GUI Images]] | *Quick Restart of the application: As perhaps after a parameter change. Use the <Restart> button. See also: [[SmartPlug GUI Images]] | ||
*Make a graph: Use the graphing application or Live Graph ... see sections below. See also: [[SmartPlug GUI Images]]. | *Make a graph: Use the graphing application or Live Graph ... see sections below. See also: [[SmartPlug GUI Images]]. | ||
− | *Switch databases | + | *Switch databases. |
− | |||
− | |||
− | |||
== Smart Plug Application == | == Smart Plug Application == | ||
− | + | this is the application in smart_plug.py | |
− | *Turn plug on/off | + | *Turn plug on/off |
− | *Record data | + | *Record data/Monitor Plug: Press the <Record On> button, to stop <Record Off> or close the application. See also: [[SmartPlug GUI Images]]. |
− | + | *Set a timer: See also: [[SmartPlug GUI Images]] | |
− | *Set a timer: | + | *See status/info on a smart plug: Of what, work in progress. |
− | * | + | *Retrieve data from plug: On the GUI, but not implemented. |
− | |||
− | |||
− | * | ||
== Graphing Application == | == Graphing Application == | ||
− | |||
This is the application in smart_plug_graphing.py. It generally preforms operations on the database, mostly graphing, but also some other operations. | This is the application in smart_plug_graphing.py. It generally preforms operations on the database, mostly graphing, but also some other operations. | ||
− | *Choose what data to graph - which devices, and for what time period. There are several ways to do this | + | *Choose what data to graph - which devices, and for what time period. There are several ways to do this. |
**Set the dates in the parameter file. | **Set the dates in the parameter file. | ||
− | **Use the date and time controls on the GUI. | + | **Use the date and time controls on the GUI. See also: [[SmartPlug GUI Images]] |
− | **Use the radio button controls on the GUI. | + | **Use the radio button controls on the GUI. See also: [[SmartPlug GUI Images]] |
− | *Save graph as .png file | + | *Save graph as .png file |
− | *Zoom in on part of | + | *Zoom in on part of the graph |
*Change the zero point ( time ) for the graph -- see parameters.py | *Change the zero point ( time ) for the graph -- see parameters.py | ||
− | *Move the graph lines around within the graph frame | + | *Move the graph lines around within the graph frame |
*Change the units on the time scale of the graph -- see parameters.py | *Change the units on the time scale of the graph -- see parameters.py | ||
*Change the max and minimum values on the graph -- see parameters.py or zoom the graph | *Change the max and minimum values on the graph -- see parameters.py or zoom the graph | ||
− | *Export a csv file: | + | *Export a csv file: See also: [[SmartPlug GUI Images]] |
− | *Create a new empty database: There is a button on the graphing application. First set the file name ( including full path ) to a non existent file | + | *Create a new empty database: There is a button on the graphing application. First set the file name ( including full path ) to a non existent file. |
− | |||
= How to Use the Parameter File = | = How to Use the Parameter File = | ||
See: [[Configuration Files For Python]] | See: [[Configuration Files For Python]] | ||
− | You need a text editor | + | You need a text editor sutiable for .py files to manage the parameter file ( parameters.py ) |
This includes most text editors. I particularity like: | This includes most text editors. I particularity like: | ||
Line 179: | Line 167: | ||
*[[Python Control of Smart Plugs]] main page for this project | *[[Python Control of Smart Plugs]] main page for this project | ||
− | |||
− | |||
− | [[Category: | + | *[[Category:Python_SmartPlug]] category page for this project |
+ | |||
+ | |||
+ | [[Category:Python SmartPlug]] [[category:Python]] |