Need help with loophole?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

rsc-dev
138 Stars 18 Forks MIT License 69 Commits 4 Opened issues

Description

Polar devices Python API and CLI.

Services available

!
?

Need anything else?

Contributors list

# 423,121
Python
Reverse...
38 commits
# 76,938
Django
seo-opt...
python3
Shell
4 commits
# 155,886
Python
rtl-sdr
C
Shell
3 commits
# 728,724
Python
Reverse...
1 commit
# 3,203
imagema...
sass-fr...
splash
pipelin...
1 commit
# 196,174
Shell
webmail
CSS
js
1 commit
# 62,711
C
Perl
smartca...
rhel
1 commit

loophole - Polar devices API

PyPI Join the chat at https://gitter.im/rsc-dev/loophole

About

Python API for Polar devices. Command line interface included.

Tested with: * A360 * Loop * M400

Installation

pip install loophole

or

sh
python setup.py install

Usage

CLI

Invoke CLI:

bash
python __main__.py

Type '?' or 'help' to see available commands. ```python | _| _| _| _|| || ||| _||| _|| | _|| | _| _| _| _| _| _| _| _| _| _| _| _|||| | _| _| _| _| _| _| _| _| _| _| _| _| _| _|| || ||| _| _| _|| | _||_| _| _| ver. 0.3

loophole(no device)>?

Documented commands (type help ):

connect disconnect exit help info list walk ```

| Command | Description | | --- | --- | | connect <dev_no> | Connect Polar device. Run 'list' to see available devices. | | disconnect | Disconnect Polar device. | | dump <dest> | Dump device memory. | | get <src> <dest>| Read file from device. | | exit | Quit. | | help | List available commands with "help" or detailed help with "help cmd". | | info | Print connected device info. | | list | List available Polar devices. | | walk [path] | Walk file system. Default path is root path (\). |

permissions

Note: You need the right permission to access the USB device. Otherwise you will get the error:

The device has no langid

e.g.: run as root via sudo:

sudo python __main__.py

Or create udev role.

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

for debian/ubuntu:

sudo apt install python-protobuf python-usb

Changelog

Here.

License

Code is released under MIT license © Radoslaw '[rsc]' Matusiak.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.