Skip to content

About

Tray app and command line tool for the HARDWARIO TOWER Bridge Module (FTDI FT260 USB to I²C): live readings, charts and alerts for the TOWER sensor modules, relay, GPS and NFC, with MQTT, REST, Prometheus and MCP.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

HARDWARIO TOWER

TOWER Bridge

Live readings, charts and alerts from HARDWARIO TOWER modules,
right in your menu bar or system tray.

CI Latest release License: MIT

Download · User manual · Command line · MQTT · REST API and MCP

The TOWER Bridge dashboard: relay control and temperature and humidity charts from a Climate Module and a Humidity Tag

What it does

TOWER Bridge is a desktop app for the HARDWARIO TOWER Bridge Module. Put TOWER modules on the bridge, plug it into your computer, and the app:

  • shows the current value in the menu bar or tray, and every reading in its menu;
  • records the history and draws interactive charts;
  • notifies you when a value leaves its range;
  • switches a relay, shows a GPS position on a map and writes a URL to an NFC tag;
  • shares the readings over MQTT, a REST API, Prometheus metrics and MCP.

It runs on Windows, macOS and Linux. tower-bridge-cli, its headless sibling, does the same in a terminal or as a service on a Raspberry Pi. TOWER Bridge continues hardwario/enmon, the command-line reader for the same hardware.

Hardware

TOWER Bridge Module

The TOWER Bridge Module connects TOWER modules to a computer over USB. It is an FTDI FT260 USB to I²C bridge with an I²C switch, so it has two channels: put a Climate Module on one and sensor tags on the other, or anything on both.

The app finds the modules by itself, names them from the parts it detects, and looks again every minute, so a tag plugged in later shows up on its own.

Windows and macOS need no driver. On Linux, install the udev rule (see First run).


TOWER Climate Module
Climate Module
temperature, humidity, illuminance, pressure
TOWER CO2 Module
CO2 Module
CO₂, pressure compensated
TOWER Relay Module
Relay Module
switch or pulse a load
TOWER GPS Module
GPS Module
position, altitude, satellites
TOWER Humidity Tag
Humidity Tag
humidity, temperature
TOWER Temperature Tag
Temperature Tag
temperature
TOWER Lux Meter Tag
Lux Meter Tag
illuminance
TOWER Barometer Tag
Barometer Tag
pressure, altitude

Also supported: the TOWER VOC-LP Tag (TVOC, humidity compensated) and the TOWER NFC Tag (a URL that phones open when they touch it).

Features

Dashboard and charts

A panel per quantity with a line per module, the latest values in large type, and a chart of the chosen span.

  • 1 h to 365 days, or drag to pan through everything stored
  • Ctrl/⌘+scroll, pinch or Shift+drag to zoom; the exact value and time under the pointer
  • min, average and max as numbers and optional lines, alert limits as light red bands
  • panels rearranged by dragging and maximized with a click; colors from an 8-color palette
A temperature panel with two sensors, min, average and max lines, and the alert band

Relay, GPS and NFC

  • Relay Module: switch it to TRUE or FALSE, or pulse it for a set time, from the dashboard, REST, MCP or MQTT
  • GPS Module: fix, position on an offline map (with a link to OpenStreetMap), altitude and satellites
  • NFC Tag: write a URL (an NDEF URI record) that phones open when they touch the tag
The relay card: activate TRUE or FALSE, pulse TRUE or FALSE, pulse duration The GPS card: position fix, coordinates, accuracy, altitude and the offline map

Alerts

A notification when a value leaves its range, with hysteresis so a value hovering at the limit does not flood you, a repeat interval, and an optional note when it is back to normal. Another one when the bridge is disconnected.

Alert limits for temperature, humidity, illuminance, pressure and CO2

History and export

Every reading is stored in SQLite (90 days by default) in the data folder shown in Settings → Data. The Data page shows it as a table, over a span or a custom range, and exports it as CSV or XLSX.

The Data page: a table of readings per module with CSV and XLSX export

MQTT, REST, Prometheus and MCP

All optional and off by default:

  • MQTT to your own broker (Mosquitto, Home Assistant): every reading with its I²C channel, relay commands, and the app's availability (docs/mqtt.md)

    $ mosquitto_sub -h broker.local -t 'tower/#' -v
    tower/status online
    tower/temperature/0 23.46
    tower/humidity/0 45.2
    tower/co2/0 612
    
  • REST API and Prometheus metrics for scripts and Grafana, and an MCP server so AI assistants (Claude, Cursor, VS Code) can read the sensors (docs/api.md)

    claude mcp add --transport http tower-bridge http://127.0.0.1:8180/mcp

