databot Python Library
Project description
databot-py
A simple bluetooth interface for databot sensors
Install
TBD Add instructions here to describe how to install the package into a project
e.g.
pip install databot-py
Run Locally
Install Local Requirements
Recommended steps to install locally
pip install pip-tools
orpython -m pip install pip-tools
pip-compile --resolver=backtracking
pip-sync
Examples
Locate the Databot BlueTooth address
With the databot turned on, run the file:
examples/databot_discovery.py
If the Databot BLE device address can be found it will be printed in the terminal. You will need this address when configuring the PyDatabot instance.
Specifically in the examples.
Simple Databot interfacing to print data values
This example will show you how to connect to the databot
and display the selected data values.
Custom Databot consumer
The PyDatabot class performs all of the necessary steps to interface with the databot and collect data from the databot. However, the PyDatabot class does not do anything with the collected data excepti to print it.
For any custom processing of the databot data, a custom databot consumer is needed.
For an example and test of how to do this see:
examples/pydatabot_custom_consumer.py
Save databot data to file
This example shows how to write the collected values to a file for later processing
examples/pydatabot_save_data_to_file.py
View Ambient Light Sensor Values
This example shows how to read ambient light sensor values. Start the example and then cover the sensor with your hand.
Notice the light level values goes down.
examples/pydatabot_light_level_example.py
Breath Detector
This example shows how to read co2 level. Start the example and then breath on the databot. Watch the co2 values go up.
examples/pydatabot_light_level_example.py
Project details
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
Hashes for databot_py-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 640f84cdbccef483634ce9f1a5472985d77fbd6270822a590c18f14dce29f89b |
|
MD5 | 9e1f068fdeec9eaac1384de940230e11 |
|
BLAKE2b-256 | b689a1c54ad197b19be203d01b19711263a98d398ad7b7fcb54a8c30820973be |