Documentation Index
Fetch the complete documentation index at: https://docs.appliedaifoundation.org/llms.txt
Use this file to discover all available pages before exploring further.
Download PDF
Open the original PDF guideline
| Part | Audience | When |
|---|---|---|
| 1 — Shore setup | Office / superintendent | Once per vessel |
| 2 — Vessel setup | Master / officer on new computer | Once per computer |
| 3 — Every submit | Master | Automatic on each Submit |
| 4 — History Viewer | Any crew member | Any time |
| 5 — Troubleshooting | Master / IT | When something goes wrong |
Part 1 — Shore: Configure the Form Before Sending
The form is delivered to the vessel as a single.html file alongside an empty history.json and the History Viewer. Before sending, the office fills in vessel identifiers and validation limits so the Master doesn’t have to retype them on every machine.
Open Settings
Click the ⚙ Settings button in the top-right of the form header. The Settings modal opens.
Fill vessel identifiers
Complete the following fields for this vessel:
| Field | Meaning |
|---|---|
| IMO Number | Vessel’s IMO number. Required. |
| Vessel Name | Full vessel name (appears in the email subject). |
| Vessel Code | Short code used in archive filenames. Typically 4–6 characters. |
| Report Email Address | The shore inbox the form’s mailto: link should target. |
Set validation limits
Below the vessel section is Validation Limits, organised into collapsible groups. Click any group header to expand it.
For each parameter, type the Min and Max values acceptable for this vessel. Both fields are optional — leave blank to disable that bound.
| Group | Parameters |
|---|---|
| Draft & Displacement | Fwd Draft, Aft Draft, DWT, Displacement |
| Speed & Distance | Reported Speed, CP Speed, Observed Distance, Engine Distance, Speed Log Distance |
| Main Engine | ME Hours, ME Revs, ME KWhrs, Average KW, ME Output, Steaming Hours |
| Generators & Auxiliary | Gen 1–4 Hours / KWhrs, A/E Sea Load, Aux Boiler Hours, Incinerator Hours, FW Generator Hours |
| Tanks & ROB | Bilge Water ROB, Sludge ROB, Fresh Water ROB, Slops ROB |
| Lub Oil ROB | High TBN, Low TBN, ME Crankcase, A/E Lub Oil |
| Fuel ROB | HSFO, LSMGO, VLSFO, VLSFO (≤80 cSt) |
| Weather | Air Temp, Sea Temp, Bar Pressure, Avg Cargo Temp, Heading |
| BDN Quantity (MT) | Per fuel grade |
| Fuel Density (kg/m³) | Per fuel grade |
| Sulphur Content (%) | Per fuel grade |
| Viscosity (cSt) | Per fuel grade |
Values outside the configured range trigger an orange non-blocking warning beside the input on the report form. The form still submits, but the vessel sees the warning and can correct it before sending.
Export Configured HTML
Click the green ⬇ Export Configured HTML button in the modal footer.This does three things in one click:When the crew opens the exported file, the Settings modal already shows the configured values. They do not need to type anything.
- Saves the settings to the shore browser’s localStorage (same as Save & Apply)
- Embeds the settings directly into the HTML file source
- Downloads
{VesselName}-Metaweave-Reports.html
Browser localStorage is tied to the machine and file path — it does not travel with the file. Export Configured HTML bakes the settings into the HTML itself so the vessel crew see the correct vessel name, IMO, and limits the moment they open the file, on any computer.
Send the bundle to the vessel
Email or copy via USB the following three files together, keeping them in the same folder:
{VesselName}-Metaweave-Reports.html— the configured form for this vesselMetaweave-History-Viewer.html— the read-only history browser (one copy, never modified)history.json— empty ([]) on day 1, grows on the vessel over time
\\ship-nas\Performance\Metaweave\) and never rename them.Configuring for the next vessel
The base form on the shore computer is unchanged after an export. To configure for another vessel:
- Open Settings again
- Overwrite the vessel details and limits with the new vessel’s values
- Click ⬇ Export Configured HTML again
- A new file
{Vessel2Name}-Metaweave-Reports.htmldownloads - Send that file to Vessel 2
Part 2 — Vessel: One-Time Setup Per Computer
The first time the Master opens the form on a new computer, the local history archive is not yet linked. He needs to point the form at the sharedhistory.json.
Open Settings and link history.json
Click the gear icon on the left sidebar rail to open Settings. The Local History File section is at the top.Click Link history.json. A standard browser file picker opens. Navigate to the shared drive folder and select
history.json.Chrome shows a permission prompt — click Allow to grant read and write access for this file.The status line should now read Linked: history.json · 0 rows · last write — in black. The Link button is replaced by Re-link and Unlink buttons.The form remembers this link in the browser’s IndexedDB. The Master only needs to re-link if he clears browser data, switches browsers, or the file is moved to a different path.
Per-session Allow dialog
Every time the form is reopened in a new browser session, Chrome asks “Allow this site to re-access history.json?” before the first archive write. Click Allow once per session — every Submit thereafter writes silently.
Multiple officers sharing the file
Each daily report copy is still passed serially around the ship (2/O fills navigation → CE fills consumption → Master reviews → Master submits). Only the Master’s machine needs
history.json linked, because only the Master clicks Submit. Other officers’ machines never need to touch the history file.Part 3 — What Happens on Every Submit
Once Settings are filled andhistory.json is linked, archival is fully automatic. There is no extra button to click.
Success path
- Master fills the report and clicks Submit.
- The form validates inputs as usual.
- A Preview popup appears with the encrypted email body.
- In the background (typically under one second), the form:
- Reads the current
history.jsonfrom the shared drive. - Builds a new row with a stable composite ID based on the report type.
- Inserts the row, or upserts it if a row with the same ID already exists (the correction case — useful when shore asks for a re-submission of an earlier date).
- Writes the updated array silently back to
history.json.
- Reads the current
- A small green toast appears at the top-right of the preview:
- “Archived (insert). 42 rows in history.” for a brand-new report.
- “Archived (update). 42 rows in history.” for a correction.
- Master copies the encrypted block from the preview into a plain-text Outlook email and sends it.
Failure path
If the archive write fails for any reason — file not linked, permission denied, shared drive offline, or file locked by another process — a red modal appears over the preview showing the failure reason.The modal offers three buttons:
| Button | What it does |
|---|---|
| Retry | Re-runs the archive step. Use after fixing the underlying issue (e.g. re-linking the file or reconnecting the shared drive). |
| Email without archiving | Skips the archive and proceeds directly to the mailto:. The report is still emailed to shore but will not appear in local history. Use only when archival is broken and the report cannot wait. |
| Cancel | Closes the modal and returns to the preview. Neither archive nor email happens. |
The local archive is a convenience for the vessel — the shore database is the authoritative source. If a row is missed locally because of “Email without archiving”, the report is still in the shore database and can be re-archived later by editing
history.json manually or by re-submitting.Part 4 — Browsing Past Reports (History Viewer)
The History Viewer is a separate HTML file that any crew member can open to browse the archived reports. It is read-only — it never writes tohistory.json.
First open
Double-click
Metaweave-History-Viewer.html from the shared drive. The landing page appears.Click Link history.json and pick the same file from the shared drive. Chrome asks for read permission (not read+write — the viewer never modifies the file). Click Allow.The viewer remembers this link in IndexedDB so subsequent opens skip straight to the data, with one Allow click required per session.Voyage Reports tab
The Voyage Reports tab shows Noon, Arrival, and Departure reports in one chronological list.Columns: Submitted · Type · Report UTC · Vessel · Voyage · Location · Port · Lat / Lon · EventsToolbar controls:
| Control | What it does |
|---|---|
| From / To date pickers | Filter by report date range. |
| Search text box | Free-text filter over vessel, IMO, voyage, port. Debounced 200 ms. |
| NOON / ARRIVAL / DEPARTURE pills | Toggle each report type on/off independently. |
| Reload (header) | Re-reads history.json from disk to pick up rows added since the viewer was opened. |
| Re-link (header) | Pick a different history.json file. |
| Export CSV (header) | Exports the current filtered rows as a flat CSV with ~100 scalar columns (one row per report, all parameters). Best for quick analysis in Excel. |
| Export Excel (header) | Exports a multi-sheet .xls with three sheets: Reports / Events / Event Bunker ROB, joined on a Row ID. Best for cross-sheet PivotTables and forensic drill-down. |
Other tabs
| Tab | Contents |
|---|---|
| Statement of Facts | SOF reports with port and activity count. |
| Bunker Reports | Bunker liftings with port, BDN number, and quantity. |
| Month-End ROB | Monthly fuel ROB snapshots. |
Drill-down detail
Click any row to open the drill-down modal. The modal shows all scalar fields grouped into readable zones:
Identity / Position & Port / Vessel State / Distance & Main Engine / Generators & Auxiliary / Lub Oil & Tanks / Slops & Fresh Water / Weather / Scrubber & FOWE / Bunker / BDN / Remarks / MasterEmpty zones are hidden so the view stays tight. For reports with events, an In-port events or At-sea events section appears with one card per event — event type, start → end, observed distance, plus a compact bunker ROB table per event showing only the columns that have values.Modal buttons:
| Button | What it does |
|---|---|
| Export Excel | Exports this single report as a richly formatted .xls with zone-grouped tables and per-event bunker ROB tables. Best for sending one report to someone unfamiliar with the form. |
| Opens the browser print dialog for the modal contents. | |
| Close | Closes the modal (also Esc or click on the dimmed backdrop). |
Bulk export for analysis
When the office asks for “the last 6 months of noon reports” or “all bunker reports for this vessel”, apply the relevant date and type filters on the appropriate tab, then click Export CSV. The CSV opens directly in Excel with one row per report and every numeric parameter as a column — ready for PivotTables, charts, or pasting into another spreadsheet.For a richer multi-sheet view (Reports + Events + Event Bunker ROB joined by Row ID), use Export Excel instead.