PageRenderTime 88ms CodeModel.GetById 42ms RepoModel.GetById 0ms app.codeStats 0ms

/README.org

https://github.com/kjordahl/Watts-Up--logger
Org | 72 lines | 55 code | 17 blank | 0 comment | 10 complexity | 7a0420b710e7452408781ca7f9056bcc MD5 | raw file
  1. * INTRODUCTION
  2. This is a simple Python utility for logging data from a [[https://www.wattsupmeters.com/secure/products.php?pn=0&wai=384&more=4][Watts Up? Pro]]
  3. power meter. Documentation for the serial port interface for the
  4. meter is available in [[https://www.wattsupmeters.com/secure/downloads/CommunicationsProtocol090824.pdf][this PDF file]].
  5. Other software capable of logging data on the Watts Up? meter are
  6. available for [[https://www.wattsupmeters.com/secure/support.php][download from watts up?]], and they sell a [[https://orders.wattsupmeters.com/store/home.php?cat=26][realtime
  7. version for Windows]] for $72.95. One example I found of reading from the Watts
  8. Up? Pro in Python was [[http://www.wattzon.com/forums/posts/80][this script]].
  9. The program will by default assume the most common device name for
  10. Linux and OS X platforms, but the serial port device can also be
  11. specified with the command line option ~-p~.
  12. The Watts Up? Pro uses an FTDI serial to USB adapter internally. If
  13. the driver is not already installed on your operating system, download
  14. the latest driver from the [[http://www.ftdichip.com/Drivers/VCP.htm][FTDI website]].
  15. * USAGE
  16. Basic usage from the command line:
  17. To log realtime data at the default sample rate (1 s) to the file
  18. ~sample.log~, use
  19. : wattsup.py -l -o sample.log
  20. A basic realtime plot can be added to the above with
  21. : wattsup.py -l -g -o sample.log
  22. (requires numpy and matplotlib).
  23. Full description of options will be given by
  24. : wattsup -h
  25. * FILES
  26. - ~wattsup.py~ :: Program to log, display data to console, and
  27. generate a simple real time plot
  28. - ~plot.py~ :: Simple plotting program for files already logged.
  29. - ~wattui.py~ :: Experimental [[http://code.enthought.com/projects/traits_ui/][TraitsUI]] interface to power meter
  30. logging (only does simulated logging for now)
  31. In the ~samples~ subdirectory, there are several raw data logs that
  32. can be used as sample input with the ~--simulation-mode~ option. Note
  33. that they may not be interesting to watch in real time. These files
  34. log the data as it comes from the serial port, with the ~--raw~ option.
  35. - ~ac.raw~ :: Sample data from a small window air conditioner
  36. - ~fan.raw~ :: Sample data from a two-motor, 3-speed fan
  37. - ~iphone3gs.raw~ :: Charging an iPhone 3gs
  38. - ~iphone4.raw~ :: Charging an iPhone 4
  39. * TO DO
  40. - Fetching data from internal storage is not yet working
  41. - Plotting is currently very rudimentary. Some things to add include:
  42. - Better autoranging
  43. - Options for plotting power, current, or both
  44. - Cumulative display or plot of energy used
  45. * LICENSE
  46. These programs are free software: you can redistribute them and/or
  47. modify them under the terms of the GNU General Public License as
  48. published by the Free Software Foundation, either version 3 of the
  49. License, or (at your option) any later version. A copy of the GPL
  50. version 3 license can be found in the file COPYING or at
  51. [[http://www.gnu.org/licenses]].
  52. This program is distributed in the hope that it will be useful,
  53. but WITHOUT ANY WARRANTY; without even the implied warranty of
  54. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  55. GNU General Public License for more details.