Skip to content

Android (Java) sample application that shows how to store device sensor information to InfluxDB Cloud and query it.

License

Notifications You must be signed in to change notification settings

InfluxCommunity/SensorLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android (Java) Demo App using InfluxDB for storing and quering sensor data

This Android Java app is used to store sensor data from accelerometer and gyroscope of the smartphone in X, Y, Z axis at regular time intervals into an InfluxDB Serverless database bucket.

  1. InfluxDB Java SDK
  2. MPAndroid Charts library for Data Visualization

Build & Run

  1. Download/Clone this project
  2. Build the project using Android Studio or Android CLI and Run the app onto an Android smartphone (preferred) or emulator
  3. Tilt and rotate the phone up/down and left and right direction to capture sensor readings.
  4. Open Settings in the "Menu" and provide your InfluxDB account information that you can find in the portal
  5. Hit "Save" and "Start Logging" to log the data
  6. Open 'View Data' to see the graph visualization of the past few minutes of the data that was stored and quried from your InfluxDB.
  7. Optionally navigate to your InfluxDB dashboard and query to see the smartphone sensor data that was just stored.

About

Android (Java) sample application that shows how to store device sensor information to InfluxDB Cloud and query it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages