Lightning Monitor Bridge icon
Lightning Monitor Bridge

Lightning Monitor Bridge

Is your Boltek detector plugged into a Windows PC, a Linux computer or a Raspberry Pi? The bridge shares it on your network, so Lightning Monitor on your Mac, iPhone and iPad can use it — up to 16 devices at once, with an optional token.

It's optional: if the detector is plugged into the Mac that runs Lightning Monitor, you don't need it. Free and open source (GPL).

Version 0.1.0 · Free · Windows 10 and 11, Linux, Raspberry Pi 4 and 5, macOS 14 or later

Highlights

Lightning Monitor Bridge 0.1.0 is the first release, free to download here and on GitHub.

  • LD-350 over USB, with waveforms: Lightning Monitor gets the detector's raw captures, so it can classify each strike as ground or cloud and positive or negative.
  • LD-250 on a serial adapter: share an LD-250 (or EFM-100) through a USB-to-serial adapter on any of the supported systems.
  • Found automatically: the bridge announces itself with Bonjour, so it appears in Lightning Monitor under On this network with the computer's name.
  • Up to 16 devices: Macs, iPhones and iPads watch the same detector at once. An optional token keeps other people on the network out.
  • Tray app or service: a bolt in the Windows notification area or the Mac menu bar, or a headless service that starts at boot on a Raspberry Pi.
  • NexStorm too: with the free NexStorm Connector, NexStorm on the same PC reads the detector through the bridge while Lightning Monitor uses it.

How it works

From the detector's computer to every screen

The bridge does what Lightning Monitor's own sharing does on a Mac, on a computer that doesn't run Lightning Monitor.

  1. Plug in the detector

    Connect an LD-350 to the computer's USB, or an LD-250 through a USB-to-serial adapter. Quit NexStorm, StormVue or Lightning Monitor on that computer first: only one program can open the detector at a time.

  2. Start the bridge

    It opens the detector, keeps it alive and shares it on TCP port 10001. On Windows a bolt appears in the notification area (yellow when the detector is connected); on a Mac, in the menu bar. On a Raspberry Pi it runs as a service with no screen.

  3. Connect from Lightning Monitor

    In Lightning Monitor: Settings › Detector › Connect via › Shared detector on the network, then pick the bridge under On this network. Enter the token if you set one.

  4. Everyone gets everything

    Everything the detector sends is relayed byte for byte to each connected device, including waveforms. Up to 16 devices can watch at once.

Features

What the bridge does

A small program with one job: share the detector reliably, on your own network.

⚡

LD-350 over USB

Reads the LD-350 directly with libusb (WinUSB on Windows), with full data including waveforms, so Lightning Monitor can classify strikes.

🪟

Boltek's driver on Windows

Prefer to keep Boltek's driver? Put LD350_DLL.dll from Boltek's LD-350 Programmers Toolkit next to the bridge. NexStorm can then use the detector again whenever the bridge is closed. The Windows build is 32-bit so Boltek's DLL can load.

🔀

Automatic driver choice

With ld350_driver set to auto (the default), the bridge uses WinUSB when it's installed and Boltek's driver otherwise. Set libusb or boltek to choose one.

🔌

LD-250 and EFM-100

Share an LD-250 or EFM-100 through a USB-to-serial adapter: set detector to ld250 and serial_port to the adapter's port, such as COM3 or /dev/ttyUSB0.

📡

Bonjour discovery

Announced on the local network as _lightningmon._tcp, so Lightning Monitor lists it under On this network with the computer's name (or the name you choose). Turn it off with advertise: false.

🔑

Token authentication

Run lightning-bridge token --new and enter the token in Lightning Monitor. Clients must then send it within 5 seconds of connecting. Without a token, anyone on the network can connect.

👥

Up to 16 devices

Macs, iPhones and iPads watch the same detector at once. A device more than 1 MB behind is disconnected so it can't hold the others up.

💓

Keeps the detector alive

The bridge sends the detector's keep-alive and status requests itself, and drops the ones clients send, so the detector is looked after once, not once per device.

🖱️

Tray and menu-bar app

Status, address, token state and client count at a glance, with Sharing on or off, Open at Login, Settings…, Reload Settings, Show Log and Quit.

⚙️

Runs as a service

lightning-bridge install-service starts it automatically with launchd, systemd or a Windows scheduled task. Add --tray for the tray app, or --system to start at boot.

🍓

Raspberry Pi installer

sudo ./install.sh copies the bridge to /usr/local/bin, adds a udev rule so the LD-350 opens without root, and starts a systemd service that runs at boot as your user.

🌀

NexStorm side by side

With the NexStorm Connector installed, NexStorm on the same PC reads the detector through the bridge instead of opening the USB itself, so NexStorm and Lightning Monitor use it at the same time.

⌨️

Command line

devices lists the detectors and serial ports the computer can see; config, token and run do the rest. Options override the settings file for one run, and the old ld_proxy.py options still work.

🔒

Private

It doesn't collect or send anything to the developer or the internet. It talks only to the detector and to the Lightning Monitor apps on your network, and its logs stay on your computer.

