Repository navigation
Releases
Karvon 0.4.0: weighbridge connection
Karvon now reads the weight straight from the truck scale.
Weighbridge connection (#11)
- Set
KARVON_SCALE_URLand the weigh form gets Read from scale buttons for gross and tare. Karvon waits for a stable weight and fills it in; the operator checks it and records the ticket.tcp://10.0.0.5:4001: the indicator or a serial-to-Ethernet converterserial:///dev/ttyUSB0?baud=9600: RS-232 / USB (pip install "karvon[scale]", included in the Docker image)simulator: a fake scale, used in the live demo
- Understands common indicator formats:
ST,GS,+0031240kg, Mettler Toledo SICS (S S 31240 kg) and plain numbers.?send=...for indicators that answer on request,KARVON_SCALE_PATTERNfor anything else. GET /api/v1/scale, andpython -m karvon.scale URL --rawto see what an indicator sends.
Try it in the demo: log in as operator / operator, open a truck on site and press ⚖ Read from scale.
Have a real indicator? Please post its model and a few lines of its output in #11. That is a very useful contribution.
Upgrading
No database changes. Nothing to do unless you want to connect a scale.
Full changelog: CHANGELOG.md
Karvon 0.3.0: CMR and invoice PDFs
Karvon now prints the paperwork: a filled CMR consignment note and an invoice for every truck.
▶ Try it: https://karvon-demo.onrender.com (log in as admin / admin, open truck KBL-4521 and press CMR (PDF))
Added
- CMR consignment note as PDF (#12). The standard boxes 1–25, labelled in English and Russian as on the CMR forms used in Central Asia, filled from the visit: sender, consignee, places of loading and delivery, TIR carnet, goods, gross weight from the weigh ticket, driver, tractor and trailer plates. Empty boxes stay blank for writing in by hand.
- Invoice as PDF in the user's language (English, Russian, Uzbek), with the charges, total, paid and amount due, and a "Paid" stamp when settled.
- Shipping details on visits: sender, consignee, places of loading and delivery. Enter them at the gate, on the visit page, or with
PATCH /api/v1/visits/{id}/documents. Changes go to the visit history. - API:
GET /api/v1/visits/{id}/cmr.pdfandGET /api/v1/visits/{id}/invoice.pdf?lang=ru. KARVON_TERMINAL_ADDRESS: your address and tax number on invoices.
Upgrading
- A migration adds four nullable columns to
visits. It runs on startup. - New dependency: fpdf2 (pure Python). The DejaVu Sans font for Cyrillic and Uzbek letters is bundled.
Full changelog: v0.2.1...v0.3.0
Karvon 0.2.1
A small release with a live demo, local time and a new dashboard column.
▶ Try it: https://karvon-demo.onrender.com (log in as admin / admin)
Added
- Time on site on the dashboard. Each truck shows how long it has been at the terminal (
2d 3h,45m); stays over 48 hours are highlighted (#19). Based on work by @RiccardoBifulco, who is co-author of the commit. Thank you! - Terminal time zone (
KARVON_TIMEZONE, e.g.Asia/Tashkent). The UI shows local times and reports count days in it; the API and CSV stay in UTC. - Public demo mode (
KARVON_PUBLIC_DEMO) and a one-click Deploy to Render button with a free-plan blueprint. - README in Russian.
Fixed
- Plain
docker runwithout PostgreSQL failed to write the SQLite file. - The login cookie is marked
Securebehind an HTTPS reverse proxy.
Upgrading
No manual steps: the version is a drop-in replacement for 0.2.0. Set KARVON_TIMEZONE to your terminal's zone to see local times (the default is UTC).
Full changelog: v0.2.0...v0.2.1
v0.2.0: users and roles, reports, yard map
Karvon is an open-source Terminal Operating System for land freight terminals: dry ports, border truck terminals, TIR parks and cross-dock warehouses.
0.2.0 makes it usable by a real team: each person logs in with their own role, every action is recorded, and managers get reports.
New
- Users, roles and audit log. Gate operator, yard manager, customs broker, warehouse manager, accountant and admin each see and do only their part of the process. Every visit shows who did what and when. API access with the session cookie or HTTP Basic.
- Reports. Arrivals and departures per day, time on site (average, median, longest), completed operations in tonnes, charges by service, paid and unpaid.
- Yard map. Slots coloured by status, plate and days on site, occupancy per zone. Click a free slot to park or move a truck.
- CSV export of visits for Excel, by @AsuraGhost (#16). Thank you!
- Printable exit pass, plate search, translated tariff names.
- Database migrations (Alembic), applied on startup.
Try it
git clone https://github.com/Khan-ipak/karvon.git
cd karvon
docker compose upOpen http://localhost:8000 and log in as admin / admin, or as customs / customs to see what a customs broker sees.
Upgrading from 0.1.0
Back up the database and start 0.2.0. Migrations run automatically and your data is kept. 0.2.0 requires a login, and an existing database gets no demo users, so create the first admin:
KARVON_ADMIN_PASSWORD='a long password' docker compose upFull list in CHANGELOG.md.
v0.1.0: first public release
First public release of Karvon, an open-source Terminal Operating System for land freight terminals: dry ports, border truck terminals, TIR parks and cross-dock warehouses.
What works
- Gate in / gate out: vehicle, driver, TIR carnet and CMR registration. A truck can't be registered twice while it is on site.
- Yard: zones and slots, automatic or manual slot assignment, live yard board.
- Operations: direct transfer (truck to truck), warehouse unloading, warehouse loading.
- Warehouse: stock lots per cargo owner, created by unloads and consumed by loads.
- Customs: clearance flag that can be set before or after the physical work.
- Weighbridge: gross / tare / net weigh tickets.
- Billing: configurable tariffs (per day, per tonne, per service). Exit is blocked until operations are finished, customs is cleared and charges are paid.
- UI in English, Russian and Uzbek. Add a language with one JSON file.
- REST API with OpenAPI docs at
/docs.
Try it
git clone https://github.com/Khan-ipak/karvon.git
cd karvon
docker compose upOpen http://localhost:8000. A demo terminal with trucks in different stages is created on first start.
Not yet
Users and roles, database migrations, hardware integrations (weighbridge, ANPR cameras) and PDF documents are next on the roadmap. Issues labelled good first issue are a good place to start contributing.


