Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move pyserial requirement to a requirements.txt file #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -11,13 +11,15 @@ Usage

### Linux

pip install -r requirements.txt
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.

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


1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyserial
8 changes: 2 additions & 6 deletions wattsup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#!/usr/bin/env python3

import serial

import sys
try:
import serial
except ImportError:
print('Need serial package.')
print('sudo port install py-serial')
sys.exit(1)
import os
import datetime, time
import argparse