Skip to content

Commit ddbdc6c

Browse files
committed
cleaner folder structure
1 parent 5cb3f57 commit ddbdc6c

30 files changed

+87
-7
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
packetdiag {
2-
colwidth=8
3-
0-41: unknown
4-
42-53: Time Active
5-
54-61: Reservoir Level
6-
62-79: unknown
7-
}
1+
packetdiag {
2+
colwidth=8
3+
0-41: unknown
4+
42-53: Time Active
5+
54-61: Reservoir Level
6+
62-79: unknown
7+
}
File renamed without changes.

rfcatomni/.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
before_install:
5+
- pip install pytest pytest-cov
6+
script:
7+
- py.test

rfcatomni/README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## What you'll need
2+
3+
One of the following. If you use the TI stick, you will need to flash firmware onto it using a CC-Debugger.
4+
5+
* [RFCat](http://int3.cc/products/rfcat)
6+
* [TI USB Stick](http://www.ti.com/tool/cc1111emk868-915)
7+
8+
## Installation
9+
10+
Prerequisites:
11+
* python 2.7 (already installed on MacOS, for windows, download it [here](https://www.python.org/downloads/release/python-2714/))
12+
* [pip](https://pip.readthedocs.io/en/stable/installing/)
13+
* On mac, you'll need libusb. `brew install libusb` (If you don't have Homebrew installed, go here first: https://brew.sh/)
14+
15+
You can install openomni in editable mode like this:
16+
```
17+
git clone https://github.com/openaps/openomni.git
18+
cd openomni/openomni
19+
pip install -e . --process-dependency-links
20+
```
21+
** Note: You may need to add 'sudo' before the pip install line if you are using a system python install.
22+
23+
** Note: You can capture packets by plugging an RFCat into a USB port -- then go to the command line, and navigate to this directory:
24+
/openomni/bin/ and type:
25+
26+
omni_listen_rfcat
27+
28+
Then issue commands from your PDM and they'll appear at the command line.

rfcatomni/__init__.py

Whitespace-only changes.

rfcatomni/_version.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

rfcatomni/requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
crccheck
2+
python-dateutil
3+
pyusb
4+
git+https://github.com/atlas0fd00m/rfcat
5+
enum34>=1.1.6 ; python_version <= '2.7'

rfcatomni/setup.py

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
from setuptools import setup, find_packages
2+
3+
import re
4+
VERSIONFILE = "_version.py"
5+
verstrline = open(VERSIONFILE, "rt").read()
6+
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
7+
mo = re.search(VSRE, verstrline, re.M)
8+
if mo:
9+
verstr = mo.group(1)
10+
else:
11+
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
12+
13+
setup(name='openomni',
14+
version=verstr,
15+
description='Omnipod Packet Decoding Library',
16+
url='http://github.com/openaps/openomni',
17+
# See https://github.com/openaps/openomni/graphs/contributors for actual
18+
# contributors...
19+
author='Pete Schwamb',
20+
author_email='[email protected]',
21+
scripts=[
22+
'bin/decode_omni',
23+
'bin/omni_listen_rfcat',
24+
'bin/omni_akimbo',
25+
'bin/omni_explore',
26+
'bin/omni_send_rfcat',
27+
'bin/omni_forloop'],
28+
dependency_links=[
29+
'https://github.com/atlas0fd00m/rfcat/tarball/master#egg=rfcat-1.0',
30+
],
31+
packages=find_packages(),
32+
install_requires=[
33+
'crccheck',
34+
'python-dateutil',
35+
'enum34',
36+
'pyusb',
37+
'rfcat>=1.0'
38+
],
39+
zip_safe=False)

0 commit comments

Comments
 (0)