Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st. We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here. Need help or have questions? Drop us a line at [email protected]
Created on 03-19-201704:37 PM - edited 08-17-201901:44 PM
Phone Tracking with OwnTracks and Apache NiFi 1.x
OwnTracks is an Open Source project which provides an iOS and an Android app with which your smartphone records its current location.
I installed the OwnTracks application for iOS and it let's you specify your own REST JSON server to receive calls. I added Apache NiFi. It can also send via MQTT direct to mosquittio on prem to NIFI or to CloudMQTT. You just need to enter your Apache NiFi address and port.
Tell NiFi to listen for HTTP on port 9179 for the phone push, allow it to use GET, POST and PUT. No coding required.
Respond to the phone with HTTP Status Code 200 and use the context map to connect the HTTP flow.
We pull out the attributes from the JSON Flow File.