- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Created on 03-19-2017 04:37 PM - edited 08-17-2019 01: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.
Store our Phone Data in Apache Phoenix on HBase
upsert into phone (uuid,battery,longitude ,accelerator ,velocity,vac ,latitude , tvalue ,connection , tst , altitude , messagetype , tid, httpremotehost, useragent, filename, datetime) values ('${'uuid'}','${'battery'}','${'longitude'}','${'accelerator'}','${'velocity'}', '${'vac'}','${'latitude'}', '${'tvalue'}','${'connection'}','${'tst'}','${'altitude'}','${'messagetype'}','${'tid'}', '${'http.remote.host'}','${'http.headers.User-Agent'}','${'filename'}','${now()}')
Results in Zeppelin
Reference
- http://owntracks.org/
- http://owntracks.org/booklet/
- http://owntracks.org/booklet/tech/json/
- http://osmand.net/build_it
- https://diaspod.de/posts/156379
- http://owntracks.org/booklet/tech/http/
- http://owntracks.org/booklet/tech/json/
- https://itunes.apple.com/us/app/mqttitude/id692424691?mt=8
Created on 05-23-2021 06:44 AM - edited 05-23-2021 06:47 AM
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
good suggestion ! This apps really helpful in tracking and storing location of own ...
Also reference are very helpful to me.
N.Miller