A framework for sensor metrics
Project description
Snsary
A framework for sensor metrics.
Installation
pip3 install snsary
Getting started
Create a new file called example.py and paste:
from snsary import system
from snsary.outputs import MockOutput
from snsary.sources import MockSensor
from snsary.utils import logging
MockSensor().subscribe(MockOutput())
logging.configure_logging()
system.start_and_wait()
This is a minimal Snsary program. To run it:
python3 example.py
At this point you should see some INFO logs e.g.
2021-11-13 19:07:17,144 - INFO - [mocksensor-4382645216] Collected 1 readings.
2021-11-13 19:07:17,144 - INFO - [mockoutput-4383959840] Reading: <zero 1636830437 0>
Use Ctrl+C to quit the program.
Building an app
Snsary makes it easy to build large sensing apps:
docs/examples/contrib.py shows many of them working together.
How to deploy it
See the tutorial for how to setup and run a Snsary app as a service on a Raspberry Pi.
Contributing
See CONTRIBUTING.md.
Licence
See LICENCE.
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snsary-0.1.0.tar.gz.
File metadata
- Download URL: snsary-0.1.0.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625431d6a16f5a962ea1df6280f23dd9502712356f0078b39bc3c5678d0af38e
|
|
| MD5 |
4bf07b70f85609743cfa3e76a38b68b1
|
|
| BLAKE2b-256 |
9278e2a4f81a0d3d2934d7d5b2313b9a5ecc5a3fafe4c3c65bb7ec4385512bf1
|
File details
Details for the file snsary-0.1.0-py3-none-any.whl.
File metadata
- Download URL: snsary-0.1.0-py3-none-any.whl
- Upload date:
- Size: 43.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d545c424ebd6e1a72ef15a7a59f1fd16e971aa8679eb7cb7401174827c0f8c8
|
|
| MD5 |
6c67a5628314dcb21d7183807f854f67
|
|
| BLAKE2b-256 |
635fa2cd41244a6e3ed527403c918004cafc6901f90cf364eecc84f7762f7cb4
|