<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Great Work</title>
    <description>The latest articles on DEV Community by Great Work (@greatworkco).</description>
    <link>https://dev.to/greatworkco</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4216644%2F8335af88-5437-4ccc-9be1-47488948f8a7.png</url>
      <title>DEV Community: Great Work</title>
      <link>https://dev.to/greatworkco</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/greatworkco"/>
    <language>en</language>
    <item>
      <title>Show the output of a shell command in your menu bar</title>
      <dc:creator>Great Work</dc:creator>
      <pubDate>Sun, 01 Nov 2026 16:17:05 +0000</pubDate>
      <link>https://dev.to/greatworkco/show-the-output-of-a-shell-command-in-your-menu-bar-aco</link>
      <guid>https://dev.to/greatworkco/show-the-output-of-a-shell-command-in-your-menu-bar-aco</guid>
      <description>&lt;p&gt;&lt;em&gt;This guide first appeared on &lt;a href="https://multimeterapp.com/guides/script-meters" rel="noopener noreferrer"&gt;multimeterapp.com&lt;/a&gt;. Multimeter is a Mac menu bar app that turns any number into a live meter.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A Script meter runs a command with &lt;code&gt;zsh&lt;/code&gt; every 30 seconds (or as often as every 2) and shows the number it prints. If you can get a number out of Terminal, you can put it in the menu bar.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add the meter
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Choose Add Meter… and pick Script.&lt;/li&gt;
&lt;li&gt;Paste the command and choose how often it runs.&lt;/li&gt;
&lt;li&gt;If it prints JSON, add a key path. Set a range if the number isn’t a percentage.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Scripts need the direct download version of Multimeter from this site, which is the one on sale now. The Mac App Store sandbox doesn’t let apps run your scripts; there, have the script &lt;a href="https://multimeterapp.com/guides/url-scheme" rel="noopener noreferrer"&gt;send a link&lt;/a&gt; or &lt;a href="https://multimeterapp.com/guides/file-meters" rel="noopener noreferrer"&gt;write a file&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How commands run
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;With &lt;code&gt;/bin/zsh -c&lt;/code&gt;, as you. &lt;code&gt;/opt/homebrew/bin&lt;/code&gt;, &lt;code&gt;/usr/local/bin&lt;/code&gt;, &lt;code&gt;~/.local/bin&lt;/code&gt; and &lt;code&gt;~/.bun/bin&lt;/code&gt; are added to the &lt;code&gt;PATH&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Your &lt;code&gt;~/.zshrc&lt;/code&gt; is not loaded (it only runs for interactive shells), so aliases and functions defined there aren’t available. Use full commands, or put shared settings in &lt;code&gt;~/.zshenv&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A command that runs longer than 10 seconds is stopped. A new run never starts while the last one is still going.&lt;/li&gt;
&lt;li&gt;Only standard output is read; errors on standard error are ignored.&lt;/li&gt;
&lt;li&gt;Choose Refresh Now from the meter’s menu to run it immediately.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the command should print
&lt;/h2&gt;

&lt;p&gt;Web addresses, files and scripts all read the same two formats.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A plain number&lt;/strong&gt;, or any text with a number in it. Multimeter takes the first number it finds, and drops thousands separators between digits, so &lt;code&gt;1,284 stars&lt;/code&gt; reads as 1284.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JSON.&lt;/strong&gt; Either a bare number, or an object with &lt;code&gt;value&lt;/code&gt; and any of these extras:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;meter.json&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;38&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"min"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"max"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"DEPLOY"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"unit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"today"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"formatted"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"38 of 50"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pointing at bigger JSON you don’t control, like an API response? Give the meter a &lt;strong&gt;key path&lt;/strong&gt;. Dots walk into objects and numbers pick array items: &lt;code&gt;data.items.0.count&lt;/code&gt;. Numbers inside strings work too (&lt;code&gt;"67012.45"&lt;/code&gt;), and &lt;code&gt;true&lt;/code&gt;/&lt;code&gt;false&lt;/code&gt; count as 1 and 0.&lt;/p&gt;

