Search by

wai-blue / hubleto-vehicle-log

wai-blue

Vehicle logbook for Hubleto

Package info

github.com/wai-blue/hubleto-vehicle-log

pkg:composer/wai-blue/hubleto-vehicle-log

Statistics

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.0-alpha5 2026-12-02 16:39 UTC

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

  1. Open Vehicle log > Vehicles (/vehicle-log/vehicles) and add a vehicle.
  2. Set its propulsion type and fuel or electricity consumption where applicable.
  3. Open Vehicle log > Trips (/vehicle-log) and click Add trip.
  4. Select a vehicle and driver, then enter the date, times, route and purpose.
  5. Enter the odometer readings and business/private kilometres where known.
  6. 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

  1. 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.
  2. 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.
  3. 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.