Forum Replies Created

Viewing 15 replies - 361 through 375 (of 415 total)
  • Plugin Author tinuzz

    (@tinuzz)

    OK, then something else must be wrong.

    How are your PHP / troubleshooting skills?

    Around line 1429, there is this:

    $this -> osmand_terminate( 200, 'OK, track ID = ' . $track_id );

    This line can be changed to include any desired information, because I don’t think that OsmAnd cares about the output.

    I would like to know the values of the following things:

    • $_GET["timestamp"]
    • round( (int) urldecode( $_GET["timestamp"] ) / 1000 );
    • $ts

    If you can include that in the output and then try the OsmAnd URL in a browser:

    http://www.vomac-nl.com/osmand/?lat=51.586636&lon=4.9822874&timestamp=1449990037252&altitude=60.0&speed=0.0&bearing=0.0&username=xxx&key=xxxx

    My suspicion is, that the timestamp is changed to 0 at some point, but I don’t know why.

    Plugin Author tinuzz

    (@tinuzz)

    Remove or rather comment it with //.

    Plugin Author tinuzz

    (@tinuzz)

    Hm, there must be something wrong with the way I calculate the timezone offset for the timestamp.

    Can you edit trackserver.php, and remove this line from the function handle_osmand_request():

    $ts += $this -> utc_to_local_offset( $ts )

    It should be line 1371 or close to that (my local version has some changes compared to v1.9, so it could be off by a few lines).

    I’d like to know if the removal of that line makes a difference in the result. If it does, we know that it’s the timezone offset calculation that’s causing the problem.

    Best regards,
    Martijn.

    Forum: Plugins
    In reply to: [Trackserver] No markers
    Plugin Author tinuzz

    (@tinuzz)

    Closing.

    Forum: Plugins
    In reply to: [Trackserver] No markers
    Plugin Author tinuzz

    (@tinuzz)

    Hi Marc,

    I see markers on that map just fine, but maybe there is a misunderstanding: the markers appear just at the start and the end of a track, and not for every trackpoint. They are the green (start) and red (end) dots on the map…

    This issue can in no way be related to timestamps being off, because the timestamps aren’t even part of the track as it is downloaded from the server, only the coordinates are, and the markers are just drawn at the first and last trackpoint, and don’t (can’t) use the timestamps at all.

    Best regards,
    Martijn.

    Forum: Plugins
    In reply to: [Trackserver] No markers
    Plugin Author tinuzz

    (@tinuzz)

    Hi Marc,

    ‘markers=true’ is the default, so you can leave that out. Markers for live tracks are supported (and default) since v1.4.

    Can you give me the URL for the page where you have this issue, so I can take a look at it?

    If it’s not public, you can send it to me privately via m@rtijn.net.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Can you have a look at you webserver access logs and figure out what the timestamps that your WordPress receives from OsmAnd look like?

    They should be in milliseconds sinds 01-01-1970 (something like ‘1450101110157’). I cannot reproduce the issue with OsmAnd 2.2.3.

    The code that converts the timestamp for storing it in the database involves some timezone calculations, which are always tricky, but it seems unlikely that the resulting timestamp would be in 1970.

    Is your timezone configured correctly in WordPress and/or PHP?

    Plugin Author tinuzz

    (@tinuzz)

    Sorry for the late reply, I have been traveling for the past 6 weeks. I am picking up Trackserver development now.

    I’ll have a look if I can reproduce the issue.

    Do you have the latest Trackserver, WordPress and OsmAnd versions?

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    As per https://itunes.apple.com/nl/app/sendlocation/id377724446:

    “Where you must provide the “http://yourserver.com/yourscript.php” part to application settings.”

    It would be possible to implement a scheme where the WordPress username becomes part of the URL, like this:

    http://yourserver.com/wordpress/<sendlocation-slug>/<username>/?lat=...

    and the deviceID could be used as a password.

    If anyone is willing to test this, I can put support for it in GitHub….

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Support for SendLocation should be possible, but I wonder if there is any way to do authentication with it. There should be a a way to map the iOS device to the WordPress user, preferrably with a password too.

    So if the parameters that SendLocation sends are fixed, and ‘deviceid’ is the only thing available to tell users/devices apart, that would be a bit limited.

    Is there a way to get the device ID that SendLocation sends from the device?

    Plugin Author tinuzz

    (@tinuzz)

    How do you see ‘multiple live tracks from the same user’? In the current implementation, the ‘live’ track is just the user’s last updated track, so the concept of ‘multiple live tracks’ does not exist.

    I tend to see WordPress users as real persons, and the idea of a single person being in multiple places at once seems a little unnatural 😉

    I am open to suggestions though.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Sorry for the extremely late reply, I have been traveling for the past 6 weeks.

    At the moment it is not possible. You can have multiple maps, but the tracks owners have to match the page authors. Trackserver has no functionality for ‘sharing’ tracks in any way.

    I am considering to grant WP admins access to all tracks, which would be logical in some way, and then you would be able to have multiple users’ tracks in a single map or on a single page, if the page author is an admin.

    I am also interested in ideas on how a good sharing/permissions system in Trackserver should work.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    Sorry for the delayed response, I havent’t been around computers a whole lot for the past few weeeks.

    What is on the road map is multiple tracks per map, but NOT multiple LIVE tracks per map, sorry.

    In Trackserver there is no way to share tracks between users, so there is no way to create a map with tracks from multiple users. This is not on the road map.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    Sorry for the delayed reply, I haven’t been around computers a whole lot for the past few weeks.

    Obviously, Trackserver in its current form does not do what you want, and of course, being open source software, it can be modified to do (almost) anything you want.

    I am not sure what to tell you. Trackerver can display a map, with the current location of a WordPress user, using the Live Tracking feature. Trackserver as of now supports only a small number of protocols, and I do not know which protocol your control board used. Trackserver also only stores location information; its database currently has no room for any other type of information.

    So, Trackserver definitely would need a lot of work to be tailored for your application and I cannot help you with that.

    Of course, it’s open source, so there’s a lot you can do yourself. Just make sure you respect its license (GPLv2).

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    Glad you worked it out.

    Cheers,
    Martijn.

Viewing 15 replies - 361 through 375 (of 415 total)