Platforms

Windows, Linux, Raspberry Pi and Mac

Ready-made downloads for each system. They all share the detector the same way.

Windows Tray app

  • Windows 10 and 11. Unzip and run Lightning Monitor Bridge.exe; lightning-bridge.exe is the command line.
  • LD-350 through WinUSB (installed with Zadig) or Boltek's own driver and LD350_DLL.dll.
  • LD-250 on a COM port.
  • Allow it through Windows Defender Firewall on private networks when asked.

Linux and Raspberry Pi Service

  • Raspberry Pi 4 and 5 with 64-bit Raspberry Pi OS Bookworm or later (arm64).
  • Linux x86_64: Ubuntu 22.04, Debian 12 or later.
  • Runs as the lightning-monitor-bridge systemd service, which starts at boot. Needs libusb-1.0-0, already installed on Raspberry Pi OS and Ubuntu.
  • lightning-bridge tray shows the tray icon on a desktop.

macOS Menu bar

  • macOS 14 or later on Apple silicon. Signed with a Developer ID and notarised by Apple.
  • For a Mac that shares a detector without running Lightning Monitor. Lightning Monitor on a Mac can already share its own detector.
  • A bolt appears in the menu bar. The same app runs headless from Terminal with run.

Other systems (32-bit or older Raspberry Pi OS, Intel Macs): install with Python 3.9 or later — python3 -m pip install "lightning-monitor-bridge[tray] @ git+https://github.com/brientim/lightning-monitor-bridge". macOS then needs brew install libusb, and Linux needs the udev rule in packaging/linux/.

Free

Download

You only need the bridge when the detector is plugged into a computer other than the Mac running Lightning Monitor. Downloads come from the latest release on GitHub.

Windows Free

Windows 10 and 11 · tray app and command line

Reads the LD-350 through WinUSB, with waveforms, or through Boltek's own driver, and shares an LD-250 on a COM port. With the NexStorm Connector, NexStorm on the same PC can read the detector through the bridge at the same time. The download's README-Windows.txt explains both drivers.

Linux and Raspberry Pi Free

Ubuntu 22.04 / Debian 12 or later · Raspberry Pi 4 and 5 (64-bit Raspberry Pi OS Bookworm or later)

Runs as a service that starts at boot — ideal for a Raspberry Pi next to the antenna.

macOS Free

macOS 14 or later · Apple silicon · signed and notarised

For a Mac that shares a detector without running Lightning Monitor itself. (Lightning Monitor on a Mac can already share its own detector.)

NexStorm Connector Preview

Windows 10 and 11 · NexStorm · version 0.2.0 preview, not yet code-signed

Lets NexStorm on a Windows PC read an LD-350 or LD-250 shared by Lightning Monitor on your Mac — or by this bridge on the same PC — at the same time as Lightning Monitor. NexStorm becomes one more viewer, like an iPhone. Run the installer, choose 1, and enter the Mac's name (Lightning Monitor › Settings › Detector › Sharing › Other devices connect to), port 10001 and the token: it tests the connection, then installs the connector and keeps Boltek's files. Choose 3 to put them back. Set the squelch and alarms on the Mac; NexStorm's own values aren't sent to the shared detector.

Set up

Share your detector

Quit NexStorm or StormVue first: only one program can open the detector at a time. (With the NexStorm Connector, NexStorm reads it through the bridge instead.)

  1. Install

    Windows: unzip and run Lightning Monitor Bridge.exe; a bolt appears in the notification area. Allow it on private networks when the firewall asks. Raspberry Pi / Linux: unpack and run sudo ./install.sh. Mac: open the app; a bolt appears in the menu bar.

  2. Choose the driver (Windows LD-350)

    Install WinUSB for LD-350 Lightning Detector (Interface 0) with Zadig (Options › List All Devices, choose WinUSB, Replace Driver) for waveforms. Or keep Boltek's driver and put LD350_DLL.dll from Boltek's LD-350 Programmers Toolkit next to the bridge; it needs the Visual C++ 2013 (x86) runtime.

  3. LD-250

    Set detector to ld250 and serial_port to the adapter's port (for example COM3 or /dev/ttyUSB0) in Settings…, then Reload Settings. On Linux: sudo ./install.sh --ld250 /dev/ttyUSB0.

  4. Connect

    In Lightning Monitor: Settings › Detector › Connect via › Shared detector on the network, then pick the bridge under On this network. If it doesn't appear, enter the host and port shown in the bridge's menu.

Configuration

Settings reference

Settings are a JSON file: Settings… in the tray opens it, and lightning-bridge config path shows where it is (on Windows, %APPDATA%\Lightning Monitor Bridge\config.json). Choose Reload Settings after editing.

📟

Detector

detector — ld350 (USB, the default) or ld250 (serial). serial_port — the LD-250's port: COM3, /dev/ttyUSB0 or /dev/cu.usbserial-….

🪟

Windows driver

ld350_driver — auto (default), libusb (WinUSB) or boltek. libusb and boltek_dll — library paths, only if they aren't found automatically.

