7 ms·
OwnTracks: Self-hosted, open source location tracking
- guruz 11y agoI was thinking if you use that kind of name, maybe it could also be an app for ownCloud :-)
- brudgers 11y agoThe booklet provides a fuller description: http://owntracks.org/booklet/ http://owntracks.org/booklet/
- vosper 11y agoThis really is perfect timing - I'm about to embark on a worldwide travel adventure, and one of the things I want to track is my location. Does anyone have any experience using OwnTracks?
- beardicus 11y agoI've used it a bit on Android. It's important to note that OwnTracks only takes care of publishing your location to an MQTT server (and also subscribing to and displaying other published locations). If you want to save historical location data, and display it on a map, you'll need to hook up some more software, likely this: https://github.com/owntracks/recorder https://github.com/owntracks/recorder As far as the Android app goes, I had no complaints. I didn't notice any significant battery drain issues or anything like that.
- vosper 11y agoThanks for the link. Do you happen to know what the behaviour is when there's no network connection? I'm going to be going to a lot of countries, and I doubt I'll have a SIM card everywhere (plus I'll be off-the-grid hiking and exploring a bunch).
- beardicus 11y agoI think that'll be a problem. Since you'd be recording your historical data off of the MQTT server, and your phone wont be updating the MQTT server, you'd have gaps in your data. Sounds like you want to record data right on your phone. Some other commenters have mentioned possible alternatives that probably would work better for you.
- caffinatedmonk 11y ago[According to the documentation:][1] > When the device determines that it's moved a significant distance, it contacts a server via 3G or WiFi (hopefully one of those is available, but we queue messages many thousands on the app until connectivity can be established) [1]: http://owntracks.org/booklet/guide/whathow/ http://owntracks.org/booklet/guide/whathow/
- brenschluss 11y agoFrom the booklet (http://owntracks.org/booklet/guide/whathow/ http://owntracks.org/booklet/guide/whathow/): > When the device determines that it's moved a significant distance, it contacts a server via 3G or WiFi (hopefully one of those is available, but we queue messages many thousands on the app until connectivity can be established) and says "hey, I'm here", whereby "here" is specified with a bit more precision.
- tcooks 11y agoFellow traveller here - going to try it in my solo bike tour from Lisbon to Istanbul that starts in a few days, let me know if there is any aspect of the software that you want reviewed
- vosper 11y agoI'm most interested in presentation on the travel blog I'm working on (getting the most recent location onto a Google Map) and generating a track of where I've been - I thought it'd be fun to be able to plot the major waypoints on a globe. I'm not really interested in every single movement - eg going out to get ice cream - but more moves between cities, towns etc... I guess if it's sending all the events to a server I can work that out for myself somehow... What are you planning to use the data for?
- StavrosK 11y agoYou can use owntracks-recorder to keep the data and ocat to get them out again. I'm just playing with that right now to generate a page for my blog showing the cities I've traveled to each year in real-time.
- StavrosK 11y agoI've been using it for a few days, I like it a lot. The new version is also much better, but it's not on the play store yet.
- moontear 11y agoHave been using Where have I been for the past year and it works flawlessly. Most important is that I can export all locations as CSV which I convert to KML and all is good. Will give OwnTracks a try but privacy wise Where Have I Been also is phone only.
- vosper 11y agoThanks, Where Have I Been looks really interesting. It might be better, even, since I just want a record of my location to process after the fact.
- vespakoen 11y agoAlso check my "dwaler" arduino based project https://www.koenschmeets.nl/projects/dwaler/ https://www.koenschmeets.nl/projects/dwaler/
- StavrosK 11y agoThat's pretty cool! What does the hardware look like?
- vespakoen 11y agohope this works: https://goo.gl/photos/jiZYZZYkxhFVSj7u8 https://goo.gl/photos/jiZYZZYkxhFVSj7u8
- StavrosK 11y agoOh, is that a GPS/compass shield? I have to get one of those.
- vespakoen 11y agoYeah it's a GPS module, it reports an "angle" and I guess it calculates that by comparing the previous position to the current one. Not very accurate while standing still but works pretty well while on the move.
- mcotton 11y agoI didn't see a link to the code, do you mind sharing?
- andrenotgiant 11y agoI have been messing around with OwnTracks logging GPS to a Mosquitto server on DigitalOcean. I logged the process I used to get it all setup here: https://www.digitalocean.com/community/questions/how-to-setup-a-gps-logging-server-with-owntracks-and-mosquitto https://www.digitalocean.com/community/questions/how-to-setu...
- StavrosK 11y agoDon't try to add a Let's Encrypt certificate, you need to add the CA anyway. Just use OwnTracks' own generateCA.sh script and you'll be up and running in a minute. Stick the CA and p12 file in your phone and you're done. Here's my modified script that produces the p12 file in the end: https://www.pastery.net/ytyqrj/ https://www.pastery.net/ytyqrj/ Run it with: ./generate-CA.sh <your mosquitto hostname> ./generate-CA.sh client <your username>
- JetSpiegel 11y agoIf you don't care about sharing this info with the world, what's the advantage of this over something like OsmAnd GPX tracking?
- nickysielicki 11y agoSee also, http://www.aprs.org http://www.aprs.org
- vosper 11y agoI don't see how these are related?
- jjoonathan 11y agoIt's a position reporting/tracking system from the 80s (but still going strong) that uses amateur radio repeaters instead of the internet. On one hand it doesn't have the privacy controls that you get with owntracks. On the other it doesn't require an internet connection and would survive the zombie apocalypse.
- traviscj 11y agoAs a fairly frequent (at least formerly) APRS user and extra-class licensed radio amateur (W9TCJ), ehh, maybe. Pretty easy to find yourself in a 140-MHz-dead-zone.
- ekianjo 11y agoAre there any command line tools for GPS tracking on laptops (for example if you are connected to a GPS via bluetooth) ?
- StavrosK 11y agoIt's trivial (~2 lines) to write a script that will get your location every minute and HTTP POST it to the OwnTracks recorder, if I'm understanding the docs correctly.
- 89vision 11y agoWorks great with cloudmqtt and https://home-assistant.io https://home-assistant.io for home automation based on your location.
- mnutt 11y agoI just packaged this up as a Sandstorm app, for anyone who wants to demo the HTTP backend: https://apps.sandstorm.io/app/cjv3p2a970vrm729x9x0v54k0nff6x6s2xcgwvgpuzhgk56wum5h?experimental=true https://apps.sandstorm.io/app/cjv3p2a970vrm729x9x0v54k0nff6x...
- ocdtrekkie 11y agomnutt, you rock.
- jsilence 11y agoI dont know where to configure the URL in the android app. The description of the Backend says: "Step 2: Configure the app Tap the i icon in the top left and tap "Settings". In the URL field, enter:" But there is no "i" icon and no Settings tap. There is a menu button and in the preferences I can choose a mode between public, hosted and private. I tried to use the supplied URL in the Host setting, but the Owntracks app complains that the settings are incomplete. Any help appreciated.
- mnutt 11y agoSorry about that! I mistakenly assumed the settings UI would be the same between Android and iOS. I don't have an Android device handy, but will try to hunt one down and get the instructions updated.
- machbio 11y ago+1 - Andoird App with Sandstorm Owntrack does not work or is confusing to setup
- zeeZ 11y agoI see it referenced in the commits [0], so I assume documentation is ahead of the published version. [0] https://github.com/owntracks/android/commit/29b3604bcf021433ade5a3156c43270c687397a7 https://github.com/owntracks/android/commit/29b3604bcf021433...
- 11y ago
- chipperyman573 11y agoDoesn't google maps' timeline do this? I suppose OwnTracks isn't google so it's less likely to be data mined... https://www.google.com/maps/timeline https://www.google.com/maps/timeline
- conradev 11y agoI believe that's the entire reason this product was built: > OwnTracks is open-source and uses open protocols for communication so you can be sure your data stays secure and private. I think OwnTracks was named because you "own" all of the data.
- xnyhps 11y agoExcept for displaying your location on Google Maps and using Google's APIs to do reverse geocoding... Their definition of "private" doesn't seem to include "private from Google".
- jpmens 11y agoThat is, indeed, the "Own" in OwnTracks, and aside from the reverse geo-coding (which has to come from somewhere!) you do own your data.
- jon-wood 11y agoThe Google Maps timeline doesn't have an API, so while you can see what data Google have there's no way to get it out and make use of it in other ways.
- Aramgutang 11y agoGoogle Maps Timeline has both an "export this day to KML" feature, and a "download a copy of all you data" feature via Google Takeout.
- jon-wood 11y agoBut it doesn't have an API giving anything between "export a single day" and "give me all the data ever".
- alainchabat 11y agoI really like your forum theme. Do you use discourse? is the theme open source? Thank you! https://community.owntracks.org https://community.owntracks.org
- nostalgiac 11y agoLooks like https://nodebb.org/ https://nodebb.org/
- binarybucks 11y agoIt's nodebb with the default theme ;)
- nagarjun 11y agoI've been looking to move away from Swarm for a while. OwnTracks might just be the perfect solution.
- cstuder 11y agoThat's an excellent documentation, in my opinion. Extensive and complete. As an example: It doesn't just say: 'Can use MQTT.'. Instead it details the usage of MQTT by the appplication and even how to set up an MQTT service on a Rasperry Pi. It details common usage scenarios.
- chippy 11y ago> private location diary > you can be sure your data stays secure and private. By using the Google Maps API you grant Google the rights to your data to use as they see fit. You cannot have private or secure data if you use the Google Maps API. (edits: however, I think if you pay Google for the premium or business access to the Google Maps API, then Google does not claim their rights to your data)
- PaulRobinson 11y agoWould prefer it if it used OSM anyway, which I can also run my own version of if I am little twisted. Basically, with a bit of work, you could produce a completely-self-hosted solution where there are no calls going out anywhere to anything you don't host yourself. That's progress to my mind. Just needs a little more work to get there. If I didn't have family over this weekend...
- dvfjsdhgfv 11y agoThank you for thinking about this. I'm starting to think that self-hosted is the open source of today - the web is increasingly *aaS-centric, and users don't even have the idea it's not the only way.
- maxerickson 11y agoA medium term solution is to use one of the apps that provide OSM data offline. For a medium sized region, the download might only be 100 MB. Unless you are in Germany (or some other region where OSM data is particularly dense).
- binarybucks 11y agoHi, creator of the Owntracks Android app here. I'm absolutely with you that you cannot have private and secure location data when using any Google services. Indeed, Owntracks does use Google Maps and the Google Play Services location APIs and your location data is likely sent to Google when using the app and we're very clear that this is the case. However, when using Android, it's almost impossible to not send any personal data to Google when using an Android phone (or to Apple if you're using an iPhone). Hence, we decided to not use any third party location or APIs and for several reasons: 1) Google likely has your location data anyway because you're using their operating system 2) I personally would trust my data to Google than any third party that's not that closely monitored by others. We tried to integrate Mapbox as Mapping provider for the 0.5.x release until they likewise started gathering user data. Thus the next version switches back to Google Maps. 3) The offered location APIs are much easier on the battery life than any third party solution 4) We develop Owntracks in our spare time and receive no funding whatsoever. Hence, the time that we can invest into the integration of other Maps or location providers is very limited. Besides that, Owntracks does allow you to store your location data on your own infrastructure. You are free to choose whatever you want with that data and you're not trusting a third party (besides Google) with your data. Personally I think that this isn't a perfect solution, but it is as good as it gets for the majority of smartphones. If that isn't good enough with you that's fine and I totally understand that. In that case, simply don't use the app and build something that you can trust entirely. E.g. some people from our development team are happily tracking their cars with a hardware appliance that is Owntracks compatible [1] [1] jpmens.net/2014/06/14/owntracks-in-a-vehicle-choral-greenwich
- h-h 11y agoAlso see https://github.com/HenryHoggard/OpenLocate-Server https://github.com/HenryHoggard/OpenLocate-Server https://github.com/HenryHoggard/openlocate https://github.com/HenryHoggard/openlocate
- Jack5500 11y agoLooks interesting, but is there something like this for fitness tracking?