https://github.com/lab11/watts-up
Code to interface with the Watts up? .net
https://github.com/lab11/watts-up
Last synced: about 1 year ago
JSON representation
Code to interface with the Watts up? .net
- Host: GitHub
- URL: https://github.com/lab11/watts-up
- Owner: lab11
- Created: 2013-09-12T02:07:31.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-12-29T03:27:45.000Z (over 2 years ago)
- Last Synced: 2024-04-14T04:45:09.953Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 9
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.