API for the bluetooth Attys DAQ box (www.attys.tech)
Project description
Attys is a lightweight wearable bluetooth data acquisition box which can measure anything from temperature to ECG.
It’s cross platform and runs under Linux and Windows
It has two 24 bit analogue channels, an accelerometer and a magnetometer.
Required packages under Linux
For Ubuntu Linux install libbluetooth-dev and swig:
sudo apt-get install libbluetooth-dev swig
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) # create a datacallback class AttysCommCallback(pyattyscomm.SampleCallback): def hasSample(self,t,v): print(t,v) # so more than just printing! cb = AttysCommCallback() pyattyscomm.connectCallback(c,cb) # Start data acquisition in the background c.start() # sleep here or start a GUI # end the acqu c.quit()
API documentation
Query it via the python help system:
import pyattyscomm help(pyattyscomm)
The Python classes have been generated with SWIG. The header files AttysComm.h, AttysCommBase,h and AttysScan.h provide detailed info about the classes:
Demos
On github are python examples which show you how to plot realtime data from the Attys: https://github.com/glasgowneuro/attys-comm/tree/master/examples
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
Built Distributions
File details
Details for the file pyattyscomm-2.1.1.tar.gz
.
File metadata
- Download URL: pyattyscomm-2.1.1.tar.gz
- Upload date:
- Size: 48.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c71d7d9f7f5ede25a39802adf0bf0f8a534ddb14e373d5c1e24c81f1038c688c |
|
MD5 | e69067a2e8f020d9b4af27d1a326c24d |
|
BLAKE2b-256 | 351aa586403b039046d6c482b503a5ed7531848fee8178c861bcb758e26b46d4 |
File details
Details for the file pyattyscomm-2.1.1-py3.11-win-amd64.egg
.
File metadata
- Download URL: pyattyscomm-2.1.1-py3.11-win-amd64.egg
- Upload date:
- Size: 100.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 093d1ccf6604f564b6f499dcdf56f1e96a97fadb5e1c12e872b4908d532ec385 |
|
MD5 | e90b88d169204f45b3a9c0772bf073ef |
|
BLAKE2b-256 | 3c4ae484ea711bfa59fef3d0b589dd6795a71d95c266b2bc0a497e44387edef9 |
File details
Details for the file pyattyscomm-2.1.1-py3.10-win-amd64.egg
.
File metadata
- Download URL: pyattyscomm-2.1.1-py3.10-win-amd64.egg
- Upload date:
- Size: 106.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 721fb6d161209cf6ef6ff1e1dbd4f2c1d0f9c356db513d9fd6aa166817f253cd |
|
MD5 | 1a605044bdb0e6b8832f93288b36045e |
|
BLAKE2b-256 | db980bec689190e2e8611509e13567b2627e1c444a990b9ca20ace44e11a7cc1 |
File details
Details for the file pyattyscomm-2.1.1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: pyattyscomm-2.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 91.6 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3a7a40483ee48fcadc0ae904fea97520859f8fa140a4a2ee7a8ce0d8c8fdfc7 |
|
MD5 | 55d2c95bb01811c3962fb388b98e4038 |
|
BLAKE2b-256 | fe6c5768f34052d8f0487a28c2de29da83bc86311e132f4c6284b3b44ab590a9 |
File details
Details for the file pyattyscomm-2.1.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pyattyscomm-2.1.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 100.4 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178bc5f4dcca345d1f44e0e94315e4e84d830d954dc2bef984e843305837f7ea |
|
MD5 | 325c6963843d9594de1a7240393e90c0 |
|
BLAKE2b-256 | 454287b6a3b098dbf534d1fc298145bc7c99dbe79c57a1d4781c9f699a319521 |