| 开发者 | pcio |
|---|---|
| 更新时间 | 2026年5月31日 18:27 |
| 捐献地址: | 去捐款 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/boat-position/map) — shows the current position on an OpenStreetMap/OpenSeaMap map with a rotating arrow icon when underway and an idle indicator when stopped./boat-position/history) — calendar sidebar with trip history. Click any day to see the full route on the map. Logged-in editors can label harbour names and merge incorrectly split trips.boat-position directory to /wp-content/plugins/.sendgps.sh script and cron job./boat-position/map returns a 404, go to Settings → Permalinks and click Save Changes to flush the rewrite rules.Install and activate the plugin, then go to Settings → Boat Position. Set a secret API key, then follow the router configuration guide in the About page to set up your router's cron job.
No. Any device that can send an HTTP POST request with lat, lon, speed, course, and gps_time fields to the REST endpoint will work. The About page documents the exact format.
The plugin registers two pages automatically — no WordPress pages or shortcodes are needed:
https://yoursite.com/boat-position/maphttps://yoursite.com/boat-position/historyYes. Define the key as a constant in wp-config.php:
define( 'PCIO_BOAT_POSITION_API_KEY', 'your-secret-key-here' );
When this constant is present, the database option is ignored and the settings field is shown as read-only.
Check that the router is sending data by looking at your database's wp_boat_positions table. If rows are present but no trips appear, the trip engine may not have processed them yet — visit the ingest endpoint directly or check the About page for the manual trigger curl command.