Geofency is a free app for smart phones. I'm using it on iPhone. It provides an easy setup of a Geo Fence. It reports by HTTP protocol when you enter and when you leave the geo fence that you have setup. You can setup multiple geo fences with various custom sizes.
The report is JSON and looks like this
{
"device" : "8E901528-2A79-4D15-B61D-93A70F3836C6",
"radius" : "100",
"longitude" : "-109.125223",
"id" : "A935C11C-D4D2-4740-B537-6B50CC380B95",
"wifiSSID" : "LITMATH",
"address" : "123 Green Street, Sometown, 32456\nUnited States",
"date" : "2019-09-30T09:05:51Z",
"latitude" : "31.321499",
"entry" : "0",
"wifiBSSID" : "fc:ec:da:e6:ee:52",
"name" : "Home Office"
}
Big5 can easily receive and process any JSON including this one. All you need to do is to setup "Listening" Big5 HTTP profile. Make sure that the settings of your Big5 profile match the settings in the tab "Web hook" of the Geofency app.
I'm using only two pieces of information from the JSON The name will be used as a name for the HS3 device and the "entry" will be used as a value to the same device. 0 meaning exit (leaving) the geofence and 1 meaning entry into the geofence.
In the field "Name" in the Big5 profile I'm using
JSON(input, "name")
In the field "Value" of the Big5 profile I'm using
JSON_Num(input, "entry")
As a result a HS3 device is created/updated by Big5 as follows
Floor- Big5
Room - HTTP
Name - Home Office
If the value of "Home office" changes to 0 than it means that I just left the home office
If the value of "Home office" changes to 1 than it means that I just entered the home office.
This information can be used to trigger all kinds of HS3 events like turning on HVAC, lights, unlock doors etc.
The report is JSON and looks like this
{
"device" : "8E901528-2A79-4D15-B61D-93A70F3836C6",
"radius" : "100",
"longitude" : "-109.125223",
"id" : "A935C11C-D4D2-4740-B537-6B50CC380B95",
"wifiSSID" : "LITMATH",
"address" : "123 Green Street, Sometown, 32456\nUnited States",
"date" : "2019-09-30T09:05:51Z",
"latitude" : "31.321499",
"entry" : "0",
"wifiBSSID" : "fc:ec:da:e6:ee:52",
"name" : "Home Office"
}
Big5 can easily receive and process any JSON including this one. All you need to do is to setup "Listening" Big5 HTTP profile. Make sure that the settings of your Big5 profile match the settings in the tab "Web hook" of the Geofency app.
I'm using only two pieces of information from the JSON The name will be used as a name for the HS3 device and the "entry" will be used as a value to the same device. 0 meaning exit (leaving) the geofence and 1 meaning entry into the geofence.
In the field "Name" in the Big5 profile I'm using
JSON(input, "name")
In the field "Value" of the Big5 profile I'm using
JSON_Num(input, "entry")
As a result a HS3 device is created/updated by Big5 as follows
Floor- Big5
Room - HTTP
Name - Home Office
If the value of "Home office" changes to 0 than it means that I just left the home office
If the value of "Home office" changes to 1 than it means that I just entered the home office.
This information can be used to trigger all kinds of HS3 events like turning on HVAC, lights, unlock doors etc.
Comment