From 13290cd444a7ddac6201b7c957a30723314a340c Mon Sep 17 00:00:00 2001 From: Meng Li <34143965+Meng6@users.noreply.github.com> Date: Wed, 10 Mar 2021 00:53:07 -0500 Subject: [PATCH] Migrate phone wifi visible sensor to new data stream --- docs/datastreams/aware-mysql.md | 27 ++++++++++++++++++++++ docs/datastreams/mandatory-phone-format.md | 13 +++++++++++ src/data/streams/aware_mysql/format.yaml | 14 +++++++++++ src/data/streams/rapids_columns.yaml | 8 +++++++ 4 files changed, 62 insertions(+) diff --git a/docs/datastreams/aware-mysql.md b/docs/datastreams/aware-mysql.md index fa84a56f..f36dfd69 100644 --- a/docs/datastreams/aware-mysql.md +++ b/docs/datastreams/aware-mysql.md @@ -489,3 +489,30 @@ Stream columns named `FLAG_TO_MUTATE` means they are extracted based on the `MUT === "IOS" Same as ANDROID + + +??? info "PHONE_WIFI_VISIBLE" + + === "ANDROID" + + **RAPIDS_COLUMN_MAPPINGS** + + | RAPIDS column | Stream column | + |----------------------|---------------------| + | TIMESTAMP | timestamp | + | DEVICE_ID | device_id | + | SSID | ssid | + | BSSID | bssid | + | SECURITY | security | + | FREQUENCY | frequency | + | RSSI | rssi | + + **MUTATION** + + - **COLUMN_MAPPINGS** (None) + - **SCRIPTS** (None) + + === "IOS" + + This sensor is not supported by iOS devices. + diff --git a/docs/datastreams/mandatory-phone-format.md b/docs/datastreams/mandatory-phone-format.md index ff2763d2..2d0c79a7 100644 --- a/docs/datastreams/mandatory-phone-format.md +++ b/docs/datastreams/mandatory-phone-format.md @@ -134,3 +134,16 @@ This is a description of the format RAPIDS needs to process data for the followi | SSID | Currently connected access point network name | | BSSID | Currently connected access point MAC address | + +??? info "PHONE_WIFI_VISIBLE" + + | 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 | + | SSID | Detected access point network name | + | BSSID | Detected access point MAC address | + | SECURITY | Active security protocols | + | FREQUENCY | Wi-Fi band frequency (e.g., 2427, 5180), in Hz | + | RSSI | RSSI dB to the scanned device | + diff --git a/src/data/streams/aware_mysql/format.yaml b/src/data/streams/aware_mysql/format.yaml index 90458dc7..c7ac2e81 100644 --- a/src/data/streams/aware_mysql/format.yaml +++ b/src/data/streams/aware_mysql/format.yaml @@ -236,3 +236,17 @@ PHONE_WIFI_CONNECTED: COLUMN_MAPPINGS: SCRIPTS: # List any python or r scripts that mutate your raw data +PHONE_WIFI_VISIBLE: + ANDROID: + RAPIDS_COLUMN_MAPPINGS: + TIMESTAMP: timestamp + DEVICE_ID: device_id + SSID: ssid + BSSID: bssid + SECURITY: security + FREQUENCY: frequency + RSSI: rssi + MUTATION: + COLUMN_MAPPINGS: + SCRIPTS: # List any python or r scripts that mutate your raw data + diff --git a/src/data/streams/rapids_columns.yaml b/src/data/streams/rapids_columns.yaml index 47dc39ba..b3bfc45e 100644 --- a/src/data/streams/rapids_columns.yaml +++ b/src/data/streams/rapids_columns.yaml @@ -83,6 +83,14 @@ PHONE_WIFI_CONNECTED: - SSID - BSSID +PHONE_WIFI_VISIBLE: + - TIMESTAMP + - DEVICE_ID + - SSID + - BSSID + - SECURITY + - FREQUENCY + - RSSI FITBIT_STEPS_SUMMARY: - TIMESTAMP