Skip to main content

Sensry Kallisto API package

Project description

KallistoAPI Python Library

KallistoAPI is a Python library for interacting with Kallisto sensor nodes over BLE (Bluetooth Low Energy). It provides easy access to device information, time synchronization, and readings from a wide range of environmental and motion sensors.

This library is designed for developers and researchers who want to integrate Kallisto sensor data into Python applications with minimal setup.

Features

  • Connect to Kallisto sensor nodes via BLE
  • Read and update device time
  • Access a variety of sensor modules including temperature, humidity, accelerometer, gyrometer, light, pressure, gas sensors, and more

Installation

pip install kallistoapi

Quick Start

Here’s a simple example showing how to connect to a Kallisto device, and get the accelerometer values:

from time import sleep
from kallistoapi.kallisto_manager import KallistoManager

def handle_accel(sender, data_array):
    value_list = accelerometer0.decode(data_array)
    print("handle_accel value_list {}".format(value_list))
    
mac_address = "11:22:33:44:55:66"
kallisto = KallistoManager()

if not kallisto.connect(mac_address):
    print("Failed to connect to Kallisto")
    exit(1)

accelerometer0 = kallisto.get_module("accelerometer", 0)
accelerometer0.configure("enable", True)
accelerometer0.configure("sample_rate", "200Hz")
accelerometer0.configure("sensitivity", "8g")
accelerometer0.apply_config()

accelerometer0.start_notify(handle_accel)
sleep(20)
accelerometer0.stop_notify()

kallisto.disconnect()

Available Sensor Modules

Kallisto currently supports the following sensor modules:

Motion & Orientation (IMU)

  • vibration
  • magnetometer
  • accelerometer
  • gyrometer

Environmental / Air Quality

  • temperature
  • light
  • pressure
  • humidity
  • eco2
  • bvoc
  • iaq

ADC Sensors

  • pt100

Device & Power

  • fuel_gauge
  • tx_power
  • device_info

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

kallistoapi-2.0.2.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kallistoapi-2.0.2-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file kallistoapi-2.0.2.tar.gz.

File metadata

  • Download URL: kallistoapi-2.0.2.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for kallistoapi-2.0.2.tar.gz
Algorithm Hash digest
SHA256 281bd2fa48ea6763816fe77098234bce77c227131df7427b8864ea1944370666
MD5 b457acbe757fed34d2fafe18efa2ad64
BLAKE2b-256 34cbc6410e55699294ab5be1459d2e68bd71001a4406d14f955baffab349ce0b

See more details on using hashes here.

File details

Details for the file kallistoapi-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: kallistoapi-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for kallistoapi-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 70d730c9fb725ac2a927b5879e90b735cd39518a864b2b36eb279f98fe0ab361
MD5 9b900ebd21cb6f4bd8fbf329546e3c7d
BLAKE2b-256 4c1062d6611f7b290f4b51d7d96faf145cff0512be3d33373a051e3507920958

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page