forked from alexbartisro/iLocatorBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.ini
81 lines (72 loc) · 3.36 KB
/
configuration.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[iCloud]
#iCloud username
Username : [email protected]
#iCloud Password
Password : password
# start iLocator --list-devices to retrieve list of registered ID's
# you can supply multiple Devices .. just start with DeviceID
DeviceID1 : a deviceID
#(Optional) a second device may be provided, to be used for additional geofences
DeviceID2 : another deviceID
# you can have multiple geo fences .. just start the section with Geofence
[GeofenceHome]
Latitude : home latitude
Longitude : home longitude
#Radius for the geofence.
GeofenceRadius : 100
# for which device to check .. if this is not supplied the first device will be checked
Device: DeviceID1
#Dynamic polling map. A comma-seperated key-value pair in the format dist=interval, shortest distance first.
#Ex: 100=300,1000=10,1001=60 (within 100 ft poll @ 300 sec, else within 1000ft poll @ 10 sec, else poll at 60 sec)
#Ex2: 200=300, 201=60 (If you wanted to poll at 300 seconds while inside geofence, but 60 seconds outside of fence (assuming fence is set to 200 ft)).
#Ex3 0=60 (if you always want to poll at 60 seconds)
PollingMap: 100=300,1000=10,1001=60
#OpenHAB item (usually a switch) to hold the presence value (ON = inside geofence, OFF = outside geofence...
OHItem_Presence: UserPresenceHome
#OpenHAB item to hold the current distance from this POI
OHItem_Distance: UserPresenceHomeDistance
#example of second geo fence...
[GeofenceWork]
Latitude : work latitude
Longitude : work longitude
GeofenceRadius : 100
Device: DeviceID2
PollingMap: 100=300,1000=10,1001=60
OHItem_Presence: UserPresenceWork
OHItem_Distance: UserPresenceWorkDistance
[OpenHab]
#Server Address
OHServer : http://192.168.0.1:8080
#OH User with which to connect
OHUsername : openhab username
#OH Password
OHPassword : openhab password
#Default interval for when a retry needs to occur (i.e. iCloud was unable to return your location during a poll)
RetryInterval : 30
#Number of times to retry before restarting script
RetriesBeforeRestart : 3
# Enter your preferred unit of distance using m, km, ft, mi or nm
# for meters, kilometers, feet, miles or nautical miles
DistanceUnit : ft
#(Optional) An OpenHAB item to hold the current polling rate
OHItem_PollingRate : UserPresencePollRate
#(Optional) An OpenHAB item to hold the time that represents when the next poll will occur
OHItem_NextPollTime : UserPresenceNextPollTime
#(Optional) An OpenHAB item to hold the error message if failed to get device coordinates. Will display "Active" if no errors
OHItem_Status : UserPresenceStatus
#(Optional)
#The following LocationItems section(s) allow you to define OpenHAB items that will hold the
#location coordinates and location accuracy of the Devices defined in the first [iCloud] section. Create
#one LocationItems section per device and begin the section with the name "LocationItems".
[LocationItems1]
#The device associated with these location items...
Device : DeviceID1
#The OH item that will hold the device coordinates when the above "Device" is polled against a geoFence...
OHItem_Coordinates : UserPresenceCoordinates
#The OH item that will hold the horizontal accuracy of the coordinates returned by the poll (returned in 'DistanceUnit' unit defined in [OpenHAB] section...
OHItem_Accuracy : UserPresenceAccuracy
#example of second LocationItems section...
[LocationItems2]
Device : DeviceID2
OHItem_Coordinates : UserPresenceCoordinates2
OHItem_Accuracy : UserPresenceAccuracy2