{"id":12,"date":"2017-05-19T13:38:41","date_gmt":"2017-05-19T13:38:41","guid":{"rendered":"https:\/\/nullniveau.org\/blog\/?p=12"},"modified":"2017-05-22T08:59:30","modified_gmt":"2017-05-22T08:59:30","slug":"diy-latitude-update-2017","status":"publish","type":"post","link":"https:\/\/nullniveau.org\/blog\/2017\/05\/19\/diy-latitude-update-2017\/","title":{"rendered":"DIY Latitude: Update 2017"},"content":{"rendered":"<p>In the meantime I&#8217;ve changed the collector part of my setup (described <a href=\"https:\/\/nullniveau.org\/blog\/2014\/05\/26\/diy-latitude\/\">here<\/a>) quite massively:<\/p>\n<p>The following components are gone:<\/p>\n<ul>\n<li>MQTT broker<\/li>\n<li>MySQL database<\/li>\n<li>gpxexporter<\/li>\n<\/ul>\n<p>and I&#8217;m using instead the following app:<\/p>\n<p class=\"document-title\"><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.mendhak.gpslogger\">GPS Logger for Android<\/a><\/p>\n<p class=\"document-title\">which can run in the background and has the ability to automatically transfer the logs to quite a few targets. In my case, directly onto my owncloud which runs on the same webserver as the LeafletJS-Site, so I can use the uploaded files directly from there.<\/p>\n<p class=\"document-title\">The app creates a new log every day so the traffic is a litte more than with owntracks, but not really a problem. On the server side I merge the files using <a href=\"https:\/\/www.gpsbabel.org\/\">gpsbabel <\/a>into monthly and yearly versions. For that, you have to use a litte bit of sed-magic:<\/p>\n<pre class=\"document-title\">gpsbabel -t -i gpx `ls \/&lt;path-to-owncloud-data&gt;\/201705*.gpx | sed \"s\/^\/-f \/g\"` -x track,merge -o gpx -F \/&lt;path-to-leafletjs-directory&gt;\/201705.gpx<\/pre>\n<p class=\"document-title\">So, to summarize:<\/p>\n<h4 class=\"document-title\">Pros:<\/h4>\n<ul>\n<li class=\"document-title\">Waaaaay simpler infrastructure<\/li>\n<li class=\"document-title\">Points are also getting logged when I&#8217;m offline<\/li>\n<\/ul>\n<h4>Cons:<\/h4>\n<ul>\n<li>In the app there&#8217;s no way to see where other users are (if more than one user uses the infrastructure). It&#8217;s still possible on the website though.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In the meantime I&#8217;ve changed the collector part of my setup (described here) quite massively: The following components are gone: MQTT broker MySQL database gpxexporter and I&#8217;m using instead the following app: GPS Logger for Android which can run in the background and has the ability to automatically transfer the logs to quite a few&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":3,"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nullniveau.org\/blog\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}