https://github.com/kipe/ruuvitag
A simple and clean Python library for RuuviTag
https://github.com/kipe/ruuvitag
Last synced: 9 months ago
JSON representation
A simple and clean Python library for RuuviTag
- Host: GitHub
- URL: https://github.com/kipe/ruuvitag
- Owner: kipe
- License: mit
- Created: 2019-01-25T16:06:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T18:15:14.000Z (over 2 years ago)
- Last Synced: 2024-03-06T19:45:43.633Z (over 2 years ago)
- Language: Python
- Size: 26.4 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RuuviTag
> A simple and clean Python library for [RuuviTag](https://ruuvi.com/ruuvitag-specs/)
## Installation
As the library is based on [bluepy](https://github.com/IanHarvey/bluepy),
compilation of `bluepy-helper` is required. This requires `glib2` development
packages.
On Debian-based systems the installation goes a bit like:
```sh
sudo apt-get install libglib2.0-dev
pip install git+https://github.com/kipe/ruuvitag.git
```
## Usage
For basic usage, you can just run `RuuviTag.scan()` in a loop, like this:
```python
from ruuvitag import RuuviTag
while True:
for tag in RuuviTag.scan():
print(tag)
```
For more complicated examples including threading, and motion detection,
see `examples` directory.