&lt;p&gt;Without &lt;code&gt;min&lt;/code&gt; and &lt;code&gt;max&lt;/code&gt; the range is 0 to 100, so for bigger numbers set a range in Customize This Meter… or send &lt;code&gt;max&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Commands to start from
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Files in Downloads&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; ~/Downloads | &lt;span class="nb"&gt;wc&lt;/span&gt; &lt;span class="nt"&gt;-l&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Uncommitted changes in a repo&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git &lt;span class="nt"&gt;-C&lt;/span&gt; ~/code/my-app status &lt;span class="nt"&gt;--porcelain&lt;/span&gt; | &lt;span class="nb"&gt;wc&lt;/span&gt; &lt;span class="nt"&gt;-l&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Running Docker containers&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker ps &lt;span class="nt"&gt;-q&lt;/span&gt; | &lt;span class="nb"&gt;wc&lt;/span&gt; &lt;span class="nt"&gt;-l&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;One-minute load average&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sysctl &lt;span class="nt"&gt;-n&lt;/span&gt; vm.loadavg | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'{print $2}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Open pull requests waiting for your review (GitHub CLI)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh search prs &lt;span class="nt"&gt;--review-requested&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;@me &lt;span class="nt"&gt;--state&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;open &lt;span class="nt"&gt;--json&lt;/span&gt; number &lt;span class="nt"&gt;-q&lt;/span&gt; length
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;A number from an API that needs a token&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; ~/.config/mytoken&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; https://api.example.com/stats | jq .active_users
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Commands that can be slow (network calls, big directories) should run every minute or less often. Check timing in Terminal with &lt;code&gt;time&lt;/code&gt; first.&lt;/p&gt;

&lt;p&gt;Commands that take longer than 10 seconds, like &lt;code&gt;brew outdated&lt;/code&gt; (which can take 20 seconds or more), belong in a launchd job that writes a file for a &lt;a href="https://multimeterapp.com/guides/file-meters" rel="noopener noreferrer"&gt;File meter&lt;/a&gt;; the &lt;a href="https://multimeterapp.com/guides/internet-speed-test" rel="noopener noreferrer"&gt;speed test recipe&lt;/a&gt; shows how. Ready-made, tested commands for dozens of services are in the &lt;a href="https://multimeterapp.com/guides#topics" rel="noopener noreferrer"&gt;recipes&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check it worked
&lt;/h2&gt;

&lt;p&gt;Run the command in Terminal first: it should print one number. Paste it into the meter and choose Refresh Now; the meter should show the same number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;What the meter says, why, and what to do&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Cause&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The script didn’t print a number&lt;/td&gt;
&lt;td&gt;The output has no digits, or the number is on standard error.&lt;/td&gt;
&lt;td&gt;Run it in Terminal and check. Add &lt;code&gt;2&amp;gt;&amp;amp;1&lt;/code&gt; if the tool prints to standard error.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The script took longer than 10 seconds&lt;/td&gt;
&lt;td&gt;A slow network call or a command waiting for input.&lt;/td&gt;
&lt;td&gt;Add timeouts (&lt;code&gt;curl -m 5&lt;/code&gt;, &lt;code&gt;ssh -o ConnectTimeout=5 -o BatchMode=yes&lt;/code&gt;) and make sure nothing asks for a password.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Works in Terminal, “command not found” in the meter&lt;/td&gt;
&lt;td&gt;The tool lives outside the folders on the meter’s PATH, or is an alias from ~/.zshrc.&lt;/td&gt;
&lt;td&gt;Use the full path (find it with &lt;code&gt;which tool&lt;/code&gt;).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scripts need the version from multimeterapp.com&lt;/td&gt;
&lt;td&gt;This copy of Multimeter came from the Mac App Store.&lt;/td&gt;
&lt;td&gt;Use a link or a file instead, or the direct download version.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/menu-bar/server-load" rel="noopener noreferrer"&gt;Keep your server’s load in the menu bar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/guides/json-web-meters" rel="noopener noreferrer"&gt;Read a web address directly, without a script&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/faces/needle-gauge" rel="noopener noreferrer"&gt;The Needle Gauge face&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/guides#topics" rel="noopener noreferrer"&gt;Ready-made recipes by topic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/guides" rel="noopener noreferrer"&gt;All guides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>macos</category>
      <category>bash</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Send a number to your menu bar with a link</title>
      <dc:creator>Great Work</dc:creator>
      <pubDate>Fri, 30 Oct 2026 07:37:51 +0000</pubDate>
      <link>https://dev.to/greatworkco/send-a-number-to-your-menu-bar-with-a-link-4llp</link>
      <guid>https://dev.to/greatworkco/send-a-number-to-your-menu-bar-with-a-link-4llp</guid>
      <description>&lt;p&gt;&lt;em&gt;This guide first appeared on &lt;a href="https://multimeterapp.com/guides/url-scheme" rel="noopener noreferrer"&gt;multimeterapp.com&lt;/a&gt;. Multimeter is a Mac menu bar app that turns any number into a live meter.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Open &lt;code&gt;multimeter://set?key=deploys&amp;amp;value=42&lt;/code&gt; and the Sent Value meter with the key &lt;code&gt;deploys&lt;/code&gt; shows 42, right away. If it can open a link, it can update a meter. This works in every version of Multimeter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add the meter
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Choose Add Meter… from any meter’s menu and pick Sent Value.&lt;/li&gt;
&lt;li&gt;In Customize This Meter…, give it a key, like &lt;code&gt;deploys&lt;/code&gt;. Keys ignore case.&lt;/li&gt;
&lt;li&gt;Send it a value with a link (below). Until the first one arrives the meter says it’s waiting for a value.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Parameters
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;multimeter://set parameters&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Parameter&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;key&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Which meter. Required. Case doesn’t matter.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;value&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The number. Required. The first number in the text is used, so &lt;code&gt;value=42%25&lt;/code&gt; works.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;min&lt;/code&gt;, &lt;code&gt;max&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The range, so gauges and bars fill correctly. Default 0 to 100.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;label&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Text for the meter’s label.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;unit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shown after the number, like &lt;code&gt;cups&lt;/code&gt;. Use &lt;code&gt;%25&lt;/code&gt; (an encoded %) for a percentage.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;formatted&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Your own text, shown instead of the number. The value still drives colors and alerts.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Multimeter remembers the last value for each key, across restarts. Encode spaces as &lt;code&gt;%20&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recipes
&lt;/h2&gt;

