tinuzz
Forum Replies Created
-
Forum: Plugins
In reply to: [Trackserver] Guidance on trackserver settings in WordPressPlease do not call your page ‘trackserver’, as it will conflict with Trackserver’s main slug, that is used for uploading data and for the shortcode. This is where the ‘Access denied’ comes from, your browser is talking to Trackserver directly.
But before you try to do anything at all with the shortcode and map display, make sure you have some tracks in your database, otherwise there is nothing to show on the map.
I must admit I haven’t used TrackMe for a while, not do I test it extensively anymore, but it still seems to work for me on the latest development version of Trackserver. Also, ‘result: 7’ means ‘Track not found’ and it should not occur when uploading a track position, it is used with other functionality like deleting tracks. Can you maybe share a screenshot of TrackMe when you have started recording?
Forum: Plugins
In reply to: [Trackserver] Split and upload tracksRegarding the “missing” tracks… The default sort order is by start time (descending). If you upload an older track, it will not appear at the top of the list, but at the correct place in the sort order. Could that be the issue?
About the splitting issue: when you click “Split track here”, what happens? Does the page reload, or does nothing happen at all? In the first case, please check the PHP error log. If the latter is the case, please check the Javascript console.
Forum: Plugins
In reply to: [Trackserver] Split and upload tracksHi,
Sorry for not replying any sooner. However, just from your post I really have no clue as to what could be the problem.
You’re saying you can upload tracks, which you can actually show on the map, but are not present in the ‘Manage tracks’ list? That sounds really weird, not to say near impossible, unless you are using multitple user accounts.
Otherwise, I would start by checking the PHP error log for any issues.
Martijn.
Forum: Plugins
In reply to: [Trackserver] Guidance on trackserver settings in WordPressSorry, but:
- What is a “sheet”?
- Which app?
- What error message?
- Which guide?
- Did you read the FAQ?
If you expect help, you really have to try A LOT harder to explain your problem.
- This reply was modified 1 year, 7 months ago by tinuzz.
Forum: Plugins
In reply to: [Trackserver] GPS Tracker TK 102 and TrackserverHi Klaus,
The answer to this question is in the FAQ:
In short: if your device supports HTTP with a custom URL, it will likely work, or it will be very easy to add support. If your device does not do HTTP, then it will not work out of the box.
Best regards,
Martijn.
Forum: Plugins
In reply to: [Trackserver] show all tracksAs I said, there is no way to get all tracks for a user. The ‘user=’ parameter is to get the ‘live’ track of the specified user. ‘Live track’ simply means the track that was updated the latest.
Your shortcode has a few redundancies.
‘track=live’ is deprecated, and it’s synonymous to ‘user=@’, so in this case, you would get the live track for both user ‘xyz’ and the author of the page, in case they are different users.
‘live=true’ is only ever needed in case you want to treat a track as ‘live’ when Trackserver normally doesn’t see it like that, i.e. if you specify a track by id (but that doesn’t really make a lot of sense) or if you reference an external track with the ‘gpx’ or ‘kml’ option.
Forum: Plugins
In reply to: [Trackserver] show all tracksCurrently not, sorry.
There is something on the roadmap to make selecting tracks more flexible, for example by searching by name, description or date (-range), but I cannot give any indication of when that will be ready.
Best regards,
Martijn.
Forum: Plugins
In reply to: [Trackserver] Сколько пользователй может использоватьUse different WordPress users to have multiple live tracks.
Or, open
src/Legacy/admin/functions.phpin the plugin folder and fix the query (i.e. delete the superfluous quote) on line 512.Yes, NextGen import process is slow and it’s most certainly a PHP timeout issue. Check your logs and you’ll know for sure.
It could be ‘memory_limit’, as @postmastergs said, but far more likely it is ‘max_execution_time’. In many PHP installs, it is set to 30 seconds by default, which on my system is enough to import something like 60 images without copying.
I suspect that this is due to the generation of thumbnails, which will happen synchronously when you import a folder.
If you go to the new gallery after importing and click ‘Scan folder for new images’, it will import the rest in one go (at least no problem here with 1200 images), because the creation of thumbnails happens asynchonously from the browser in this case.
Forum: Plugins
In reply to: [Trackserver] Internal server error 500 with multiple tracksHi,
There are certainly no hard limits in Trackserver, but to find the cause, you merely have to look in the PHP error log. I suspect it’s an Out of Memory error….
Martijn.
Forum: Plugins
In reply to: [Trackserver] Create My Own Mobile TrackerHi,
Indeed, there is no real documentation for that. That is because Trackserver mainly works with 3rd party apps, and the protocols that are used to transport the data are defined by them, and not by Trackserver.
As such, Trackserver supports quite a few different ways to get data into it. The biggest requirement is, that it has to be over HTTP(S), which is a limit imposed by the fact that it’s a WordPress plugin. There are protocols that use HTTP GET and HTTP POST, and the latter comes in different flavors: some use JSON, some use XML, some just use multipart/form-data. Some use HTTP basic auth and others use more sophisticated authentication methods. Some have a notion of tracks, others only send locations and let Trackserver do the rest.
I’m afraid I have to refer you to the source code for actual information.
Trackserver figures out the protocol to use by doing some heuristics on the incoming request. See https://github.com/tinuzz/wp-plugin-trackserver/blob/master/class-trackserver.php#L482 for the parse_request() function that does this.
Then, it delegates the request to a protocol-specific request handler (https://github.com/tinuzz/wp-plugin-trackserver/blob/master/class-trackserver.php#L596)
I can’t make any recommendations, but the ‘getrequest’ protocol with HTTP basic auth is the simplest approch. Note that it doesn’t support creating tracks from the client. If you need ‘create track’ support in the client, look at the uLogger protocol (https://github.com/tinuzz/wp-plugin-trackserver/blob/master/class-trackserver-ulogger.php).
I hope this helps.
Martijn.
Forum: Plugins
In reply to: [Trackserver] Setup instructions for HomeAssistantThis is really cool! Thanks for posting. I’ll try and find a way to make this more accessible to Trackserver users!
Cheers,
Martijn.
Forum: Plugins
In reply to: [Trackserver] Teltonika FMB920 GPS deviceForum: Plugins
In reply to: [Trackserver] simultaneous trackerHi,
Tracking multiple devices at the same time is possible, if you create a separate WordPress user for each device. Each user can only have one “live” track in Trackserver, because it it simply the track that was updated last.
Trackserver works with most clients (to use a more generic term) that use HTTP(S) to send location updates and have a configurable URL for that. The reason is, that it is a WordPress plugin.
Most cheap GPS trackers are tied to specific cloud services and as such do not work with Trackserver. A lot of small GPS trackers also do not use HTTP but often a proprietary TCP based protocol. To make non-HTTP devices work with Trackserver, you would need to write a middleware to translate the location updates to HTTP, or to get them into the database in some other way.
I hope this helps.
Cheers, Martijn.