Forum Replies Created

Viewing 15 replies - 256 through 270 (of 415 total)
  • Plugin Author tinuzz

    (@tinuzz)

    Hello Wolfgang,

    Nice to hear that Trackserver is working for you, I hope you enjoy using it.

    Regarding SNI: I am aware, that when the client does not support SNI, the server (at least Apache) serves the TLS certificate from the default virtual host, and then it works. My warning is mainly targeted at people who do not maintain their own web server, but use a shared host, for example. They have no way to make it work. By the way I haven’t checked if this has changed in recent versions of OruxMaps; can you confirm that SNI is still unsupported in the current version?

    Regarding your feature request for geofencing: I understand your use case; I have the same consideration when I go running from my home. I think I could implement this, although I gather it will be quite a lot of work on the UI-side.

    I am thinking of:
    – multiple fenced areas should be supported, so a nice management interface is required
    – entering coordinates is a drag, a map which you can draw on would be nicer, but quite complex
    – is support for rectangular areas enough? I recon polygons are nicer, but more complex.

    Anyway I could start with a simple version, with one rectangular fenced area, requiring the user to enter two coordinates.

    Can you open a new issue here on the forum, or better yet: an issue on Github?

    https://github.com/tinuzz/wp-plugin-trackserver/issues/new

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    @apgw

    The GPX file ‘Etappe 1 – Osmand-Route’ is broken in multiple ways:
    – Track appears before route and waypoints. The order should be: wpt – rte – trk.
    – The rte elements use private elements (<extensions>) but the file doesn’t reference the namespace / XML schema to go with them.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi Larry,

    I should probably change that in the settings screen. While it technically works, it is against Google’s terms & conditions for Maps and they may block your users from accessing the map tiles at any time. I wouldn’t recommend it.

    If you had tried to search for something like ‘google maps tile server url’, surely you would have found what you are looking for,

    I just tried with http://mt1.google.com/vt/lyrs=m@110&hl=pl&x={x}&y={y}&z={z} and that seems to work.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Yes, it is exactly what I told you before.

    The MapMyTracks interface of Trackserver is listening on http://kozlycl.cz/wp/mapmytracks/. The requests from OruxMaps use basic authentication, so they include a HTTP header called ‘Authorization’, which PHP needs to get the user ID and password. The Authorization header is not arriving in PHP, or at least that’s what it looks like. Trackserver cannot verify the username and password, so it will ALWAYS return a 401.

    The 404 that you get when you POST to http://kozlycl.cz/wp/mapnok/ (which is NOT handled by Trackserver) has nothing to do with it.

    Please let me know if you have (other) serious indications that there is a bug in Trackserver. Otherwise, I will close this thread. I am 99% sure that the problem is in your webserver configuration and not in Trackserver.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    Just a quick answer to let you know I read and appreciate your messages. I agree that some popup functionality would make a useful addition, but I’m not sure yet how to implement that. The beauty of WordPress and its plugin architecture is in the use of hooks and filters. If a plugin calls hooks at the right time, you can alter their behaviour from another plugin, and that is likely what you need. For example, the Youtube link field is not something I would implement inside Trackserver, but in a seperate plugin. If you need extra filters on which tracks are shown on the map, I could add a filter just after my own queries, so another plugin can modify the list before it is sent to the client. The possibilities are endless.

    With the JavaScript, I don’t have time to dive into it right now, but it shouldn’t be hard. The on(‘click’) on the end marker is already there, so you can just add functionality to it. See http://leafletjs.com/reference.html#popup on how to create popups on the map. Trackserver.js already has a few of those I believe.

    Good luck,
    Martijn.

    • This reply was modified 9 years, 2 months ago by tinuzz.
    Plugin Author tinuzz

    (@tinuzz)

    I’m sorry, I don’t understand your last message.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    I am sorry, I don’t know what to tell you. I am quite sure this is a problem with your setup, and not a problem with Trackserver.

    If you want to test the setup in an efficient way (without going for walks with OruxMaps ;-)), you can do it with cURL like this:

    curl -v -X POST -u <username>:<password> -d request=start_activity -d title=test http://kozlycl.cz/wp/mapmytracks/

    If you specify a valid username and password, this should normally return a 200 status, output something along the lines of

    <?xml version="1.0" encoding="UTF-8"?><message><type>activity_started</type><activity_id>123</activity_id></message>

    and give you a track in the Trackserver database.

    Beyond that, I’m afraid I cannot help you with your Nginx configuration.

    Cheers,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    @jdembowski I appeciate your notes about forum rules, thank you. However, I wasn’t really asking for an admin account, so maybe it wasn’t that bad.

    Cheers,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    It seems the Authorization header doesn’t reach PHP.

    Do you run PHP via FastCGI behind Nginx? If so, can you add

    fastcgi_pass_header Authorization;

    right where you have the ‘fastcgi_pass’ directive for PHP?

    Cheers,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Yes, that request is most likely coming from OruxMaps.

    In the WP admin, Trackserver Options, you can configure the ‘MapMyTracks URL slug’, which is ‘mapmytracks’ by default. It also shows the full URL for updates, the one that you configured in OruxMaps. OruxMaps will POST to that URL, so that’s what you should be looking for in the logs.

    I think (not 100% sure) that it is normal to see a 401 first, followed by the same request with a 200 status code, because the client first sends the request without an Authorization header, and only in response to the 401 will it send the credentials.

    Do you see any ‘POST /wp/mapmytracks/’ requests with a status other than 401?

    If not, you most likely mistyped your WordPress username or password in OruxMaps.

    Cheers,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Do you see requests coming from OruxMaps in the Apache/Nginx access log?

    Plugin Author tinuzz

    (@tinuzz)

    I implemented this yesterday 😉 It will be part of the next release.

    There is a shortcode attribute called ‘maxage’, it takes a time expression like ‘120s’, ’30m’, ‘2h’ or ‘3d’ and when it’s used, it keeps live tracks that haven’t been updated within that time from showing on the map.

    Will that work?

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    I am open to adding a ‘maxage’ attribute to work together with ‘user=…’, to limit the tracks shown on the map to the ones that have been updated in the last X time. It should be quite easy to add. Can you please open a new topic on this forum or an issue on GH for this feature request?

    Regarding your second question: just create a new tile layer and add it to the ‘layers’ option. I tested with the following and it works as expected:

    
    var map_layer0 = L.tileLayer(
         trackserver_settings['tile_url'],
         { attribution: trackserver_settings['attribution'], maxZoom: 18 });
    
    var clouds = L.tileLayer(
        'http://{s}.tile.openweathermap.org/map/clouds/{z}/{x}/{y}.png', {
        maxZoom: 19,
        attribution: 'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>',
        opacity: 0.5 });
    
    var options = {center : center, zoom : zoom, layers: [map_layer0, clouds], messagebox: true };
    

    Cheers,
    Martijn.

    • This reply was modified 9 years, 2 months ago by tinuzz.
    Plugin Author tinuzz

    (@tinuzz)

    Great. I just put out version 3.0.1 that has cache busters for the JS files enabled. I intended to do this in 3.0 but I forgot.

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Please clear your browser cache. The problem is most likely that the old version of trackserver.js is still in the cache. Please let me know if that helps!

    Best regards,
    Martijn.

Viewing 15 replies - 256 through 270 (of 415 total)