RADAR-base/radar-android-application-status

Name: radar-android-application-status

Owner: RADAR-CNS

Owner: RADAR-CNS

Description: Application statistics plugin for RADAR passive remote monitoring app

Created: 2017-03-23 14:12:19.0

Updated: 2017-10-09 14:28:20.0

Pushed: 2018-02-05 16:14:00.0

Homepage: null

Size: 2311

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Application status plugin for RADAR-pRMT

Build Status

Plugin that sends application statuses about the RADAR pRMT app.

Installation

First, add the plugin code to your application:

sitories {
maven { url  'http://dl.bintray.com/radar-cns/org.radarcns' }


ndencies {
compile 'org.radarcns:radar-android-application-status:0.2.2'

Set the ntp_server property in the configuration settings to synchronize with an external NTP server. Set the application_status_update_rate (in seconds) to change the frequency of messages sent.

Configuration

This plugin takes the following Firebase configuration parameters:

| Name | Type | Default | Description | | —- | —- | ——- | ———– | | ntp_server | string | <empty> | NTP server to synchronize time with. If empty, time is not synchronized and the application_external_time topic will not receive data. | | application_status_update_rate | int (seconds) | 300 = 5 minutes | Rate at which to send data for all application topics. | | application_send_ip | boolean | false | Whether to send the device IP address with the server status. |

This plugin produces data for the following topics:

| Topic | Type | Description | | —– | —- | ———– | | application_external_time | org.radarcns.monitor.ApplicationExternalTime | External NTP time. Requires ntp_server parameter to be set. | | application_record_counts | org.radarcns.monitor.ApplicationRecordCounts | Number of records sent and in queue. | | application_uptime | org.radarcns.monitor.ApplicationUptime | Time since the device booted. | | application_server_status | org.radarcns.monitor.ApplicationServerStatus | Server connection status. |

Contributing

Code should be formatted using the Google Java Code Style Guide, except using 4 spaces as indentation. Make a pull request once the code is working.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.