Settings & History
このコンテンツはまだ日本語訳がありません。
The Metaweave form ships with two features that are independent of any single report: a Settings panel for vessel identifiers and parameter validation limits, and a local history archive that records every submitted report on the ship’s shared drive so the crew can browse past submissions without a server.
This guide covers five parts:
| 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.
flowchart LR A[Open Settings panel] --> B[Fill vessel identifiers\n& validation limits] B --> C[Click Export Configured HTML] C --> D["Downloads {VesselName}-Metaweave-Reports.html"] D --> E[Send bundle to vessel] E --> F{Another vessel?} F -- Yes --> B F -- No --> G[Done]-
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.
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 For each parameter, type the Min and Max values acceptable for this vessel. Both fields are optional — leave blank to disable that bound.
-
Export Configured HTML
Click the green ⬇ Export Configured HTML button in the modal footer.
This does three things in one click:
- 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
When the crew opens the exported file, the Settings modal already shows the configured values. They do not need to type anything.
-
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
Tell the vessel to keep all three files in the same shared-drive folder (e.g.
\\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
Each exported copy is fully independent — changing settings for Vessel 2 does not affect the file already sent to Vessel 1.
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 shared history.json.
flowchart LR A[Open form] --> B[Open Settings] B --> C[Click Link history.json] C --> D[Browser file picker opens] D --> E[Select history.json on shared drive] E --> F[Chrome permission prompt] F --> G[Click Allow] G --> H[Status: Linked]-
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.
-
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.jsonlinked, 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 and history.json is linked, archival is fully automatic. There is no extra button to click.
flowchart TD A[Master fills report] --> B[Clicks Submit] B --> C{Validation passes?} C -- Yes --> D[Preview popup opens with encrypted email body] D --> E[Form reads history.json from shared drive] E --> F[Builds new row with composite ID] F --> G{Row with same ID exists?} G -- No --> H[Inserts new row] G -- Yes --> I[Upserts existing row — correction case] H --> J[Writes updated array back to history.json] I --> J J --> K[Green toast appears: Archived] K --> L[Master copies encrypted block into Outlook] L --> M[Sends email to shore]-
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.
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 to history.json.
flowchart LR A[Open Metaweave-History-Viewer.html] --> B[Click Link history.json] B --> C[Select history.json on shared drive] C --> D[Chrome read-only permission prompt] D --> E[Click Allow] E --> F[Reports load into tabs] F --> G[Browse / Filter / Search] G --> H{Need data out?} H -- Quick analysis --> I[Export CSV] H -- Multi-sheet drill-down --> J[Export Excel] H -- Single report --> K[Row drill-down → Export Excel]-
First open
Double-click
Metaweave-History-Viewer.htmlfrom 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 · Events
Toolbar 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.jsonfrom disk to pick up rows added since the viewer was opened.Re-link (header) Pick a different history.jsonfile.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 .xlswith 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. Each tab has the same toolbar and its own Export CSV / Export Excel buttons scoped to that report type.
-
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 / Master
Empty 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 .xlswith zone-grouped tables and per-event bunker ROB tables. Best for sending one report to someone unfamiliar with the form.Print Opens the browser print dialog for the modal contents. Close Closes the modal (also Escor 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.