Skip to content

yyongpil/wattsup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wattsup.py

A logging program for Watts Up? .Net/Pro meters.

wattsup.py is a simple python program for logging Watts Up? .Net/Pro meter values.

Requirements

How to Run

Mac OS X

See options:

$ ./wattsup.py -h

or

$ python2.7 ./wattsup.py -h

Realtime external logging with the following options:

  • Read values from the meters /dev/tty.usbserial-AB1234CD and /dev/tty.usbserial-EF5678GH

  • Log for 10 minutes

  • Set the meter-reading interval to 1 second

  • Save as files with the filenames starting with mylog01

      $ ./wattsup.py -p /dev/tty.usbserial-AB1234CD /dev/tty.usbserial-EF5678GH -t 10 -i 1 -o mylog01
    

All the read values will be saved in mylog01-tty.usbserial-AB1234CD.csv and mylog01-tty.usbserial-EF5678GH.csv.

Clear the internal memory of the meter and start internal logging:

$ ./wattsup.py -p /dev/tty.usbserial-AB1234CD -c

or just (when all the usbserial devices are Watts Up! meters)

$ ./wattsup.py -c

Fetch the saved data from the internal memory :

$ ./wattsup.py -p /dev/tty.usbserial-AB1234CD -f

or just (when all the usbserial devices are Watts Up! meters)

$ ./wattsup.py -f

Linux

The user has to be a member of dialout group in order to access /dev/ttyUSBx. To add the user account to the dialout group,

# adduser myuser dialout

or

$ sudo adduser myuser dialout

Everything else is the same as Mac OS X.

About

Watts Up? Pro/.Net meter logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages