Howard Weng/ 6 十二月, 2016/ IoT, TRRAK/ 1 comments

Geofence Event

Let us look at the system map again. Now, we have 4 kinds of devices, which are 2 Arduino low end trackers, and 2 high end mobile phones, and now they are doing their job by pushing GPS location to our system.

Sometimes, we would want to see current location for device, as you can see all points on APP.

But most of the time, you just want to be notified by special event, such as I just want to be notified when kids enter and out of school, but keep me quiet for the rest of the time. And I want to let everyone knows when I am out of office, so my wife can prepare the dinner for me just in time.



That is why we need to set an invisible area on the map, we call it " GEOFENCE", then the system will judge when the device location is inside or outside of area, and then we push messages by Slack APP to all members.


Two ways to set geofence

We have two ways to set Geofence, first one is from Owntracks APP on mobile phone, it is easy to setup, but the setting is for himself only, but not for other devices. say if you have 100 devices, and you must set 100 times individually.

The biggest problem is that it is impossible to setup for low end trackers, because it does not have Owntracks APP on it, so our Arduino trackers will not work in Geofence.

So, we need another way to setup Geofence on server, then it only need one time setup, and it will work for all devices. I love Node-RED’s powerful functions, and we can do it easily. It includes a little bit javascript code, and I will explain as well, then you can customize it for your own.


Share this Post

About Howard Weng

More than 15 years of experience in electronics companies as Sales marketer and Product Manager. Currently I invest resources on open source and industry IoT system research, and provide data analytics service mainly for factory and retain business.

1 Comment

  1. Hi there, yup this article is genuinely nice and I have learned lot of things from it concerning blogging. thanks.

Leave a Comment

你的電子郵件位址並不會被公開。 必要欄位標記為 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>