DEV Community

Great Work
Great Work

Posted on Originally published at multimeterapp.com

Show your internet speed in your Mac menu bar

This guide first appeared on multimeterapp.com. Multimeter is a Mac menu bar app that turns any number into a live meter.

macOS has a speed test built in: networkQuality. A full test takes 15 to 20 seconds and moves a fair amount of data, so it shouldn’t run every minute and doesn’t fit in a Script meter’s 10 seconds anyway. Instead, macOS runs it once an hour in the background and writes the result to a file; a File meter shows it the moment it lands.

What you need

  • Multimeter for macOS 13 or later, $19.99 once.
  • Nothing to install. networkQuality and launchd come with macOS.

Set it up

  1. Save this as ~/Library/LaunchAgents/local.speedtest.plist:
   <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
   <plist version="1.0">
   <dict>
     <key>Label</key>
     <string>local.speedtest</string>
     <key>ProgramArguments</key>
     <array>
       <string>/bin/zsh</string>
       <string>-c</string>
       <string>mkdir -p ~/.multimeter &amp;&amp; /usr/bin/networkQuality -u | awk '/Downlink capacity/ {print $3}' &gt; ~/.multimeter/speed.tmp &amp;&amp; mv ~/.multimeter/speed.tmp ~/.multimeter/speed.txt</string>
     </array>
     <key>StartInterval</key>
     <integer>3600</integer>
     <key>RunAtLoad</key>
     <true/>
   </dict>
   </plist>
Enter fullscreen mode Exit fullscreen mode
  1. Start it. It runs right away and then every hour:
   launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/local.speedtest.plist
Enter fullscreen mode Exit fullscreen mode
  1. After about 20 seconds, check the file: cat ~/.multimeter/speed.txt.
  2. Add a File meter and choose ~/.multimeter/speed.txt (press Shift-Command-Period in the file dialog to see dot folders). Set the range to 0 to your plan’s speed and the unit to Mbps.

Multimeter settings

In Customize This Meter… (from the meter’s menu):

Settings for this meter

Setting Value
Source File
File ~/.multimeter/speed.txt
Range 0 to your plan, like 500
Unit Mbps
Alerts Low values: warning at half your plan, critical at a quarter
Label SPEED
Face Needle Gauge, Arc Gauge or Columns

Tested: On October 29, 2026: the plist passed plutil -lint, and its command wrote 168.135 to the file. A shorter test inside the 10 second limit (networkQuality -u -M 8) took 9.3 seconds, too close to use in a Script meter.

More on this source, including every format it reads, in the File guide.

Limits

  • Each test downloads for several seconds at full speed. Hourly is a sensible pace on a metered connection; every 15 minutes is the most often worth running.

Variations

Upload speed

Drop -u from the command and change the awk pattern to /Uplink capacity/.

Stop it

Terminal

launchctl bootout gui/$(id -u)/local.speedtest
Enter fullscreen mode Exit fullscreen mode

Troubleshooting

What the meter says, why, and what to do

Symptom Cause Fix
The file never appears The job didn’t load. Run launchctl print gui/$(id -u)/local.speedtest to see its last exit status, and plutil -lint on the plist.
The meter is empty The test failed (offline), so the file is unchanged or empty. It fills in after the next hourly run with a connection.

Questions

Yes. File meters work in every version; the test itself runs from launchd, not from Multimeter.

Script meters stop commands after 10 seconds and a full test takes longer. The file also keeps the last result between tests.

Related

Top comments (0)