&lt;p&gt;From Terminal or any shell script. &lt;code&gt;-g&lt;/code&gt; keeps Multimeter in the background so your focus doesn’t jump:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terminal&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;open &lt;span class="nt"&gt;-g&lt;/span&gt; &lt;span class="s2"&gt;"multimeter://set?key=coffee&amp;amp;value=3&amp;amp;max=5&amp;amp;label=COFFEE"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A small shell function for your &lt;code&gt;~/.zshrc&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;~/.zshrc&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mm&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt; open &lt;span class="nt"&gt;-g&lt;/span&gt; &lt;span class="s2"&gt;"multimeter://set?key=&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="s2"&gt;&amp;amp;value=&lt;/span&gt;&lt;span class="nv"&gt;$2&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="c"&gt;# mm deploys 42&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Count uncommitted files after every commit, from a git hook:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;.git/hooks/post-commit (make it executable)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/sh&lt;/span&gt;
&lt;span class="nv"&gt;n&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;git status &lt;span class="nt"&gt;--porcelain&lt;/span&gt; | &lt;span class="nb"&gt;wc&lt;/span&gt; &lt;span class="nt"&gt;-l&lt;/span&gt; | &lt;span class="nb"&gt;tr&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
open &lt;span class="nt"&gt;-g&lt;/span&gt; &lt;span class="s2"&gt;"multimeter://set?key=dirty&amp;amp;value=&lt;/span&gt;&lt;span class="nv"&gt;$n&lt;/span&gt;&lt;span class="s2"&gt;&amp;amp;label=DIRTY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From &lt;strong&gt;Shortcuts&lt;/strong&gt;: add a URL action with your link, then Open URLs. Run it from the menu bar, a keyboard shortcut or an automation.&lt;/p&gt;

&lt;p&gt;From a &lt;strong&gt;Raycast&lt;/strong&gt; script command: any bash script can run the same &lt;code&gt;open -g&lt;/code&gt; line.&lt;/p&gt;

&lt;p&gt;From Python and Node:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;subprocess&lt;/span&gt;
&lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;open&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;-g&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;multimeter://set?key=queue&amp;amp;value=17&amp;amp;max=100&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Node or Bun&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;spawnSync&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;node:child_process&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="nf"&gt;spawnSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;open&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;-g&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;multimeter://set?key=queue&amp;amp;value=17&amp;amp;max=100&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Check it worked
&lt;/h2&gt;

&lt;p&gt;Run the Terminal line above with your key. The meter should change within a second, and its menu should show the new value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;What the meter says, why, and what to do&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Cause&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The meter says to give it a key&lt;/td&gt;
&lt;td&gt;The Sent Value meter has no key yet.&lt;/td&gt;
&lt;td&gt;Set one in Customize This Meter…, the same word you use in key= in the link.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The meter keeps waiting for a value&lt;/td&gt;
&lt;td&gt;No link with that key has arrived since the meter was set up, or the keys differ.&lt;/td&gt;
&lt;td&gt;Check the spelling of key= against the meter. Case doesn’t matter, spelling does.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;macOS asks which app to open the link with, or nothing happens&lt;/td&gt;
&lt;td&gt;Multimeter isn’t installed in /Applications or hasn’t been opened yet.&lt;/td&gt;
&lt;td&gt;Open Multimeter once, then try again.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spaces in the label show up as plus signs&lt;/td&gt;
&lt;td&gt;The link encoded spaces as +.&lt;/td&gt;
&lt;td&gt;Use &lt;code&gt;%20&lt;/code&gt; for spaces.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/menu-bar/build-status" rel="noopener noreferrer"&gt;Put your build status in the menu bar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/guides/script-meters" rel="noopener noreferrer"&gt;Run a script on a schedule instead&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/faces" rel="noopener noreferrer"&gt;Pick a face for your number&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/guides#topics" rel="noopener noreferrer"&gt;Ready-made recipes by topic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://multimeterapp.com/guides" rel="noopener noreferrer"&gt;All guides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>macos</category>
      <category>productivity</category>
      <category>shell</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
