All Projects → SensingKit → SensingKit-Android

SensingKit / SensingKit-Android

Licence: LGPL-3.0 license
An Android framework that provides Mobile Sensing functionality to your apps.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SensingKit-Android

dana
DANA: Dimension-Adaptive Neural Architecture (UbiComp'21)( ACM IMWUT)
Stars: ✭ 28 (-66.27%)
Mutual labels:  sensor, sensor-data
msda
Library for multi-dimensional, multi-sensor, uni/multivariate time series data analysis, unsupervised feature selection, unsupervised deep anomaly detection, and prototype of explainable AI for anomaly detector
Stars: ✭ 80 (-3.61%)
Mutual labels:  sensor, sensor-data
ha-iaquk
Indoor Air Quality Sensor Component for Home Assistant
Stars: ✭ 57 (-31.33%)
Mutual labels:  sensor
goodbye-mihome
Web UI and plugins to manage Xiaomi MiHome gateway, sensors and smart devices.
Stars: ✭ 92 (+10.84%)
Mutual labels:  sensor
ventilator
Open source turbine based medical ventilator developed by CRUX (www.cruxbd.com)
Stars: ✭ 21 (-74.7%)
Mutual labels:  sensor
Compass
Compass on Android
Stars: ✭ 47 (-43.37%)
Mutual labels:  sensor
ant-plus
A node module for ANT+
Stars: ✭ 118 (+42.17%)
Mutual labels:  sensor
ha-multiscrape
Home Assistant custom component for scraping (html, xml or json) multiple values (from a single HTTP request) with a separate sensor/attribute for each value. Support for (login) form-submit functionality.
Stars: ✭ 103 (+24.1%)
Mutual labels:  sensor
embedded-sps
Embedded i2c Driver for Sensirion Particulate Matter Sensors - Download the Zip Package from the Release Page
Stars: ✭ 36 (-56.63%)
Mutual labels:  sensor
ACS712
Arduino library for ACS Current Sensor - 5A, 20A, 30A
Stars: ✭ 41 (-50.6%)
Mutual labels:  sensor
vl53l0x-linux
Library for interfacing with VL53L0X time-of-flight distance sensor under Linux
Stars: ✭ 19 (-77.11%)
Mutual labels:  sensor
pysensors
PySensors is a Python package for sparse sensor placement
Stars: ✭ 47 (-43.37%)
Mutual labels:  sensor
homebridge-airrohr
HomeBridge module for the DIY luftdaten.info particulates sensor. See http://luftdaten.info how to build your own
Stars: ✭ 48 (-42.17%)
Mutual labels:  sensor
OpenLibreNFC
An app to modify and read memory in the Libre blood glucose monitor.
Stars: ✭ 45 (-45.78%)
Mutual labels:  sensor
pymetawear
Community developed SDK around the Python bindings for the C++ SDK
Stars: ✭ 42 (-49.4%)
Mutual labels:  sensor
envsensor-observer-py
Python Bluetooth low energy observer example for OMRON Environment Sensor (2JCIE-BL01)
Stars: ✭ 31 (-62.65%)
Mutual labels:  sensor
MH-Z-CO2-Sensors
Arduino imeplementation for CO2 sensors of the MH-Z series (Intelligent Infrared CO2 Module)
Stars: ✭ 59 (-28.92%)
Mutual labels:  sensor
imu ekf
6-axis(3-axis acceleration sensor+3-axis gyro sensor) IMU fusion with Extended Kalman Filter.
Stars: ✭ 56 (-32.53%)
Mutual labels:  sensor
ha-gismeteo
Gismeteo Weather Provider for Home Assistant
Stars: ✭ 84 (+1.2%)
Mutual labels:  sensor
falcon-helm
Helm Charts for running CrowdStrike Falcon with Kubernetes
Stars: ✭ 34 (-59.04%)
Mutual labels:  sensor

SensingKit-Android Library

An Android library that provides Continuous Sensing functionality to your applications. For more information, please refer to the project website.

Supported Sensors

The following sensor modules are currently supported in SensingKit-Android, (listed in SKSensorModuleType enum):

  • Accelerometer
  • Gravity
  • Linear Acceleration
  • Gyroscope
  • Rotation
  • Magnetometer
  • Ambient Temperature
  • Step Detector
  • Step Counter
  • Light
  • Location
  • Activity
  • Battery
  • Screen Status
  • Audio Recorder
  • Audio Level
  • Bluetooth

Configuring the Library

  • Build the library using the command:
./gradlew build
  • Create an app/libs directory inside your project and copy the generated SensingKitLib/build/outputs/aar/SensingKitLib-release.aar (or the equivalent debug) file there.

  • Edit your app/build.gradle file and add a flatDir entry as shown bellow:

repositories {
    mavenCentral()
    flatDir {
        dirs 'libs'
    }
}
  • In the same app/build.gradle file, add SensingKitLib as a dependency as shown below:
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'org.sensingkit:SensingKitLib-release@aar'
    compile 'com.android.support:appcompat-v7:22.2.1’
    compile 'com.google.android.gms:play-services-location:7.5.0'
}

How to Use this Library

  • Import and init SensingKit into your Activity class as shown bellow:
import org.sensingkit.sensingkitlib.SensingKitLib;

SensingKitLibInterface mSensingKitLib = SensingKitLib.getSensingKitLib(this);
  • Register a sensor module (e.g. a Light sensor) as shown bellow:
mSensingKitLib.registerSensorModule(SKSensorModuleType.LIGHT);
  • Subscribe a sensor data listener:
mSensingKitLib.subscribeSensorDataListener(SKSensorModuleType.LIGHT, new SKSensorDataListener() {
    @Override
    public void onDataReceived(final SKSensorModuleType moduleType, final SKSensorData sensorData) {
        System.out.println(sensorData.getDataInCSV());  // Print data in CSV format
    }
});
  • You can cast the data object into the actual sensor data object in order to access all the sensor data properties:
SKLightData lightData = (SKLightData)sensorData;
  • You can Start and Stop the Continuous Sensing using the following commands:
mSensingKitLib.startContinuousSensingWithSensor(SKSensorModuleType.LIGHT);
mSensingKitLib.stopContinuousSensingWithSensor(SKSensorModuleType.LIGHT);

For a complete description of our API, please refer to the project website.

License

Copyright (c) 2014. Queen Mary University of London
Kleomenis Katevas, [email protected].

This file is part of SensingKit-Android library.
For more information, please visit http://www.sensingkit.org.

SensingKit-Android is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SensingKit-Android is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with SensingKit-Android.  If not, see <http://www.gnu.org/licenses/>.

This library is available under the GNU Lesser General Public License 3.0, allowing to use the library in your applications.

If you want to help with the open source project, contact [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].