From f91341b2055ecaa703b1a9ebb0579655a13f8a96 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 11 Feb 2022 23:23:29 +0000 Subject: [PATCH] Add new properties to the OTLocation interface --- src/index.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index 20ac94d..9d0183b 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -136,6 +136,8 @@ interface OTLocation { * - `"m"` = mobile data */ conn?: string; + /** identifies the time at which the message is constructed (vs. `tst` which is the timestamp of the GPS fix) */ + created_at?: string; /** Device name */ device?: Device; /** Timestamp in a readable format */ @@ -147,8 +149,10 @@ interface OTLocation { * https://en.wikipedia.org/wiki/Geohash */ ghash?: string; - /** Regions the device is currently in (e.g. `["Home", "Garage"]`). Might be empty. */ + /** contains a list of regions the device is currently in (e.g. ["Home","Garage"]). Might be empty. */ inregions?: string[]; + /** contains a list of region IDs the device is currently in (e.g. ["6da9cf","3defa7"]). Might be empty. */ + inrids?: string[]; /** * No idea; some kind of timestamp as well - figure it out yourself. :) * https://github.com/owntracks/recorder/blob/df009f791a845012e9cce24923e6203a079ca1ed/storage.c#L659 @@ -190,6 +194,10 @@ interface OTLocation { vac?: number; /** Velocity in km/h */ vel?: number; + /** SSID, if available, is the unique name of the WLAN. */ + SSID?: string; + /** BSSID, if available, identifies the access point. */ + BSSID?: string; } /** URL query parameters (prior to any parsing so it's all strings). */