🌐

Network

port — TCP port, default 10001. host — the address to listen on, default 0.0.0.0 (every network interface).

🔑

Access

token — clients must send it; empty lets anyone on the network connect. It can also come from the LIGHTNING_BRIDGE_TOKEN environment variable.

📡

Discovery

advertise — announce with Bonjour, default true. name — the name shown in Lightning Monitor; empty uses the computer's name.

⌨️

From the command line

lightning-bridge config shows the settings; config set detector ld250 changes one. Options override the file for a single run: run --ld250 COM3 --port 10002 --token ….

Useful commands: lightning-bridge devices (what this computer can see), lightning-bridge token --new (require a token), lightning-bridge run (share in the foreground; Ctrl+C stops), lightning-bridge install-service and uninstall-service. The README also lists the nexstorm_… settings used by the NexStorm features that are coming to the bridge's tray.

Security

Meant for your own network

Devices that connect can read the detector and send it commands, so keep it to networks and people you trust.

Use a token

Without a token, anyone on the network can read the detector and change its settings. With one, clients must authenticate first.

Not encrypted

The connection itself isn't encrypted, even with a token. Use it on a home or office network you control.

Not on the internet

Don't forward or expose the bridge's port to the internet.

Firewall

On Windows, allow the bridge on private networks only. To listen on one network interface, set host to its address.

Settings file

On Linux and macOS the settings file, which holds the token, is readable only by your user.

Signed downloads

The Mac download is signed and notarised. Windows releases are set up for signing through SignPath; until a download is signed, SmartScreen may warn.

Troubleshooting

If something doesn't work

Start with the log: Show Log in the tray opens bridge.log in the settings folder. On Linux, use journalctl -u lightning-monitor-bridge -f.

🔍

Not under "On this network"

Bonjour doesn't cross subnets. Enter the host and port shown in the bridge's menu (default port 10001) in Lightning Monitor instead, and check that advertise is true.

🔒

Detector can't be opened

Another program has it. Quit NexStorm, StormVue or Lightning Monitor on that computer, then try again. lightning-bridge devices shows what the computer can see.

🪟

LD-350 not found on Windows

Install WinUSB for LD-350 Lightning Detector (Interface 0) with Zadig, or put Boltek's LD350_DLL.dll next to the bridge and install the Visual C++ 2013 (x86) runtime.

🌀

NexStorm stopped finding the detector

NexStorm can't use the detector while WinUSB is installed. Use Boltek's driver instead, or install the NexStorm Connector so NexStorm reads the detector through the bridge.

⚠️

SmartScreen warning

Until the Windows download is code-signed, SmartScreen may warn. Choose More info › Run anyway. A newly signed program can still be warned about until it builds up download reputation.

🔑

Lightning Monitor can't connect

If the bridge uses a token, enter the same token in Lightning Monitor's Shared detector settings. The tray's status lines show whether a token is required.

🍓

Raspberry Pi: no detector

Run sudo ./install.sh again so the udev rule is in place, check libusb-1.0-0 is installed, and look at systemctl status lightning-monitor-bridge.

🐢

A device keeps dropping off

A device that falls more than 1 MB behind (for example a phone that has left Wi-Fi) is disconnected so the others aren't slowed down. It can connect again once it's back on the network.

Changelog

Release notes

The full list is in CHANGELOG.md on GitHub.

Next release In development

In the source code now; not yet in the published download.

  • A NexStorm menu in the Windows tray: choose the Mac to read (found with Bonjour) or This PC's Detector, Set Up NexStorm and Restore Boltek's Driver.
  • The NexStorm Connector and NexStorm Connector Setup.exe included in the Windows download, in its nexstorm folder.
  • Waveforms and LTS-3 GPS time through Boltek's driver, so strikes are classified there too (not yet tried with a detector).
  • NexStorm's own LD-250 mode through a virtual COM port pair (not yet tried with com0com on Windows).

0.1.0 — first release Released

  • Shares an LD-350 (USB) or LD-250 (serial) using Lightning Monitor's sharing protocol: up to 16 clients, optional token, line limits, slow clients dropped.
  • Windows: WinUSB (waveforms) or Boltek's driver through LD350_DLL.dll; auto tries WinUSB first. A 32-bit build so Boltek's DLL can load.
  • Bonjour announcement, so Lightning Monitor lists it under On this network.
  • Tray (Windows, Linux) and menu-bar (macOS) app with status, client count, sharing on or off, Open at Login, settings and log.
  • Settings file, devices, config, token and install-service for launchd, systemd and a Windows scheduled task; Linux install.sh with the LD-350 udev rule.
  • Replaces the earlier ld_proxy.py helper; its command-line options still work.

Questions or problems?

The README covers settings, tokens and running as a service. Report issues on GitHub, or use the contact form and choose Lightning Monitor.

Lightning Monitor Bridge is free software under the GPL-3.0-or-later licence. Boltek, LD-350, LD-250, NexStorm and StormVue are trademarks of their owners; this project is not affiliated with Boltek.