Command line

tower-bridge-cli shares the app's settings and history. It has a terminal dashboard, commands for scripts (text or JSON), and a service without a window for a Raspberry Pi or a server (docs/cli.md).

The tower-bridge-cli terminal dashboard: values per I²C channel with sparklines, a temperature chart, the relay, GPS and NFC, and the log
tower-bridge-cli                         # the dashboard (in a terminal)
tower-bridge-cli status                  # the bridge, its modules and the latest values
tower-bridge-cli --json watch | jq .     # a line per reading, as NDJSON
tower-bridge-cli relay pulse --ms 3000   # TRUE or FALSE for 3 s, then back
tower-bridge-cli export --last 7d -o week.xlsx
tower-bridge-cli run                     # the service: history, alerts, MQTT, API

And also

  • Open at login
  • Light or dark theme, or follow the system; date and 12/24-hour time format
  • English, Čeština, Slovenčina, Deutsch and Polski (follows the system language by default), including the tray menu and notifications
  • One file per platform, no installer on Windows
  • A notice in the tray and on the Dashboard when a newer version is out
  • The user manual is built in: open Manual in the sidebar

Download

Get the latest release:

Platform File
Windows 10/11 (x64) tower-bridge-<version>-windows-x64-portable.exe
macOS 11+ with Safari 16.2+ (Apple silicon and Intel) tower-bridge-<version>-macos-universal.dmg
Linux (x86_64) tower-bridge-<version>-linux-x86_64.AppImage
Command line, every platform (Linux also on 64-bit ARM) tower-bridge-cli-<version>-<target>.tar.gz (.zip on Windows), see docs/cli.md

First run

Windows

Run the exe; no installation needed.

  • The dashboard needs the Microsoft Edge WebView2 Runtime, which ships with Windows 11 and current Windows 10.
  • The exe is signed by HARDWARIO a.s. While a new release is still unknown to SmartScreen it may warn: choose More info → Run anyway.
  • Windows 11 may hide new tray icons in the overflow area; drag the icon to the taskbar to keep it visible.

Portable mode: create a folder named data next to the exe. Settings, history and logs are then stored there instead of %LOCALAPPDATA%, so the app can run from a USB stick. The only thing written outside is a registry key that lets Windows show notifications (HKCU\Software\Classes\AppUserModelId\com.hardwario.tower-bridge).

macOS

Open the dmg and drag TOWER Bridge to Applications (Open at Login requires the app to be in Applications).

  • The app is signed by HARDWARIO and notarized by Apple, so it opens without warnings.
  • At its first start it asks for permission to send notifications (alerts and the test in Alerts need it).
  • The window is drawn by the system's WebKit, so keep Safari updated (16.2 or newer; Software Update offers it for macOS 11 too).
Linux

Install the udev rule (70-hardwario-tower-bridge.rules, a release asset, also in packaging/linux/) so your user can open the bridge:

sudo cp 70-hardwario-tower-bridge.rules /etc/udev/rules.d/
sudo udevadm control --reload && sudo udevadm trigger

Then see docs/linux.md for the kernel driver notes and the GNOME tray extension.

Good to know

  • The menu bar or tray shows the value chosen in Settings → Value in menu bar. Click the icon for all readings and quick toggles; on Windows a left click opens the dashboard.
  • Closing the dashboard keeps the app running in the tray. Quit from the tray menu.
  • Without a desktop, tower-bridge-cli run does what the app does. Only one of them runs per data folder; other commands then go through its API server.
  • The manual's source, in all five languages, is in docs/manual.

Updates

Once a day the app asks GitHub for the newest release (and sends nothing else). When a newer one is out, the tray menu offers it, the Dashboard shows a banner and a notification says so once. The app does not update itself: download the new version, quit TOWER Bridge and put the new version in place of the old one. Delete the old exe or AppImage before the first start of the new one, so Open at Login moves over to it; a portable exe stays next to its data folder. Settings and history are kept. Settings → About shows the last check and turns the daily check off.

Building from source

Requirements: Rust 1.99+, Node.js 22+, and the Tauri prerequisites for your OS (on Linux: libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libudev-dev).

