Repository navigation
OpenMES v0.29.0 — Reliable machine connectivity, line stops from issues, scoped API tokens, integration REST API
OpenMES v0.29.0 — Reliable machine connectivity (OPC UA, Modbus, MQTT), line stops from issues, scoped API tokens, integration REST API
OpenMES v0.29.0 is a release for plants that connect machines and other systems to their open-source MES. Machine data collection over OPC UA, Modbus and MQTT now holds up on a real shop floor: no lost or double-counted parts, and no silent disconnects. An issue can stop a production line or a single machine until it is resolved. Scoped API tokens let reporting tools, AI assistants and machine gateways in without full access. The REST API gains paging, search and filters for ERP, BI and mobile integrations. The release also fixes calendar dates and analytics windows across time zones, and patches Laravel and Symfony security advisories.
Highlights
Machine data collection you can trust — OPC UA, Modbus TCP and MQTT
- OPC UA
- Production counts are accepted, queued while OpenMES is unreachable, and never counted twice.
- The gateway re-reads its configuration every minute.
- Each connection page shows the exact start command, flags a
localhostendpoint that cannot work from Docker, and carries a step-by-step setup guide. - A gateway that runs but cannot reach its machine reports the error on that page, so "Not running" is no longer a mystery.
- Modbus TCP
- One poller serves every PLC, so a restarted or unplugged PLC no longer blocks the others.
- It reconnects with back-off.
- MQTT
- Each message is processed exactly once, and
plant/+/#wildcards match. - Status actions and create issue mappings work.
- Each message is processed exactly once, and
- Every collector
- Picks up setting and tag changes without a container restart.
- Stores machine timestamps in the plant time zone.
- Shows connected only while it is actually running.
Stop the line from an issue
A reported issue can now block the whole production line or one machine. It opens a downtime with a reason and holds every active work order on that line at every production gate until the issue is resolved. Resolving the issue closes the downtime and releases the line, so OEE, downtime reports and the shift handover tell the same story.
Scoped API tokens for integrations and AI assistants
Settings → API Tokens has a new Access option:
- Read-only tokens read everything a reporting tool, a BI dashboard or an AI assistant needs, and are refused on any write.
- Machine gateway (OPC UA) tokens can only read their connection's settings and send machine data. They get
403everywhere else, including routes added by modules.
A REST API built for ERP, BI and mobile integrations
- Work orders
- opt-in paging;
- free-text search over order number, customer order, description and product;
- date-range filters;
- a lean
fields=summarylisting.
- OEE and downtimes: paging and range filters.
- Shift handover: details and history, plus a show endpoint.
- Material lots: unit-level where-used for recalls, and lookup by lot number.
- Time zone:
/api/auth/mereports the plant time zone, so clients show times the way the plant does.
Serial numbers, packing rules and tester logs
- Serial-number labels printed ahead of the line go onto the units started on their process serial (PSN).
- Packing can require a serial number and a work order, so every packed unit is traceable and counts towards an order.
traceability:import-jsonl --record-onlyloads historical tester logs without touching production.
Planning and traceability
- The weekly production planner opens the daily view from a day header.
- The traceability work-orders table gets a Sort by (newest, recent activity, recently completed, planned start, due date).
- A new machine-shop demo replays a full week of linked orders, lots, pallets and serial history, so every screen has data to explore.
Security
- Live-sync collections check each reader. An Operator can no longer read customer, company, worker or user records meant for the admin panel. A supervisor can be given machine counters without the connectivity configuration. Reported by @p-w (#403).
- Patched dependencies. Laravel 12.72.0 and Symfony 7.4.23 close the advisories reported by
composer audit: trusted-proxy spoofing, HEAD requests bypassing method rules, credential leaks in scoped HTTP clients and a YAML parse-time DoS. On the front end, axios 1.21.1 and follow-redirects 1.16.3;npm audit --omit=devis clean.
Fixes
- Dates. Calendar dates (expiry, manufacturing and service dates, and more) no longer read as the previous day east of UTC. Analytics count each figure on the day it belongs to.
- Search and tables.
- Work-order search in the API works on PostgreSQL.
- Table search and filters match the labels the cells show.
- A search that hides every row says so instead of "nothing here yet".
- Navigation.
- A mistyped record link answers not found instead of a server error.
- Signing in returns you to the page you opened.
- Planning and reports.
- Multi-level bills of materials are handled in MRP net requirements, goods receipts and import.
- The downtime report no longer fails on inspection issues raised outside an order.
- The dashboard OEE overview shows the meaningful record for each line.
- Traceability step durations are exact to the second.
Upgrading
docker compose pull && docker compose up -d # or: git pull origin main && docker compose build --pull && docker compose up -dMigrations run on start. They add the issue blocks line flag, an index on machine counter readings, and the tab:machine_counters permission. The permission is granted to every role that already holds tab:connectivity.
If you run the connectivity profile:
- recreate the Modbus poller with
docker compose --profile connectivity up -d modbus-poller(MODBUS_CONNECTION_IDis no longer used); - rebuild the OPC UA gateway image;
- re-save any MQTT mapping condition that does not parse, because an unreadable condition now never matches.
API clients: DB date fields now arrive as YYYY-MM-DD instead of a UTC timestamp.
Before release, the build was verified on PostgreSQL:
- 4,067 backend tests and the end-to-end suite;
- all 151 pages walked as Admin, Supervisor and Operator;
- three shop-floor scenarios.
Full details are in the CHANGELOG. Thanks to @JanKolo04, @Svannte, @AswinArun and @p-w for their contributions.
Full changelog: v0.28.0...v0.29.0
Installation
Web / self-hosted: download openmmes-v0.29.0.zip below — it is self-contained (PHP dependencies in vendor/ and the built frontend in backend/public/build/ are already bundled, so no composer install or npm build is required).
Desktop: grab the installer for your OS — Windows *-setup.exe, macOS *.dmg, or Linux *.deb / *.rpm. They bundle PHP + the backend and run OpenMES as a local app / LAN server.
Mobile (Android): install openmes-mobile-v0.29.0.apk and point it at your OpenMES server.
Shared hosting (no terminal): unzip the web package, upload the folder, point the document root at the package root, then open the URL — the browser-based setup wizard handles environment, database and the admin account.
Docker: unzip the web package and run docker compose up -d from the package root (or bash install.sh).
Changes
- Merge pull request #415 from Mes-Open/release/0.29.0 (c8263cf)
- chore(release): 0.29.0 (a1d5f28)
- Merge pull request #414 from Mes-Open/chore/pre-release-check (72d197f)
- docs(changelog): keep the release-check entries under Unreleased (a3d2d6a)
- test(e2e): narrow the MRP shortage list to this run before asserting (1237abf)
- test(e2e): bring the scenario suite back in line with the React UI (c2c7f2c)
- chore(deps): patch Laravel, Symfony, axios and follow-redirects advisories (31a6c43)
- docs(changelog): release-check follow-ups (cdbca31)
- fix(tables): say when a search or filter hides every row (b7ad234)
- fix(auth): return to the requested page after signing in (0907b8e)
- fix(routes): answer 404 for a non-numeric record id (c3c75f8)
- fix(api): work-order search escapes with ! so it runs on PostgreSQL (3f82d6e)
- chore: merge main (v0.28.0, #396, #403) into develop (bfc958e)
- Merge pull request #413 from Mes-Open/fix/multilevel-bom-mrp (ccb9f34)
- Merge pull request #412 from Mes-Open/fix/machine-shop-demo-consistency (1e2ab5b)
- Merge pull request #411 from Mes-Open/fix/date-only-api-serialization (6c301b4)
- fix(dates): hand out a fresh Carbon from CalendarDate on every read (15073e1)
- Merge remote-tracking branch 'origin/develop' into fix/pr411-review (aae94b3)
- Merge pull request #410 from Mes-Open/fix/analytics-date-windows (4dd5105)
- Merge pull request #409 from Mes-Open/feat/api-plant-timezone (f2724e4)
- fix(api): read calendar dates at midnight with a CalendarDate cast (fd68c55)
- fix(seeders): keep post-batch events and paused orders consistent with the present (9aebb53)
- fix(mrp): address CodeRabbit review on #408 (688e0a1)
- Merge pull request #408 from Mes-Open/fix/multilevel-bom-mrp (b00b55b)
- fix: multi-level BOM in MRP, receipts and import (369f8e2)
- fix(seeders): record nothing after the present (d5e14bd)
- fix(analytics): throughput days=N covers N plant days (e9a43ad)
- Merge remote-tracking branch 'origin/develop' into fix/machine-shop-demo-consistency (e29d1c4)
- fix(seeders): commit the lifecycle replay order by order (4e68680)
- fix(analytics): measure each window on the column that dates it (a64f06f)
- test: pin the supplier number in the lot_number filter test (c5ab90e)
- feat(api): report the plant time zone in /api/auth/me (e10cefb)
- fix(api): serialize DB date columns as the calendar day they name (5ec54d7)
- Merge pull request #407 from Mes-Open/feat/oee-downtime-api-paging (07f4770)
- Merge remote-tracking branch 'origin/develop' into fix/pr407-merge (819cb80)
- Merge pull request #406 from Mes-Open/feat/shift-handover-api-details (d409361)
- Merge remote-tracking branch 'origin/develop' into fix/pr406-review (e71859b)
- fix(api): default page size for empty per_page, lean web handover rows (571ccbf)
- Merge pull request #405 from Mes-Open/feat/lot-where-used (b6c1c0a)
- Merge branch 'develop' into feat/oee-downtime-api-paging (eb06481)
- Merge branch 'develop' into feat/shift-handover-api-details (c37b7cf)
- Merge branch 'develop' into feat/lot-where-used (8cd4438)
- Merge pull request #403 from p-w/security-hardening (825556d)
- Merge pull request #404 from Mes-Open/fix/collection-role-gate (695f45b)
- fix(sync): authorize each live-sync collection for its readers (81cf27c)
- Enforce Admin/Supervisor on the collection snapshot endpoint (c187b1c)
- Merge pull request #398 from Mes-Open/fix/opcua-gateway-status (b090f88)
- Merge pull request #402 from Mes-Open/feat/work-orders-api-paging (8d8de46)
- Merge branch 'develop' into feat/work-orders-api-paging (6821fac)
- Merge pull request #401 from Mes-Open/feat/api-token-read-only-scope (dec76af)
- Merge branch 'develop' into feat/api-token-read-only-scope (0970bca)
- fix(seeders): demo consistency review follow-ups (e0c2308)
- Merge pull request #399 from Mes-Open/feat/bc-traceability (e6acc70)
- feat(api): fields=summary for the work-orders listing (4fb72ba)
- fix(api): shift handover review follow-ups (28def17)
- fix(api): OEE and downtime listing review follow-ups (435224f)
- fix(traceability): where-used review follow-ups (a34c11d)
- fix(api): work-orders listing review follow-ups (ec7d3cc)
- fix(seeders): file machine-shop demo records on the operation they describe (4b1fc4f)
- docs: document OEE and downtime list paging, filters and lean mode (e8c9ee8)
- docs: document material lot where-used endpoint and lot_number filter (6fd84eb)
- docs: document the work-orders list query contract (9ec2d8d)
- feat: opt-in paging and range filters for the OEE and downtime APIs (8f48580)
- feat: unit-level where-used for material lots, lot_number filter (cf87884)
- feat(api): add opt-in paging, search and lean listing to the work-orders index (059b0f0)
- feat(api): expose shift handover details, history filters and show endpoint (e50d620)
- Merge remote-tracking branch 'origin/develop' into feat/api-token-read-only-scope (598c33d)
- fix(connectivity): address second review round (48685c3)
- i18n: generic Polish label for the serial-number packing switch (d4d2dd9)
- fix(connectivity): label assigned line dropdown (eafa68d)
- chore: merge develop (52274d1)
- feat(traceability): pre-issued SN labels on PSN-started units, packing requirements, record-only test import (39ac394)
- Merge pull request #397 from Mes-Open/feat/machine-shop-demo-lifecycle (639ccd3)
- fix(connectivity): address review feedback (d23423e)
- docs(changelog): downtime report fix (5762692)
- fix(connectivity): unify lists and translate UI (90a4f36)
- fix(reports): downtime report no longer fails on issues without a work order (ca36086)
- fix(connectivity): harden machine data collection (857770f)
- feat(api): read-only API tokens (8575ee6)
- feat(issues): block line and machine on issue (da45503)
- feat(seeders): machine-shop lifecycle seeder replaying a live week (29c9d29)
- fix(dashboard): pick the meaningful OEE record per line for today (a824c70)
- feat(traceability): sort selector on the work orders browse table (34dbb4e)
- fix(traceability): measure batch step durations to the second (419b996)
- Merge pull request #395 from Mes-Open/fix/opcua-gateway-status (5c613d8)
- Merge pull request #396 from AswinArun/feat/weekly-day-header-opens-daily (d98b219)
- feat: open the daily planner from a weekly day header (cd8c0a6)
- fix(opcua): report outages in gateway heartbeats (dfd71d0)
- fix(opcua): block gateway tokens on module routes (9d19444)
- fix(opcua): gateway token and setup guidance (efc0ea2)
- Merge pull request #394 from Mes-Open/fix/table-search-values (0b4d8dc)
- fix(tables): search columns by displayed labels (9701e2a)