Migrate phone bluetooth sensor to new data stream

pull/128/head
Meng Li 2021-03-09 22:55:21 -05:00 committed by JulioV
parent 6d06d2b1eb
commit 0e96f39599
4 changed files with 54 additions and 0 deletions

View File

@ -192,6 +192,30 @@ Stream columns named `FLAG_TO_MUTATE` means they are extracted based on the `MUT
Same as ANDROID
??? info "PHONE_BLUETOOTH"
=== "ANDROID"
**RAPIDS_COLUMN_MAPPINGS**
| RAPIDS column | Stream column |
|----------------------|---------------------|
| TIMESTAMP | timestamp |
| DEVICE_ID | device_id |
| BT_ADDRESS | bt_address |
| BT_NAME | bt_name |
| BT_RSSI | bt_rssi |
**MUTATION**
- **COLUMN_MAPPINGS** (None)
- **SCRIPTS** (None)
=== "IOS"
This sensor is not supported by iOS devices.
??? info "PHONE_CONVERSATION"
=== "ANDROID"

View File

@ -46,6 +46,17 @@ This is a description of the format RAPIDS needs to process data for the followi
| BATTERY_SCALE | An integer that denotes the maximum battery level |
??? info "PHONE_BLUETOOTH"
| RAPIDS column | Description |
|--------------------|---------------------------------------------------------------------------|
| TIMESTAMP | An UNIX timestamp (13 digits) when a row of data was logged |
| DEVICE_ID | A string that uniquely identifies a device |
| BT_ADDRESS | MAC address of the devices Bluetooth sensor |
| BT_NAME | User assigned name of the devices Bluetooth sensor |
| BT_RSSI | The RSSI dB to the scanned device |
??? info "PHONE_CONVERSATION"
| RAPIDS column | Description |

View File

@ -81,6 +81,18 @@ PHONE_BATTERY:
SCRIPTS:
- "src/data/streams/mutations/phone/aware/battery_ios_unification.R"
PHONE_BLUETOOTH:
ANDROID:
RAPIDS_COLUMN_MAPPINGS:
TIMESTAMP: timestamp
DEVICE_ID: device_id
BT_ADDRESS: bt_address
BT_NAME: bt_name
BT_RSSI: bt_rssi
MUTATION:
COLUMN_MAPPINGS:
SCRIPTS: # List any python or r scripts that mutate your raw data
PHONE_CONVERSATION:
ANDROID:
RAPIDS_COLUMN_MAPPINGS:

View File

@ -26,6 +26,13 @@ PHONE_BATTERY:
- BATTERY_LEVEL
- BATTERY_SCALE
PHONE_BLUETOOTH:
- TIMESTAMP
- DEVICE_ID
- BT_ADDRESS
- BT_NAME
- BT_RSSI
PHONE_CONVERSATION:
- TIMESTAMP
- DEVICE_ID