npm ci
npm run tauri dev                         # run with hot reload
TOWER_BRIDGE_SIMULATE=1 npm run tauri dev # no hardware: a simulated bridge with every module
npm run tauri build                       # release bundles (dmg / AppImage)
npm run tauri build -- --no-bundle        # Windows portable exe

A debug binary started directly (cargo run -p tower-bridge) loads the dashboard from the Vite dev server at localhost:1420 and shows a blank window without it. Use npm run tauri dev, or embed the dashboard: npm run build && cargo run -p tower-bridge --features tauri/custom-protocol.

npm run dev and opening http://localhost:1420/preview.html runs the dashboard in a browser against a mocked backend.

Development helpers
Variable Effect
TOWER_BRIDGE_SIMULATE=1 (or --simulate) Use a simulated bridge; data goes to a separate simulated folder. Runs alongside an installed copy (no single-instance check)
TOWER_BRIDGE_SEED_DAYS=14 With simulation, fill an empty history with generated data
TOWER_BRIDGE_DATA_DIR=/path Override the data folder (also skips the single-instance check)
TOWER_BRIDGE_LOG=debug Log level (logs also go to the data folder)
TOWER_BRIDGE_UPDATE_URL=http://… Ask this address instead of GitHub for the newest release (a JSON file with tag_name), to try the update notice

npm run manual:screenshots regenerates the screenshots of the user manual (also used in this README) from the browser preview, in every language and theme (needs Google Chrome). npm run cli:screenshot regenerates the one of the CLI dashboard on the simulated bridge (needs Python 3 and Google Chrome).

Translations: the dashboard dictionaries are src/lib/i18n/{en,cs,sk,de,pl}.ts (English is the reference; the others are type-checked against it). Tray menu, notification and dialog texts are in src-tauri/src/i18n.rs.

Tests and checks
cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-features
npm run check && npm test
npm run test:ui          # browser smoke test of every view (needs Google Chrome)
npm run test:ui:webkit   # the same in WebKit (npx playwright-core install webkit)
npm run notices -- --check
npm run build

Releases are built, signed and drafted by GitHub Actions from a version tag: see docs/release.md.

Project layout

Path Contents
crates/tower-bridge-core FT260 transport (hidapi, Linux i2c-dev), sensor drivers, sensor detection on both I²C channels, acquisition thread, alert engine, SQLite store, MQTT client, REST/MCP server
crates/tower-bridge-service The service the app and the CLI share: data folder and settings, the hub (storage, alerts, MQTT), commands to the bridge, the API server; one instance per data folder
crates/tower-bridge-cli tower-bridge-cli: terminal dashboard, commands, the service without a window (run), MCP bridge, and the bring-up toolbox
src-tauri Desktop app: tray, dashboard window, notifications, Tauri commands
src Dashboard UI (Svelte 5, uPlot); translations in src/lib/i18n/
docs Command line, Hardware protocol, Linux, MQTT, REST API & MCP, user manual
packaging/linux udev rule

Contributing

Read AGENTS.md first: architecture, commands, conventions and lessons learned, for people and coding agents alike. Work in progress is listed in TODO.md.

License

MIT, © 2026 HARDWARIO a.s. See LICENSE.

The MIT license covers the source code. The HARDWARIO and TOWER names and the HARDWARIO logo are trademarks of HARDWARIO a.s. and are not licensed for use in derived products.

Third-party components include Tauri (MIT/Apache-2.0), hidapi (BSD-3-Clause), rumqttc (Apache-2.0), axum (MIT), SQLite (public domain), uPlot (MIT), Svelte (MIT), icons from Lucide (ISC), the Inter and Roboto Mono fonts (SIL OFL 1.1, src/assets/fonts/OFL-*.txt), the Barlow Condensed font (SIL OFL 1.1, src-tauri/assets/fonts/OFL.txt), and map data from Natural Earth (public domain) via world-atlas (ISC) with place names from Wikidata (CC0).

THIRD-PARTY-NOTICES.md lists every crate, npm package, font, icon set and map source in the app with its license text; the app shows it from the About chapter of the Manual. Regenerate it with npm run notices after a dependency change (CI fails when it is out of date).

About

Tray app and command line tool for the HARDWARIO TOWER Bridge Module (FTDI FT260 USB to I²C): live readings, charts and alerts for the TOWER sensor modules, relay, GPS and NFC, with MQTT, REST, Prometheus and MCP.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages