API for the Attys DAQ box (www.attys.tech)
Project description
Attys is a lightweight bluetooth DAQ box which can measure anything from temperature to ECG.
Required packages under Linux
For Ubuntu Linux install libbluetooth-dev:
sudo apt-get install libbluetooth-dev
For other Linux flavours install them from souce:
Quick start guide
Here are the basic steps how to use the API:
# load the module import pyattyscomm # Gets the AttysScan class which scans for Attys via bluetooth s = pyattyscomm.AttysScan() # Scan for Attys s.scan() # get the 1st Attys c = s.getAttysComm(0) # if an attys has been found c points to it. Otherwise it's None. # Start data acquisition in the background c.start() # Now we just read data at our convenience in a loop or timer or thread # if data is available you can read it from the ringBuffer while (not c.hasSampleAvilabale()): # do something else or nothing # getting a sample (array of all Attys channels) sample = c.getSampleFromBuffer() # do something with the sample print(sample) # rinse and repeat!
API documentation
Query it via the python help system:
import pyattyscomm help(pyattyscomm.AttysScan) help(pyattyscomm.AttysComm)
The Python classes have been generated with SWIG. The header files AttysComm.h and AttysScan.h provide detailed info about the classes:
Demos
On github are two python examples which print the ADC data to the screen and plots it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyattyscomm-2.0.8.0.tar.gz
(24.9 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.8.0-py3.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b356db1ce6545ca3c3c9393e5f4d4fa8c798cbb5774ee0e00f1a94d4abc3b23 |
|
MD5 | a88937e4deac28873e3c8c72a5996e44 |
|
BLAKE2b-256 | ff08a4a7bda1c9f8fbbb45b7830028d1e2c8b232265193d20d141a0eca56e3b9 |
Close
Hashes for pyattyscomm-2.0.8.0-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77a7d8ab87a7814c1c5f2fdcad67ef443ddbc35be7e66fd280e64165148b7fe9 |
|
MD5 | d4ae3a3a79fef6f6144760e78eb251c8 |
|
BLAKE2b-256 | 84b5fe1a62d09bdb1164a353fd0aee190a1f2792cc49519aa4e315146a9850dd |
Close
Hashes for pyattyscomm-2.0.8.0-py3.6-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6339db16136688a5f61573324fdea8eaa0a9d20fc935a1f2e56b50b0bb23bc12 |
|
MD5 | b9f397945b4d79ccd739a51aacf8df80 |
|
BLAKE2b-256 | 620c3e17492c3532514aa3b48e70fce11da5fce2fdfadf7f464ef7298447935d |
Close
Hashes for pyattyscomm-2.0.8.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d7414731b4f3e9c3089599dcfdcd6d10f153be0d6780f3b21fd578a0fb2e30f |
|
MD5 | 1d9ee13cae68c593ffdeb3c4f0a3b4fd |
|
BLAKE2b-256 | 42c8a2bd8d639485eb36f7d5cbb6d3a29b20e351828c396dfabf4baa94379e24 |
Close
Hashes for pyattyscomm-2.0.8.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ea9a2412d3b7c500a3e3d04f220fc7e1e3fe72c1b504ae51f6159dbf300b1a |
|
MD5 | 04f1271f140f67b115d6f89bb113c89a |
|
BLAKE2b-256 | 21ddfd6525621a9355aeaacd39182be05be6233664257739c9b49dfc15aeefed |