tinuzz
Forum Replies Created
-
Forum: Plugins
In reply to: [Trackserver] SendLocation issueIf you’re willing to try out the upcoming version of Trackserver, you can download the whole plugin from Github and install it. When the new version is released on WordPress.org, you can upgrade via the WP backend as usual.
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] SendLocation issueHi,
I just realized, there was a bug with SendLocation that I fixed last November. Unfortunately, the fix is only on Github, and not in the version on WordPress.org. Can you check if yours is the same problem?
https://github.com/tinuzz/wp-plugin-trackserver/issues/12
See here for a fix:
https://github.com/tinuzz/wp-plugin-trackserver/commit/58d617e30f6f4f364bae924eb51caa417f418c6f
A new version of Trackserver containing this fix will be released soon (although not within two weeks ‘m afraid).
Regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] SendLocation issueHi, I’m glad to hear it works now, although it’s strange that the solution was an upgrade of the server software. Good to know that Trackserver works with PHP 7.2, because I haven’t tested that myself.
If you are satisified, please consider writing a review here on WP.org: https://wordpress.org/support/plugin/trackserver/reviews/
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] SendLocation issueHello Eligoo,
I am sorry that SendLocation doesn’t work for you. Unfortunately, I’m not sure if I can help you. I do not own an iOS device, so I have no real way to test SendLocation support in Trackserver.
I would have to know exactly what SendLocation is sending to the server. Can you configure Apache to log the full request (including query string) and send me a sample of the log? I think you will have to define a custom Logformat in Apache and make sure ‘%q’ is in your format string.
See http://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats for more info.
Best regards,
Martijn.Forum: Reviews
In reply to: [Trackserver] Clean & straightforward approach to GPX publishingHello Hannes,
Thank you, I appreciate it very much!
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] wordpress other users and passTrackserver users are WordPress users, so if you want mulitple users to use Trackserver with different passwords, then you need multiple WP users.
The password for a user is in the user profile. So to know the random-generated access key, the user has to log in and look at his/her own Trackserver user profile (for TrackMe, OsmAnd and Sendlocation; MapMyTracks just uses the WP password).
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] Direction of travel and point infoWhat I said is:
“tracks loaded from Trackserver donβt have any date/time information, only coordinates.”
What that means is:
When the JavaScript code requests a track from the server, it receives it in a format (Polyline, see https://developers.google.com/maps/documentation/utilities/polylinealgorithm) that doesn’t contain any date/time information, only coordinates.
To display date/time information, you would have to change Trackserver to use a different format, but one that is supported by Leaflet-omnivore, like GeoJSON or GPX.
I have been using polyline because it is a very space-efficient encoding and date/time-information hasn’t been needed to display the tracks.
Cheers,
Martijn.- This reply was modified 8 years, 6 months ago by tinuzz.
Forum: Plugins
In reply to: [Trackserver] Leaflet Plugin: Leaflet.Elevation (height profile)Hm, I forgot about something. See that as the Elevation plugin also supports GPX files, your best bet may be the GPX support in Trackserver.
Trackserver can send GPX files with multiple tracks inside, except this functionality is only implemented in the [tslink] shortcode and is currently not suitable for consumption in other ways. But that could be a lot easier to implement than GeoJSON support.
https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.php#L1772
I think I can do something in that respect. I am preparing a new Trackserver release, it should be here before the end of the year with a lot of new features. I will have a look and see if I can improve the support for different formats a little.
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] Leaflet Plugin: Leaflet.Elevation (height profile)Hi,
When Trackserver gets tracks from the database, it only uses the coordinates, not the timestamps or the elevation, because there wasn’t really any useful way to present them. The tracks are served in a format called ‘polyline’, that doesn’t have room for other data than coordinates.
If you want to create an altitude graph, a different format is needed. At one point, Trackserver supported GeoJSON, but that was never really used, and at current, it doesn’t work.
See https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.php#L96
At the very least, you’d have to expand the function ‘send_as_geojson’ (https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.php#L3310) to include elevation data and maybe also the timestamps.
But that function isn;t called anywhere in the code, because at some point the whole interaction between te client en the server has been redesigned and GeoJSON fell off the map, so to speak.
You would have to change the function ‘send_alltracks’ (https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.php#L3343) to send GeoJSON instead of Polyline, and then there may be some work needed on the JavaScript side as well.
So, in short: this is going to be quite some work. I’m afraid it’s not something I can dedicate a lot of time to, but I’m open to pull requests on Github.
Please let me know if you have any more questions!
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] suggested place to start to extend your work re markers?Hi Katherine,
Good to hear that Trackserve works for you!
Your question is very general in nature, I’m not sure what you’re asking of me. Normally, if you want to extend functionality of one plugin using another plugin, you would make use of hooks (actions / filters) to run your own code at specific points in the execution of Trackserver’s code. So for example, you could run your own code during the evaluation of the [tsmap] shortcode parameters to add parameters of your own, and you could run more code in other parts of the plugin to output stuff to the browser, for example a <div> that holds an altitude graph.
The only thing is: Trackserver at present doesn’t call any actions, because I have never had a request for that before, so you would have to tell me exactly at which points your code would like to hook into Trackserver, so I could add the necessary ‘do_action’ calls to Trackserver.
If your want to extend Trackserver’s Javascript code to add stuff to the map, I’d suggest you write event handlers for specific events, for example the ‘viewreset’ event on the Leaflet map object seems to be a good one for adding overlays.
I hope this helps a little, I’m not sure what else to tell you. If you need hooks in Trackserver or other specific featues, please add a feature request issue via Github.
Adding markers / waypoints / images to the map is something I have on the roadmap for Trackserver, but it could be a while before something is implemented. I have a question for you though: how do you get waypoints and images to the server? What client app do you use? How does it work (big picture)?
Best regards,
Martijn.- This reply was modified 8 years, 6 months ago by tinuzz.
Forum: Plugins
In reply to: [Trackserver] How to track with osmandThis is no way to ask questions. What have you tried and what exactly is not clear to you?
Forum: Plugins
In reply to: [Trackserver] Infobar template not workingAh, by “user based” you mean, that when the live map ‘follows’ one of the users, the infobar would use that specific user’s template. That way of thinking never occurred to me, but it isn’t far fetched. I like how you use the mouseover event instead of a click to start following the user.
Closing the isue now, thanks for the feedback!
Cheers,
Martijn.- This reply was modified 8 years, 6 months ago by tinuzz.
Forum: Plugins
In reply to: [Trackserver] Infobar template not workingJust wondering… when you say “user based”, which user do you have in mind? How did you expect it to work? It seems I am missing something here π
I’m asking, because the only user involved in publishing maps with Trackserver is the author of the page.
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] Infobar template not workingHi,
I finally had time to look into this, but I haven’t been able to reproduce the problem. Please note that the inforbar template that is used is the one from the author of the page that’s showing the map. So this is independent of which tracks are being shown.
Every page has an author, and every author (user) has the ability to set the infobar template for his/her own maps in the user profile.
Can you confirm that this is working for you the way it should? If there is still a problem, I’d like to hear about it!
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Fleet trackingClosing due to no more feedback.