Skip to content

Commit

Permalink
Merge pull request #16 from ortylp/update_readme
Browse files Browse the repository at this point in the history
update README with installation hints
  • Loading branch information
rsc-dev authored Oct 29, 2018
2 parents c37fdb8 + 53397b3 commit 38fd922
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,26 @@ sudo python __main__.py

Or create udev role.

```bash
cat - > /etc/udev/rules.d/40-Polar_A360.rules << EOF
#Polar A360 permissions granted to users group
SUBSYSTEM=="usb", ATTRS{idProduct}=="0008", ATTRS{idVendor}=="0da4", MODE="0660", GROUP="plugdev"
SUBSYSTEMS=="usb-serial", MODE="0660", GROUP="plugdev"
EOF

udevadm control --reload-rules && udevadm trigger
```

### Dependencies
* [protobuf](https://pypi.python.org/pypi/protobuf/3.0.0b2)
* [pywinusb](https://pypi.python.org/pypi/pywinusb/) (Windows)
* [pyusb] (https://github.com/walac/pyusb) (Linux, > 1.0.0rc1)

#### for debian/ubuntu:
```bash
sudo apt install python-protobuf python-usb
```

## Changelog
[Here](https://github.com/rsc-dev/loophole/blob/master/CHANGELOG.md).

Expand Down
5 changes: 5 additions & 0 deletions loophole/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def do_exit(self, _):
sys.exit(0)
# end-of-method do_exit

def do_EOF(self, _):
"""Quit. handles EOF"""
self.do_exit(_)
# end-of-method do_EOF

def do_list(self, _):
"""List available Polar devices.
Usage: list
Expand Down

0 comments on commit 38fd922

Please sign in to comment.