wai-blue / hubleto-vehicle-log
Vehicle logbook for Hubleto
Requires
- php: ^8.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-02 16:40:13 UTC
README
External Hubleto application for recording business and private vehicle trips and for booking vehicles.
Features
- vehicle registry with registration number, VIN, propulsion and consumption data;
- trip date, sequence number, driver, time, route, purpose and odometer data;
- automatic duration, distance, business/private split and expected energy consumption calculations;
- petrol, diesel, LPG, CNG, hybrid, plug-in hybrid and electric vehicles;
- an interactive OpenStreetMap route picker directly in the trip form;
- reverse geocoding of selected points to real place names;
- all business fields are optional, so a route can be saved before a vehicle or other details are known;
- vehicle bookings (who has the vehicle from when to when), a "Bookings" tab in the vehicle form and a "Vehicle bookings" calendar in the Hubleto Calendar; no double bookings; a vehicle with bookings cannot be deleted;
- standard Hubleto tables, forms, date/time inputs and app navigation.
The app uses Hubleto's built-in React components, its own React form for the vehicle
with the bookings tab (built with the project's npm run build), and its own
JavaScript and CSS for the trip map. It does not require Leaflet or a Google Maps API key.
Installation
Requires an existing Hubleto 2 installation with the Auth, Settings, Desktop and Calendar apps. See the official Hubleto installation guide.
Install the Packagist package using the official external app installation procedure. Run these commands from the Hubleto project root:
composer require "wai-blue/hubleto-vehicle-log:^2.0@alpha"
php hubleto app install Hubleto/App/External/WaiBlue/VehicleLog
npm install
npm run build
The package currently has alpha releases; @alpha allows these for this package.
The frontend build includes the app's React vehicle form and bookings tab, following
Hubleto's frontend build instructions.
Open Vehicle log in the sidebar, or visit /vehicle-log.
The app uses the vehicle_log_vehicles and vehicle_log_trips tables shared with
the former enterprise version. Do not enable both versions together. Before
switching an existing installation, back up the database and review its schema,
app configuration and migration history; these steps describe a new installation.
Usage
- Open Vehicle log > Vehicles (
/vehicle-log/vehicles) and add a vehicle. - Set its propulsion type and fuel or electricity consumption where applicable.
- Open Vehicle log > Trips (
/vehicle-log) and click Add trip. - Select a vehicle and driver, then enter the date, times, route and purpose.
- Enter the odometer readings and business/private kilometres where known.
- Save the trip. Hubleto calculates the duration, distance and expected energy consumption from the supplied values.
A trip can also be saved before a vehicle or other business details are known. The map lets you select its start and end points and fills in their coordinates and place names. It does not calculate driving directions or road distance; distance is calculated from the odometer readings or the kilometre split.
Bookings
- Open a vehicle and its Bookings tab, and click Book the vehicle; or open
Vehicle log > Bookings (
/vehicle-log/bookings) and click Book a vehicle. - Enter the start and end date (a booking may last several days), optionally the times, the driver, the passengers and a note. A booking without a name is named after its vehicle.
- Bookings are shown in the Hubleto Calendar as "Vehicle bookings", for every user. "My calendar" and the calendar of one user show the bookings the user drives or rides in.
A booking cannot end before it starts, and a vehicle can be booked only once at a time
(a booking may start when another one ends). Bookings are stored in vehicle_log_bookings.
Map Services
The map needs internet access. Tiles are loaded from OpenStreetMap, and selected coordinates are sent to the public Nominatim service to resolve place names. If reverse geocoding is unavailable, the selected coordinates remain available.
Use these services in accordance with the OpenStreetMap tile policy and Nominatim usage policy.
License
GPL-3.0-only.