Skip to content

lab11/watts-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Watts Up? Python Interface

Code to interface with the Watts up? .net. Works over the USB cable. Allows you to view samples in a terminal, save to a logfile, or POST them using the network connection.

Usage

Linux

python wattsup.py -p /dev/ttyUSBX -i
python wattsup.py --help

Mac OS X

Install the http://www.ftdichip.com/Drivers/VCP.htm drivers. Restart.

python wattsup.py -p /dev/tty.usbserial-X -i

Configure POST

./wattsup.py -p /dev/ttyX -n myserver.com 80 /wattsup/data

Server

A simple python script that receives the HTTP request from Watts Up .net and prints out the values in JSON format.