<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BirdsLikeWires</title><link>https://birdslikewires.net/</link><atom:link href="https://birdslikewires.net/index.xml" rel="self" type="application/rss+xml"/><description>Electron tickling. And whatever.</description><language>en-gb</language><pubDate>Sun, 28 Jun 2026 23:23:00 +0100</pubDate><item><title>Printer Power Automation</title><description>&lt;p&gt;This is how I managed to get our printer to power on automatically whenever a job is sent to it, power down, and even report its toner use when it's snoozing.&lt;/p&gt;</description><content:encoded>&lt;p&gt;The &lt;a href="https://birdslikewires.net/the-dell-1320cn-printer-and-macos"&gt;Dell 1320cn&lt;/a&gt; and I keep rumbling along, but one issue I've had for a long time is &amp;quot;other people&amp;quot;. Or, to be more specific, other people who need to use the printer.&lt;/p&gt;&#10;&lt;p&gt;My concern was twofold; saving power, and not damaging the printer.&lt;/p&gt;&#10;&lt;p&gt;Addressing the first concern I added a smart plug to the printer many years ago, with a little Hubitat automation rule which says &lt;em&gt;&amp;quot;turn this off if it uses less than two watts of power for twenty minutes&amp;quot;.&lt;/em&gt; That works just fine, but it created the second concern. How do I let those other people turn on the printer, but not turn it off before it's had chance to settle?&lt;/p&gt;&#10;&lt;p&gt;There's no way I could add a &lt;em&gt;Printer&lt;/em&gt; button to HomeKit, as no doubt somebody would turn it on and off accidentally. I thought about adding a feature to the smart plug driver which would prevent being turned off with a delay, but that doesn't help if the delay passes and the printer is still in use. Then, after speaking with the other people, it transpired that even pressing a button to turn on the printer was considered a bit too much effort.&lt;/p&gt;&#10;&lt;h2&gt;No Buttons&lt;/h2&gt;&#10;&lt;p&gt;The solution is &lt;a href="https://github.com/birdslikewires/hubitat-printer-proxy"&gt;hubitat-printer-proxy&lt;/a&gt;. It's not a great name because it doesn't proxy the printer via Hubitat; but it does rely on Hubitat, and it's the best I could come up with this weekend.&lt;/p&gt;&#10;&lt;p&gt;What it does is provide a TCP proxy with buffering between any Mac (see why it's a Mac in the &lt;a href="https://birdslikewires.net/the-dell-1320cn-printer-and-macos"&gt;Dell 1320cn&lt;/a&gt; article) and the printer. Instead of installing the printer and pointing the client directly at its IP, we now point it to the proxy. It's this proxy that listens for jobs, and when one comes in it triggers the smart plug to turn on via the Maker API, then keeps trying to send the job until the printer has woken up enough to accept it.&lt;/p&gt;&#10;&lt;h3&gt;Toner&lt;/h3&gt;&#10;&lt;p&gt;That was all easy enough, but now I was pointing macOS to a proxy I could no longer see toner levels under &amp;quot;Options &amp;amp; Supplies&amp;quot;, as it would try to grab those details over SNMP from the proxy IP address, which isn't really the printer.&lt;/p&gt;&#10;&lt;p&gt;The solution is to grab and cache that data following each print job and replay it back to the client using &lt;code&gt;snmpd&lt;/code&gt;. This way the last toner status information is always visible, regardless of whether the printer itself is powered on or not. Neat!&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/printer-power/printer-power-1_hu_9fc78ffaba7b0a78.webp 480w, https://birdslikewires.net/printer-power/printer-power-1_hu_f2dac2c043c4a650.webp 960w, https://birdslikewires.net/printer-power/printer-power-1_hu_ba6cc8319089616d.webp 1460w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/printer-power/printer-power-1_hu_dc2ca6dace937b1b.jpeg" srcset="https://birdslikewires.net/printer-power/printer-power-1_hu_378e7ddef7a3a12a.jpeg 480w, https://birdslikewires.net/printer-power/printer-power-1_hu_dc2ca6dace937b1b.jpeg 960w, https://birdslikewires.net/printer-power/printer-power-1_hu_23c92a9374b46c52.jpeg 1460w" sizes="min(100vw, 720px)" width="1460" height="624" loading="lazy" decoding="async" alt="Screenshot of the Supply Levels tab from &amp;#34;Options &amp;amp; Supplies&amp;#34; in the System Settings on macOS."&gt;&lt;/picture&gt;&lt;figcaption aria-hidden="true" data-pagefind-ignore&gt;Screenshot of the Supply Levels tab from &amp;#34;Options &amp;amp; Supplies&amp;#34; in the System Settings on macOS.&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2&gt;AirPrint&lt;/h2&gt;&#10;&lt;p&gt;Those other people then said &lt;em&gt;&amp;quot;why can't I print from my iPhone&amp;quot;.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Thankfully, &lt;a href="https://github.com/sapireli/AirPrint_Bridge"&gt;AirPrint Bridge&lt;/a&gt; exists, so I didn't need to do much here. We do nothing more than we would with any other printer. Follow their instructions and the job goes via the proxy, turning the printer on in the process. Thank goodness for that.&lt;/p&gt;&#10;&lt;h3&gt;No Colour&lt;/h3&gt;&#10;&lt;p&gt;One trick that's worth noting; as the other people are mostly printing things like postage labels, there's no need for them to be doing so in colour. However, CUPS defaults to colour printing, which is rubbish when the label includes half a page of full-colour advert. There are ways to get AirPrint Bridge to advertise the printer as monochrome, but this only affects the print preview, and the job still gets sent and printed in full colour.&lt;/p&gt;&#10;&lt;p&gt;Get your printer details from CUPS with:&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;lpoptions&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;It'll give you something like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;copies=1 device-uri=socket://192.168.11.12/ finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 printer-commands=none printer-info=&amp;#39;Dell 1320cn&amp;#39; printer-is-accepting-jobs=true printer-is-shared=true printer-is-temporary=false printer-location=&amp;#39;Media Cupboard&amp;#39; printer-make-and-model=&amp;#39;FX DocuPrint C525 A-AP v3.3&amp;#39; printer-state=3 printer-state-change-time=1782681761 printer-state-reasons=none printer-type=37084 printer-uri-supported=ipp://localhost/printers/Dell_1320cn&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Grab that name from the end of &lt;code&gt;printer-uri-supported&lt;/code&gt; and fire this:&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;lpoptions -p Dell_1320cn -l | grep -i color&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;You'll see something like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;FXColorMode/Output Color: Black *Color&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The asterisk shows it's in colour mode by default. Hit it with:&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;lpadmin -p Dell_1320cn -o FXColorMode=Black&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;And you're all good:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;FXColorMode/Output Color: *Black Color&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;No more wastage of the colour toner at least.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/printer-power</link><pubDate>Sun, 28 Jun 2026 23:23:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2026-06-28:b19d4f3af08220f3ccbb4b0f0e44fe4b/433ce3f4627b4dde9dbd854d8bdaacd0</guid></item><item><title>Custom YOURLS</title><description>&lt;p&gt;Why make installing YOURLS simple, when you can make it more complicated. But for good reasons.&lt;/p&gt;</description><content:encoded>&lt;p&gt;Like many people, my teams at work have to deal with a lot of esoteric, computer-generated URLs for various resources. Thanks, Microsoft. Nobody can ever remember them, nobody remembers to bookmark them, and those that do get saved or linked to from elsewhere get broken when someone in another team deletes and then recreates the original file.&lt;/p&gt;&#10;&lt;p&gt;That last one is the worst, because there are so many places we may have linked to a resource it's impossible to go back and update them all. It's particularly annoying if they've been turned into a QR code or link on a poster somewhere.&lt;/p&gt;&#10;&lt;p&gt;That's why we love &lt;a href="https://yourls.org/"&gt;YOURLS&lt;/a&gt;, the self-hosted URL shortening service. When something breaks we go and fix it in one place, and everything is fine again.&lt;/p&gt;&#10;&lt;h2&gt;Fallback Redirect&lt;/h2&gt;&#10;&lt;p&gt;By default, if YOURLS doesn't have a short URL in its database for a request it'll bounce you back to the top level of the domain it's configured on. However, it doesn't do this with the request URI intact. Just the plain jane domain, which is a shame.&lt;/p&gt;&#10;&lt;p&gt;But custom plug-ins are supported, so here's &lt;a href="https://github.com/birdslikewires/yourls-fallback-redirect"&gt;yourls-fallback-redirect&lt;/a&gt;, my take on solving the problem. Now any unknown URL redirects to the domain of your choosing with the URI intact, so it can be dealt with as you see fit. This is great for shortening long domain names without any other faff required. In fact, you can see it in action with &lt;a href="https://blw.rs/custom-yourls"&gt;blw.rs/custom-yourls&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2&gt;Files First&lt;/h2&gt;&#10;&lt;p&gt;As people got familiar with our domain we decided to use it to host some static files. The type of files that are rarely updated but really important, like insurance certificates, which need to be accessible to anyone outside of the organisation at the drop of a hat, and not locked behind unreliable share links.&lt;/p&gt;&#10;&lt;p&gt;For some added fun, I'm an &lt;a href="https://nginx.org/"&gt;Nginx&lt;/a&gt; person and not really up to speed with &lt;a href="https://httpd.apache.org/"&gt;Apache&lt;/a&gt;, so here's how to make this combination work, using the BirdsLikeWires YOURLS installation as an example.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;server {&#10;&#10; listen 80;&#10; server_name blw.rs www.blw.rs;&#10; return 301 https://$server_name$request_uri;&#10;&#10;}&#10;&#10;&#10;server {&#10;&#10; http2 on;&#10; listen 443 ssl;&#10; server_name www.blw.rs;&#10;&#10; ssl_certificate /etc/nginx/ssl/blw.rs.cer;&#10; ssl_certificate_key /etc/nginx/ssl/blw.rs.key;&#10;&#10; ssl_protocols TLSv1.3;&#10; ssl_prefer_server_ciphers off;&#10;&#10; return 301 https://blw.rs$request_uri;&#10;&#10;}&#10;&#10;&#10;server {&#10;&#10; http2 on;&#10; listen 443 ssl;&#10; server_name blw.rs;&#10; root /var/www/blw/root;&#10;&#10; ssl_certificate /etc/nginx/ssl/blw.rs.cer;&#10; ssl_certificate_key /etc/nginx/ssl/blw.rs.key;&#10;&#10; ssl_protocols TLSv1.3;&#10; ssl_prefer_server_ciphers off;&#10;&#10; set $php_sock unix:/var/run/php/php8.4-fpm.sock;&#10;&#10; index index.php index.html;&#10;&#10; # Redirect /admin to /yourls/admin&#10; location = /admin {&#10; return 301 /yourls/admin/;&#10; }&#10; &#10; location ^~ /admin/ {&#10; return 301 /yourls$request_uri;&#10; }&#10;&#10; # Explicitly handle /yourls/ to prevent rewrite loop&#10; location ^~ /yourls/ {&#10; try_files $uri $uri/ /yourls/yourls-loader.php$is_args$args;&#10; &#10; location ~ \.php$ {&#10; fastcgi_pass $php_sock;&#10; include fastcgi.conf;&#10; }&#10; }&#10;&#10; location / {&#10; try_files $uri $uri/ @rewrite_to_yourls;&#10; }&#10;&#10; location @rewrite_to_yourls {&#10; rewrite ^/(.*)$ /yourls/$1 last;&#10; }&#10;&#10; location ~ \.php$ {&#10; fastcgi_pass $php_sock;&#10; include fastcgi.conf;&#10; }&#10;&#10; location ~ /\.ht {&#10; deny all;&#10; }&#10;&#10;}&lt;/code&gt;&lt;/pre&gt;&lt;h3&gt;Explanation&lt;/h3&gt;&#10;&lt;p&gt;The first server block just redirects any traffic using plain HTTP to the same location using HTTPS. The second server block redirects any traffic from the &lt;code&gt;www&lt;/code&gt; subdomain to the apex.&lt;/p&gt;&#10;&lt;p&gt;The third block does the clever stuff, first by allowing me to host YOURLS itself from a subdirectory. This makes updating the installation far easier, as I just need to drop in the new release, update the plug-ins, and create a new link to it.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;ln -s /var/www/blw/root/YOURLS-1.XX.X /var/www/blw/root/yourls&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It's the first three &lt;code&gt;location&lt;/code&gt; declarations which handle this, by making sure the admin interface is where it's expected to be, and not allowing it to get stuck in a loop.&lt;/p&gt;&#10;&lt;p&gt;Following that, Nginx will attempt to fetch files locally. If this fails, it'll pass the request on to YOURLS to deal with. Due to our plugin, this will either succeed with a short URL, or it'll fail and be passed on to whichever other domain we configured.&lt;/p&gt;&#10;&lt;p&gt;The last bit is to not serve &lt;code&gt;.htaccess&lt;/code&gt; files, in case there are any lurking which shouldn't be.&lt;/p&gt;&#10;&lt;h2&gt;Conclusion&lt;/h2&gt;&#10;&lt;p&gt;Works really well!&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/custom-yourls</link><pubDate>Wed, 11 Feb 2026 15:55:00 +0000</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2026-02-11:b19d4f3af08220f3ccbb4b0f0e44fe4b/3688b06de75a1591a5556dc04969a4a9</guid></item><item><title>MediaWiki with Nginx</title><description>&lt;p&gt;Moving a well-used MediaWiki installation from shared Apache hosting to a dedicated server with Nginx goes surprisingly well.&lt;/p&gt;</description><content:encoded>&lt;p&gt;I've recently needed to move a decade-old &lt;a href="https://www.mediawiki.org/"&gt;MediaWiki&lt;/a&gt; installation. It's been continually updated throughout its life, so no problem there, but it had to be shifted from shared Apache hosting to a dedicated server using Nginx. Plus, I had a few configuration requirements to make updates a touch easier and URLs a bit cleaner.&lt;/p&gt;&#10;&lt;h2&gt;Backup&lt;/h2&gt;&#10;&lt;p&gt;Nothing special to be done here, I just backed up the files and the database:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;mysqldump -u mediawiki -p --no-tablespaces mediawiki &amp;gt; mediawiki.sql&#10;tar zcvf mediawiki-archive.tgz mediawiki-root mediawiki.sql&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The &lt;code&gt;--no-tablespaces&lt;/code&gt; option was required to get the backup out of the shared hosting.&lt;/p&gt;&#10;&lt;h2&gt;Setup Speed Run&lt;/h2&gt;&#10;&lt;p&gt;Starting with a blank-ish Debian Trixie server, create a user:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo adduser --system --group --home /home/mediawiki mediawiki&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Throw all the packages at the wall:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt update&#10;sudo apt install ufw nginx nginx-extras mariadb-server php-fpm php-mysql php-xml php-mbstring php-intl php-apcu php-cli php-gd composer imagemagick&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Do the firewall shuffle:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo ufw default deny incoming&#10;sudo ufw default allow outgoing&#10;sudo ufw allow 22&#10;sudo ufw allow 80&#10;sudo ufw allow 443&#10;sudo ufw enable&#10;sudo ufw status verbose&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Set up a blank database:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo mysql&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;CREATE DATABASE mediawiki;&#10;CREATE USER &amp;#39;mediawiki&amp;#39;@&amp;#39;localhost&amp;#39; IDENTIFIED BY &amp;#39;passpasspassword&amp;#39;;&#10;GRANT ALL PRIVILEGES ON mediawiki.* TO &amp;#39;mediawiki&amp;#39;@&amp;#39;localhost&amp;#39;;&#10;FLUSH PRIVILEGES;&#10;EXIT;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then I had some SSL certificates issued. You'll need to tread your own path a little on that, but I'm a convert to using the automatic DNS integrations provided by &lt;a href="https://acme.sh/"&gt;acme.sh&lt;/a&gt;. Previously I had to faff a little with Certbot and the &lt;code&gt;.well-known&lt;/code&gt; directory. Using DNS is far easier, and acme.sh schedules itself to renew. Ultimately it looked like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;acme.sh --issue --dns YOURDNSPROVIDERHERE -d example.com -d *.example.com&#10;acme.sh --install-cert -d example.com -d *.example.com --key-file /etc/nginx/ssl/example.com.key --fullchain-file /etc/nginx/ssl/example.com.fullchain.cer --reloadcmd &amp;#34;systemctl reload nginx&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Finally, I like to have a separate PHP-FPM pool running as the &lt;code&gt;mediawiki&lt;/code&gt; user to simplify permissions and provide a little more isolation. That's done with an extra &lt;code&gt;/etc/php/8.4/fpm/pool.d/mediawiki.conf&lt;/code&gt; file containing:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[mediawiki]&#10;user = mediawiki&#10;group = mediawiki&#10;listen = /run/php/php8.4-fpm-mediawiki.sock&#10;listen.owner = www-data&#10;listen.group = www-data&#10;listen.mode = 0660&#10;&#10;pm = dynamic&#10;pm.max_children = 5&#10;pm.start_servers = 2&#10;pm.min_spare_servers = 1&#10;pm.max_spare_servers = 3&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;sudo systemctl restart php8.4-fpm&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;We'll configure the site to use that in a minute, once we've got the files and database in place.&lt;/p&gt;&#10;&lt;h2&gt;Import&lt;/h2&gt;&#10;&lt;p&gt;It all starts simply enough by untarring everything and populating the database:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo mysql mediawiki &amp;lt; mediawiki.sql&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then we deviate just a little. For my MediaWiki installations I like to follow this sort of file path for the installation location and web root:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;/home/mediawiki/wiki.example.com/mediawiki-1.45.1&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To prevent silly mistakes, I keep MediaWiki's &lt;code&gt;LocalSettings.php&lt;/code&gt; and the &lt;code&gt;images&lt;/code&gt; directory one level above the web root in &lt;code&gt;/home/mediawiki/wiki.example.com/&lt;/code&gt;. This means I can grab the new version when it's released, untar it, copy over any custom extensions from the previous version, update the web root in the Nginx config and simply link the &lt;code&gt;LocalSettings.php&lt;/code&gt; file with:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;ln -s /home/mediawiki/wiki.example.com/LocalSettings.php /home/mediawiki/wiki.example.com/mediawiki-1.XX.X/LocalSettings.php&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To make the &lt;code&gt;images&lt;/code&gt; directory work does require a little fettling in both &lt;code&gt;LocalSettings.php&lt;/code&gt; and the Nginx configuration for the site. For &lt;code&gt;LocalSettings.php&lt;/code&gt; it's just:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$wgUploadDirectory = &amp;#34;/home/mediawiki/wiki.example.com/images&amp;#34;;&#10;$wgUploadPath = &amp;#34;/images&amp;#34;;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In the Nginx site config it's this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt; location ^~ /images/ {&#10; alias /home/mediawiki/wiki.example.com/images/;&#10; expires 30d;&#10; add_header Cache-Control &amp;#34;public, immutable&amp;#34;;&#10; }&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I'll include the whole Nginx configuration file towards the end, as order is important for URL processing.&lt;/p&gt;&#10;&lt;p&gt;Finally, I switched from the traditional &lt;code&gt;wiki.example.com/w/Article&lt;/code&gt; scheme that had been used forever, to the simpler &lt;code&gt;wiki.example.com/Article&lt;/code&gt; and provided a redirect for old links on external services. This first has to be configured in &lt;code&gt;LocalSettings.php&lt;/code&gt; like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$wgScriptPath = &amp;#34;&amp;#34;;&#10;$wgArticlePath = &amp;#34;/$1&amp;#34;;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Update links in the database with this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;php mediawiki-1.45.1/maintenance/run.php refreshLink&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then this works the magic in the Nginx config:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;location ~ ^/w/(.*)$ {&#10; return 301 /$1;&#10;}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Here's the complete Nginx site configuration file:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;server {&#10; listen 80;&#10; server_name wiki.example.com;&#10; return 301 https://$server_name$request_uri;&#10;}&#10;&#10;server {&#10;&#10; http2 on;&#10; listen 443 ssl;&#10;&#10; server_name wiki.example.com;&#10; root /home/mediawiki/wiki.example.com/mediawiki-1.45.1;&#10; index index.php;&#10;&#10; ssl_certificate /etc/nginx/ssl/example.com.fullchain.pem;&#10; ssl_certificate_key /etc/nginx/ssl/example.com.key;&#10;&#10; client_max_body_size 100M;&#10;&#10; # Redirect old /w/ URLs to clean URLs&#10; location ~ ^/w/(.*)$ {&#10; return 301 /$1;&#10; }&#10;&#10; # Serve /images/ from outside MediaWiki&#10; location ^~ /images/ {&#10; alias /home/mediawiki/wiki.example.com/images/;&#10; expires 30d;&#10; add_header Cache-Control &amp;#34;public, immutable&amp;#34;;&#10; }&#10;&#10; # Handle wiki pages with namespaces (anything with a colon)&#10; location ~ : {&#10; rewrite ^/?(.*)$ /index.php?title=$1&amp;amp;$args last;&#10; }&#10;&#10; location / {&#10; try_files $uri @rewrite;&#10; }&#10;&#10; location @rewrite {&#10; rewrite ^/?(.*)$ /index.php?title=$1&amp;amp;$args;&#10; }&#10;&#10; location ^~ /maintenance/ {&#10; return 403;&#10; }&#10;&#10; location ~ \.php$ {&#10; include snippets/fastcgi-php.conf;&#10; fastcgi_pass unix:/var/run/php/php8.4-fpm-mediawiki.sock;&#10; }&#10;&#10; location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {&#10; expires 30d;&#10; add_header Cache-Control &amp;#34;public, immutable&amp;#34;;&#10; }&#10;&#10; location ~ /\.ht {&#10; deny all;&#10; }&#10;&#10;}&lt;/code&gt;&lt;/pre&gt;&lt;h2&gt;Updating&lt;/h2&gt;&#10;&lt;p&gt;With that little bit of abstraction it's fairly simple. Download the new tarball, extract it next to the currently running version, then link that settings file in:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;ln -s /home/mediawiki/wiki.example.com/LocalSettings.php /home/mediawiki/wiki.example.com/mediawiki-1.XX.X/LocalSettings.php&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then the main trick is to copy over, check and update the custom extensions. I usually do this by reminding myself what's installed at the bottom of the &lt;code&gt;LocalSettings.php&lt;/code&gt; file, hopping into each extension's directory and issuing a &lt;code&gt;git pull&lt;/code&gt;, sometimes followed by:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;composer install --no-dev&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;On one occasion I found it necessary to update components for MediaWiki itself using &lt;code&gt;composer&lt;/code&gt; too. It fixed some errors I was seeing, likely due to using PHP 8.4, which is not-quite-supported-yet.&lt;/p&gt;&#10;&lt;p&gt;Once you're happy it's all done, back up the database, then issue:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;php mediawiki-1.XX.X/maintenance/run.php update&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then update the root path version in the Nginx config and reload it:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo systemctl reload nginx&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Success, I'm sure. :)&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/mediawiki-nginx</link><pubDate>Thu, 05 Feb 2026 00:27:00 +0000</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2026-02-05:b19d4f3af08220f3ccbb4b0f0e44fe4b/8a212eb1510281bb483ed0832c1e28d6</guid></item><item><title>Local Speed Tests for All Occasions</title><description>&lt;p&gt;Test your network connection speed at the drop of a hat by keeping iperf on hand.&lt;/p&gt;</description><content:encoded>&lt;p&gt;It may seem unbelievable, but I do &lt;em&gt;try&lt;/em&gt; to keep the number of widgets, gadgets and gizmos to a minimum. There's nothing I like more than smooshing everything I can out of a piece of hardware, so despite being released in 2019, I've only recently reached the point of needing a &lt;a href="https://en.wikipedia.org/wiki/Raspberry_Pi_4"&gt;Raspberry Pi 4&lt;/a&gt; on my home network. That was for the &lt;a href="https://birdslikewires.net/sdrpp-server"&gt;SDR++ server I've mentioned previously&lt;/a&gt;. I did try to run it on the Pi 3, but it really was too slow.&lt;/p&gt;&#10;&lt;p&gt;It's also handy to have something reliable I can run speed tests to from various devices. My network is (mostly) just normal gigabit, but the Pi 3 has its ethernet port connected over the on-board USB 2.0 bus, so is limited to about 300 Mbit/s even on the newer B+ version. No use having a speed test on that.&lt;/p&gt;&#10;&lt;h2&gt;Persistent iperf3&lt;/h2&gt;&#10;&lt;p&gt;The Pi 4 has proper gigabit throughput, so I have it sat with &lt;code&gt;iperf3&lt;/code&gt; constantly ready and waiting for when it's needed.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt install iperf3&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Give it an &lt;code&gt;/etc/systemd/system/iperf3.service&lt;/code&gt; file:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[Unit]&#10;Description=iperf3 server&#10;Documentation=man:iperf3(1)&#10;After=network.target auditd.service&#10;&#10;[Service]&#10;Type=simple&#10;Restart=always&#10;RestartSec=15&#10;User=iperf3&#10;ExecStart=/usr/bin/iperf3 --server --interval 0&#10;SuccessExitStatus=1&#10;&#10;[Install]&#10;WantedBy=multi-user.target&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I like to run it under its own system user account, so I enable it like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo useradd -r -M -s /usr/sbin/nologin iperf3&#10;sudo systemctl daemon-reload&#10;sudo systemctl enable iperf3.service&#10;sudo systemctl start iperf3.service&#10;sudo systemctl status iperf3.service&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And there it waits for something like this from a client:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;iperf3 -c ip_address_of_pi&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It's just very handy to have ready.&lt;/p&gt;&#10;&lt;h2&gt;Extra Credit&lt;/h2&gt;&#10;&lt;p&gt;I did put it on my Pi 3 for fun, but it's a &lt;em&gt;'Model B Rev 1.2',&lt;/em&gt; meaning the most I get out of it is classic &lt;a href="https://en.wikipedia.org/wiki/Fast_Ethernet"&gt;Fast Ethernet&lt;/a&gt; at 100 Mbit/s. Then I had to stop myself falling down the Wikipedia rabbit hole investigating &lt;a href="https://en.wikipedia.org/wiki/10BASE2"&gt;10BASE2&lt;/a&gt; ethernet, which was amazingly still in use at one of my first IT jobs.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/local-speed-tests</link><pubDate>Sun, 19 Oct 2025 23:29:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-10-19:b19d4f3af08220f3ccbb4b0f0e44fe4b/fac11576bc99c787418e3836e1e77f07</guid></item><item><title>Show Me Something</title><description>&lt;p&gt;How to display images in simple ways on the OpenFrame. Contains woofs.&lt;/p&gt;</description><content:encoded>&lt;p&gt;Computers and their windowing systems are all very clever. But sometimes it'd be nice to take an image and just chuck it at the screen. No window furniture, just barf pixels from a file straight into the framebuffer.&lt;/p&gt;&#10;&lt;p&gt;The context for this is that I'm experimenting with turning an &lt;a href="https://en.wikipedia.org/wiki/O2_Joggler"&gt;OpenFrame&lt;/a&gt; into a &lt;a href="https://usetrmnl.com/"&gt;TRMNL&lt;/a&gt; client device. The latter are usually &lt;a href="https://www.eink.com/"&gt;E Ink&lt;/a&gt; displays with an &lt;a href="https://en.wikipedia.org/wiki/ESP32"&gt;ESP32&lt;/a&gt; stuck to them. They don't have much processing power, but they can certainly fetch a bitmap from the internet and interface with the display's controller to have it show that image in all its 1-bit glory.&lt;/p&gt;&#10;&lt;p&gt;Graphically speaking that's all the OpenFrame needs to do too, and there's a strong BYOD (Bring Your Own Device) culture around TRMNL with support in the official server dashboard for &lt;a href="https://help.usetrmnl.com/en/articles/11547008-device-model-faq"&gt;selecting various device models&lt;/a&gt;. Plugins generate the content according to a playlist, which is rendered server-side, then the TRMNL client just fetches that bitmap and displays it. In the OpenFrame's case this is a task it'll barely notice doing, leaving plenty of CPU time to run other services in the background; usually something audio-related in my case.&lt;/p&gt;&#10;&lt;p&gt;More of all that another day.&lt;/p&gt;&#10;&lt;h2&gt;Framebuffer Imageviewer&lt;/h2&gt;&#10;&lt;p&gt;The &lt;a href="https://openbeak.net/openframe/images/debian/"&gt;Debian builds I maintain for OpenFrame devices&lt;/a&gt; are deliberately minimal, to optimise for drive space and minimise processing load. The idea is that the base image can be flashed, and be moderately useful, on the 1 GB of storage the OpenFrame 1 has internally. This means there is no X Window System installed, just you and the frame buffer, so the &lt;code&gt;fbi&lt;/code&gt; command is a decent starting place.&lt;/p&gt;&#10;&lt;p&gt;Adding &lt;code&gt;fbi&lt;/code&gt; is just the usual &lt;code&gt;sudo apt install fbi&lt;/code&gt;, but I also found it necessary to tweak the &lt;code&gt;tty&lt;/code&gt; permissions a little, like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;KERNEL==&amp;#34;tty[0-9]*&amp;#34;, MODE=&amp;#34;0660&amp;#34;, GROUP=&amp;#34;tty&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I saved that into &lt;code&gt;/etc/udev/rules.d/99-tty.rules&lt;/code&gt;. On one of the earlier version of Debian I also got a &amp;quot;permission denied&amp;quot; error, which was corrected with:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo setcap &amp;#39;cap_sys_tty_config&amp;#43;ep&amp;#39; $(which fbi)&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then you can chuck things at the screen:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;fbi -vt 1 -noverbose tilly_holiday.jpg&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It whinges a bit when issuing the command over SSH, but it works.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/show-me-something/show-me-something-1_hu_62988d5ffc3175dc.webp 480w, https://birdslikewires.net/show-me-something/show-me-something-1_hu_f8a305da3a8f2d0c.webp 960w, https://birdslikewires.net/show-me-something/show-me-something-1_hu_f968cc4efbc8c196.webp 1600w, https://birdslikewires.net/show-me-something/show-me-something-1_hu_456d4095f0deb5b5.webp 2048w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/show-me-something/show-me-something-1_hu_289340fbbcfb27a9.jpeg" srcset="https://birdslikewires.net/show-me-something/show-me-something-1_hu_77b76121cb47662d.jpeg 480w, https://birdslikewires.net/show-me-something/show-me-something-1_hu_289340fbbcfb27a9.jpeg 960w, https://birdslikewires.net/show-me-something/show-me-something-1_hu_934a246b025b8e0f.jpeg 1600w, https://birdslikewires.net/show-me-something/show-me-something-1_hu_e757259fbc0dee23.jpeg 2048w" sizes="min(100vw, 720px)" width="2048" height="1536" loading="lazy" decoding="async" alt="Photograph of an OpenFrame 1 showing a colourful picture of our cockapoo, Tilly, dressed in Hawaiian shirt, with flowers and sunglasses, looking cool and seeming to be unusually patient."&gt;&lt;/picture&gt;&lt;figcaption&gt;Tilly, sporting her Hawaiian look.&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2&gt;X Windows Server Required&lt;/h2&gt;&#10;&lt;p&gt;You know what doesn't work, though? Power saving.&lt;/p&gt;&#10;&lt;p&gt;Though we get full control of the backlight &lt;em&gt;dimming&lt;/em&gt; without the X server being installed, control of DPMS to turn the backlight fully &lt;em&gt;off&lt;/em&gt; just doesn't work without &lt;code&gt;xset&lt;/code&gt;. I dug into this for a while, but never came up with a reasonable non-X solution. If you have one, please do &lt;a href="https://dvsn.net/@andy"&gt;let me know&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;We chuck X server on to the OpenFrame with a quick:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo of-install xserver&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This installs all of the required packages and a few default settings to make things play nice on this hardware.&lt;/p&gt;&#10;&lt;p&gt;Then install three important things; &lt;a href="https://imagemagick.org/"&gt;ImageMagick&lt;/a&gt;, to give us its handy &lt;code&gt;display&lt;/code&gt; command; Matchbox Window Manager; and Unclutter, to hide the pointer.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt install imagemagick matchbox-window-manager unclutter&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Next step is to give the X server an &lt;code&gt;.xinitrc&lt;/code&gt; file in the home directory of the user who'll be running it, which will contain the commands issued once X is up. We'll use the default user &lt;em&gt;of&lt;/em&gt; in these examples.&lt;/p&gt;&#10;&lt;p&gt;A quick &lt;code&gt;nano ~/.xinitrc&lt;/code&gt; will create or open the file, where you can set whatever you need:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;unclutter -idle 0 -root &amp;amp; # immediate pointer vanishing act&#10;xset dpms 0 0 10 # set a 10 second display power off&#10;matchbox-window-manager # run the window manager (required)&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Other useful &lt;code&gt;xset&lt;/code&gt; commands are:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;xset dpms q # query current status&#10;xset dpms 0 0 0 # leave backlight on&#10;xset dpms 0 0 10 # turn backlight off after 10 seconds&#10;xset dpms force on # turn backlight on&#10;xset dpms force off # turn backlight off&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Finish everything up with:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo of-settings autostartx of&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now you'll have an OpenFrame which boots to a blank display. Marvellous!&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;display -window root tilly_grass.jpg&lt;/code&gt;&lt;/pre&gt;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/show-me-something/show-me-something-2_hu_23db560d6a37f0.webp 480w, https://birdslikewires.net/show-me-something/show-me-something-2_hu_cdb9a6e287ce636d.webp 960w, https://birdslikewires.net/show-me-something/show-me-something-2_hu_56e2b87a1a5248ec.webp 1600w, https://birdslikewires.net/show-me-something/show-me-something-2_hu_13628c14d6211a4d.webp 2048w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/show-me-something/show-me-something-2_hu_e225c771e9763f6a.jpeg" srcset="https://birdslikewires.net/show-me-something/show-me-something-2_hu_2427614b7968bd58.jpeg 480w, https://birdslikewires.net/show-me-something/show-me-something-2_hu_e225c771e9763f6a.jpeg 960w, https://birdslikewires.net/show-me-something/show-me-something-2_hu_3ba05ffdbd286ede.jpeg 1600w, https://birdslikewires.net/show-me-something/show-me-something-2_hu_bc6147c631d1c51a.jpeg 2048w" sizes="min(100vw, 720px)" width="2048" height="1536" loading="lazy" decoding="async" alt="Photograph of an OpenFrame 1 showing a picture of our cockapoo, Tilly, lying down in the grass, panting after a good frisbee session. The photo is taken from a low level, with a few blades of green grass out of focus in the foreground. The sky is clear blue, her tongue is sticking out, and it looks like she has a smile on her face."&gt;&lt;/picture&gt;&lt;figcaption&gt;Tilly, in her more usual environment.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;Using the &lt;code&gt;-window root&lt;/code&gt; flag sets the image behind everything else, a bit like a desktop background picture, so you can use the window manager to place other things on the screen should you wish. Oh, and the touchscreen works.&lt;/p&gt;&#10;&lt;p&gt;But that's far more than is required for my little project.&lt;/p&gt;&#10;&lt;p&gt;Good dog, Till.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/show-me-something</link><pubDate>Wed, 08 Oct 2025 01:25:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-10-08:b19d4f3af08220f3ccbb4b0f0e44fe4b/e1817035fd96f41931d724ab491a7257</guid></item><item><title>MQTT Action Check</title><description>&lt;p&gt;Some people need to debug their light switches, and I am one such idiot.&lt;/p&gt;</description><content:encoded>&lt;p&gt;I've been noticing a few of my Zigbee switches being a bit weird recently, but only the ones on Zigbee2MQTT. Just to be sure the messages are getting sent over the network properly I threw together this quick script which runs constantly on a Raspberry Pi.&lt;/p&gt;&#10;&lt;p&gt;It just listens for messages from my main switch and button devices, then reads the action value reported by Zigbee2MQTT using &lt;code&gt;jq&lt;/code&gt; and throws it out to me using the wonderful &lt;a href="https://pushover.net/"&gt;Pushover&lt;/a&gt; service.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;#!/usr/bin/env bash&#10;&#10;## action_check.sh v0.01 (6th October 2025)&#10;## Sends the action of a given button press received over MQTT to Pushover&#10;&#10;device_models=(&amp;#39;E1766&amp;#39; &amp;#39;E1812&amp;#39; &amp;#39;WXKG06LM&amp;#39; &amp;#39;WXKG07LM&amp;#39; &amp;#39;WXKG11LM&amp;#39; &amp;#39;WXKG12LM&amp;#39;)&#10;&#10;while true&#10;do&#10; mosquitto_sub -h &amp;#34;192.168.1.1&amp;#34; -t &amp;#34;zigbee2mqtt/#&amp;#34; -R | while read -r payload&#10; do&#10;&#10; if [[ &amp;#34;${payload:0:1}&amp;#34; == &amp;#34;{&amp;#34; ]]; then&#10;&#10; this_model=&amp;#34;$(echo &amp;#34;${payload}&amp;#34; | jq -r &amp;#39;.device.model&amp;#39;)&amp;#34;&#10;&#10; if [[ &amp;#34; ${device_models[@]} &amp;#34; =~ &amp;#34; ${this_model} &amp;#34; ]]; then&#10;&#10; action_value=&amp;#34;$(echo &amp;#34;${payload}&amp;#34; | jq -r &amp;#39;.action&amp;#39;)&amp;#34;&#10;&#10; if [[ -n &amp;#34;$action_value&amp;#34; ]] &amp;amp;&amp;amp; [[ &amp;#34;$action_value&amp;#34; != &amp;#34;null&amp;#34; ]]; then&#10;&#10; friendlyName=&amp;#34;$(echo &amp;#34;${payload}&amp;#34; | jq -r &amp;#39;.device.friendlyName&amp;#39;)&amp;#34;&#10; #echo &amp;#34;$friendlyName $action_value&amp;#34;&#10;&#10; curl -s -o /dev/null \&#10; --form-string &amp;#34;token=your_app_token&amp;#34; \&#10; --form-string &amp;#34;user=your_user_token&amp;#34; \&#10; --form-string &amp;#34;title=$friendlyName&amp;#34; \&#10; --form-string &amp;#34;message=$action_value&amp;#34; \&#10; --form-string &amp;#34;priority=-2&amp;#34; \&#10; https://api.pushover.net/1/messages.json &#10;&#10; fi&#10;&#10; fi&#10;&#10; fi&#10;&#10; done&#10; sleep 2&#10;done&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The lowest priority &lt;code&gt;-2&lt;/code&gt; setting means that the messages don't generate any notifications, but they are added to the Pushover app's &amp;quot;channel&amp;quot; and can be viewed with a pull-to-refresh. This way I don't get spammed whenever someone presses a light switch. But if you'd prefer that, just nudge the value up.&lt;/p&gt;&#10;&lt;p&gt;Of course, &lt;code&gt;systemd&lt;/code&gt; takes care of ensuring it's running with a user service. This lives as &lt;code&gt;~/.config/systemd/user/action-check.service&lt;/code&gt;:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[Unit]&#10;Description=MQTT Action Check&#10;After=network-online.target&#10;&#10;[Service]&#10;ExecStart=/path/to/action_check.sh&#10;Restart=always&#10;RestartSec=5s&#10;Type=simple&#10;RemainAfterExit=yes&#10;WorkingDirectory=/tmp&#10;StandardOutput=journal&#10;StandardError=journal&#10;&#10;[Install]&#10;WantedBy=default.target&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This Raspberry Pi was a pretty fresh install, so I needed to enable lingering to ensure it started without any login:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;loginctl enable-linger $USER&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then all the usual &lt;code&gt;systemd&lt;/code&gt; setup stuff:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;systemctl --user daemon-reload&#10;systemctl --user enable action-check.service&#10;systemctl --user start action-check.service&#10;systemctl --user status action-check.service&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Naturally, once I had this up and running the problem resolved itself by magic.&lt;/p&gt;&#10;&lt;h2&gt;Side Note, Not Magic&lt;/h2&gt;&#10;&lt;p&gt;As a conclusion to this tale, it turned out that the inconsistent problem was due to my implementation of a debounce function in my &lt;a href="https://github.com/birdslikewires/hubitat"&gt;Hubitat drivers&lt;/a&gt;. The debounce worked fine, but once enough time had elapsed the check would overflow the &lt;code&gt;long&lt;/code&gt; variable. When the resulting &lt;em&gt;negative&lt;/em&gt; value was compared to the debounce window it was, of course, always less than that duration. So any action during that period of time would be discarded.&lt;/p&gt;&#10;&lt;p&gt;Once the value rolled back around to positive the switches would work perfectly once again. But discovering this silly mistake took a little time given the number of steps, and potential points of failure, between the press of a wireless button and the programmed action.&lt;/p&gt;&#10;&lt;p&gt;Yes, I am aware of how daft this all is. But it's still cool.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/mqtt-action-check</link><pubDate>Mon, 06 Oct 2025 03:28:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-10-06:b19d4f3af08220f3ccbb4b0f0e44fe4b/9bd402479c4d0ac973ecaa5e33b99987</guid></item><item><title>Quick SDR++ Server Setup</title><description>&lt;p&gt;My speedy route to getting a solid SDR++ server running on a Raspberry Pi, with no compilation necessary. Or, &amp;quot;hey, you can hear aeroplanes!&amp;quot;&lt;/p&gt;</description><content:encoded>&lt;p&gt;You've got a Raspberry Pi in the loft, some sort of RTL-SDR dongle, a questionable antenna, and a burning desire to scroll through radio frequencies for reasons you can't sensibly define.&lt;/p&gt;&#10;&lt;p&gt;Great! Here's how to speed-run the installation of &lt;a href="https://www.sdrpp.org/"&gt;SDR++&lt;/a&gt; for server use.&lt;/p&gt;&#10;&lt;p&gt;I'm assuming you've used the &lt;a href="https://github.com/raspberrypi/rpi-imager/releases"&gt;Raspberry Pi Imager&lt;/a&gt; to write a copy of Raspberry Pi OS Lite (64-bit) based on Debian Trixie to the micro SD card and that you've got SSH access to it. The instructions are the same for Bookworm, you just need to download the Bookworm version of the &lt;code&gt;.deb&lt;/code&gt; package.&lt;/p&gt;&#10;&lt;h2&gt;Installation&lt;/h2&gt;&#10;&lt;p&gt;Create an unprivileged user to run the server:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo useradd -m --shell /sbin/nologin sdrpp&#10;sudo usermod -aG plugdev sdrpp&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Download and try to install the &lt;a href="https://github.com/AlexandreRouma/SDRPlusPlus/releases/tag/nightly"&gt;latest official nightly release&lt;/a&gt; from GitHub.&lt;/p&gt;&#10;&lt;p&gt;It'll fail, but don't worry:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;wget https://github.com/AlexandreRouma/SDRPlusPlus/releases/download/nightly/sdrpp_debian_trixie_aarch64.deb&#10;sudo dpkg -i ./sdrpp_debian_bookworm_aarch64.deb&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Install all of the things SDR++ thinks it needs:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt --fix-broken install&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then install the RTL-SDR shared library, or it'll not be able to talk to the dongle:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt install librtlsdr0 &lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Last thing to do is tell the system that members of the &lt;code&gt;plugdev&lt;/code&gt; group are allowed to use the dongle. Easiest way to do this is to fetch the &lt;code&gt;udev&lt;/code&gt; rules file from the RTL-SDR repo:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;wget https://raw.githubusercontent.com/rtlsdrblog/rtl-sdr-blog/refs/heads/master/rtl-sdr.rules&#10;sudo mv ./rtl-sdr.rules /etc/udev/rules.d/&#10;sudo chown root: /etc/udev/rules.d/rtl-sdr.rules&#10;sudo udevadm control --reload-rules&#10;sudo udevadm trigger&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You should now be able to fire up the server:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo -u sdrpp /usr/bin/sdrpp --server&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You'll likely see a bunch of errors about not being able to load certain shared object files. This is because the SDR++ nightly is compiled with a bunch of options we're not using, and it's trying to load the libraries required to support those features. We're just interested in it talking to our RTL-SDR dongle and being a server, so we can ignore all that.&lt;/p&gt;&#10;&lt;p&gt;If you can't ignore all that, or need to use some other dongle types, you're better off following &lt;a href="https://ragone.dev/post/install-sdrpp-server-raspberry-pi"&gt;this guide from Umberto Ragone&lt;/a&gt; where he explains how to compile from source.&lt;/p&gt;&#10;&lt;p&gt;If it's working, the command output should be holding at a line which says &lt;code&gt;Ready, listening on 0.0.0.0:5259&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h2&gt;Test Connection&lt;/h2&gt;&#10;&lt;p&gt;You should be able to connect to the server using a local copy of SDR++ by setting the source to &lt;em&gt;SDR++ Server,&lt;/em&gt; the IP to the address of the Raspberry Pi, and the port to &lt;em&gt;5259,&lt;/em&gt; which is the default.&lt;/p&gt;&#10;&lt;p&gt;Hit &lt;em&gt;Connect&lt;/em&gt; and set the &lt;em&gt;Sample type&lt;/em&gt; to &lt;em&gt;Int8&lt;/em&gt; to halve the required network bandwidth. You can use the &lt;em&gt;Compression&lt;/em&gt; option to drop network bandwidth further if you don't mind a little more load on the client and server.&lt;/p&gt;&#10;&lt;p&gt;You should have an option for &lt;em&gt;Source&lt;/em&gt; once connected, where you tell the server to use RTL-SDR from the dropdown, then choose your dongle from the dropdown underneath.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_71c32eb189e781f.webp 480w, https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_e668bf1719d5a476.webp 960w, https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_a31d2949b56b12e.webp 1600w, https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_1e6ae305b940eadd.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_71dba17039d1305b.jpeg" srcset="https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_f17739f86ceba989.jpeg 480w, https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_71dba17039d1305b.jpeg 960w, https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_d8893153995b7d90.jpeg 1600w, https://birdslikewires.net/sdrpp-server/sdrpp-server-1_hu_70d9373cfb210909.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of SDR&amp;#43;&amp;#43; running on the macOS desktop, connected to an SDR&amp;#43;&amp;#43; Server, and using the RTL-SDR dongle."&gt;&lt;/picture&gt;&lt;figcaption&gt;SDR&amp;#43;&amp;#43; running as a client on macOS&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;Nearly playtime!&lt;/p&gt;&#10;&lt;h2&gt;Server Start on Reboot&lt;/h2&gt;&#10;&lt;p&gt;You don't want to be running that command manually every time you want to connect, so to have the server start on reboot you'll need a systemd service:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo nano /etc/systemd/system/sdrpp.service&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Chuck this in it:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[Unit]&#10;Description=SDR&amp;#43;&amp;#43; Server&#10;After=network.target&#10;&#10;[Service]&#10;User=sdrpp&#10;Group=sdrpp&#10;&#10;WorkingDirectory=/usr/bin&#10;ExecStart=/usr/bin/sdrpp --server&#10;ExecStop=/bin/kill -s SIGTERM $MAINPID&#10;&#10;Restart=on-failure&#10;RestartSec=5&#10;&#10;StandardOutput=journal&#10;StandardError=journal&#10;&#10;[Install]&#10;WantedBy=multi-user.target&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then enable it and reboot to make sure it does what we expect:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo systemctl daemon-reload&#10;sudo systemctl enable sdrpp.service&#10;sudo reboot&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I found that quitting and reloading the local SDR++ client was necessary after having been attached to the server while testing, but subsequently it was completely fine.&lt;/p&gt;&#10;&lt;p&gt;Browse those airwaves!&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/sdrpp-server</link><pubDate>Mon, 22 Sep 2025 00:11:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-09-21:b19d4f3af08220f3ccbb4b0f0e44fe4b/76b813c47afff3eb46ce6c1b0eb8ba21</guid></item><item><title>Miniature Mac Experiment</title><description>&lt;p&gt;Wander through my bargain-based computing history, in the hope the entry-level might finally bring all the computing power I crave. Spoiler, it doesn't. But not by much.&lt;/p&gt;</description><content:encoded>&lt;p&gt;Back when I supported Windows systems for a living I used an &lt;a href="https://en.wikipedia.org/wiki/Acorn_Computers"&gt;Acorn&lt;/a&gt; &lt;a href="https://en.wikipedia.org/wiki/Risc_PC"&gt;Risc PC&lt;/a&gt; at home. That computer was my main machine for at least a decade, but with Acorn gone I knew that &lt;a href="https://en.wikipedia.org/wiki/RISC_OS"&gt;RISC OS&lt;/a&gt; couldn't stay as my everyday operating system for much longer.&lt;/p&gt;&#10;&lt;p&gt;Guess I've dated myself a bit there.&lt;/p&gt;&#10;&lt;p&gt;Sitting in front of Windows every day, I decided that wasn't what I wanted to see when I left work. It was either going to be Mac or Linux, and the year of the Linux desktop was still twenty-two years in the future for me. &amp;quot;Besides,&amp;quot; I thought, &amp;quot;a bit of Mac knowledge might open other doors in the future.&amp;quot; From the moment I wiggled the pointer over the Dock and all those shiny icons magnified into view, I was hooked. This might even be &lt;em&gt;fun!&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Entering the summer of 2003 the new PowerMac G5 was announced, so I was able to find a lovely PowerMac G4 at a discount. Top-of-the-range dual 1.42 GHz, and probably the most expensive single thing I'd ever bought at the time.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_c131c3ee5c8a1911.webp 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_20d10e583ffd8512.webp 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_c84e70d2f86c04ce.webp 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_26279a62051e1476.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_a83702716615b4fb.jpeg" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_83f4285f74eeb12d.jpeg 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_a83702716615b4fb.jpeg 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_6b10fb0386d64177.jpeg 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-1_hu_b33d9fa3e7ebef34.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1568" loading="lazy" decoding="async" alt="Old photograph of my PowerMac G4 dual CPU board without its heatsink, carrying two Motorola PowerPC 7455 processors."&gt;&lt;/picture&gt;&lt;figcaption&gt;Yes, I overclocked it. No, it wasn&amp;#39;t the greatest idea.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;One decade later (this appears to be my cadence for a big system upgrade) it was time to pull a similar move with the Mac Pro. Once the &amp;quot;trashcan&amp;quot; Mac Pro was announced I managed to wangle a deal on the &amp;quot;Mid 2012&amp;quot; model, another dual CPU system with Xeon X5650s at 2.66 GHz.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_e3f0be933de0dfeb.webp 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_a939c1a2a74a2288.webp 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_798e2b5dde779ffd.webp 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_1d8f735c61832c2f.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_87c584be2ec79b20.jpeg" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_50126595ea377fec.jpeg 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_87c584be2ec79b20.jpeg 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_294f14f62b2ee666.jpeg 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-2_hu_5327c8caf61ace70.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1340" loading="lazy" decoding="async" alt="Photograph of two Mac Pro models side-by-side on the floor with the side panels removed. The one on the left is an older &amp;#34;Early 2009&amp;#34; model with a huge portion of the case given up to the removable DRAM boards. The newer &amp;#34;Mid 2010&amp;#34; model on the right has a much larger and simpler lower section combining CPUs and DRAM into one removable module."&gt;&lt;/picture&gt;&lt;figcaption&gt;Early 2009 on the left, Mid 2010 on the right. My Mid 2012 looked identical to the one on the right, except for the fancy Pro Tools TDM cards.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;We purchased quite a few Mac Pro (Late 2013) models at work around then, and like most folk I thought I'd try to be funny.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_8ba4e2a3ef43db1.webp 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_c2ebc212b33983d1.webp 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_6b35ddada69e797e.webp 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_7f1868a9e16ccba3.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_35e4376af83e71f4.jpeg" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_31d1fea01e4bcb1b.jpeg 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_35e4376af83e71f4.jpeg 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_dd689f596106988b.jpeg 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-3_hu_cd335d53300f68fe.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1800" loading="lazy" decoding="async" alt="Photograph of a Mac Pro (2013) on the floor in the corner of a room, with an empty KitKat wrapper and coffee cup perched on top. This was known as the &amp;#34;trash can&amp;#34; Mac, so I thought I&amp;#39;d be amusing."&gt;&lt;/picture&gt;&lt;figcaption&gt;Trash Can Mac&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3&gt;Aiming High&lt;/h3&gt;&#10;&lt;p&gt;My plan has always been to buy something great and keep it for ages, upgrading and tinkering with things along the way. But my requirements of a computer haven't really changed a great deal over all those years. Sure, I deal with more video these days, but almost any moderate system in the 2020s can do that well enough for me. And with Mac computers at least, tinkering has become less possible as components have been distilled down into system-on-chip packages.&lt;/p&gt;&#10;&lt;p&gt;So I bought a MacBook Pro laptop, which was a mistake. Brilliant machine, but I got a screen I barely used, a battery I just watched degrade, and I barely took it anywhere because it was so expensive and I didn't want to lose it or smack it against a rack cabinet. I've got a cheap Thinkpad running Ubuntu for that.&lt;/p&gt;&#10;&lt;p&gt;I'd have liked to buy a Mac Pro (2019) but I don't love the &amp;quot;disconnect everything from the back to open&amp;quot; case design, they're still flippin' expensive, and they're outperformed by 2x multi-core and 3x single-core &lt;em&gt;by the current Mac mini&lt;/em&gt; at a third of even a low second-hand price. Plus, this is supposed to be a long-term purchase. It's expected that Intel systems will be dropped from macOS next year.&lt;/p&gt;&#10;&lt;h2&gt;Miniature Mac&lt;/h2&gt;&#10;&lt;p&gt;Outperformed by the current Mac mini, eh? For £599? Maybe I should just get one of those.&lt;/p&gt;&#10;&lt;p&gt;So I did. Back to proper desktop ARM system after twenty years away.&lt;/p&gt;&#10;&lt;p&gt;I picked one up on the day they were released and made an overly long video taking a peek in the box, because I was quite excited to have it. My plan was to see if I could use it for a year as my primary computer. The Mac mini (2024) was released in November of last year, so right now I'm at about ten months.&lt;/p&gt;&#10;&lt;p&gt;For six hundred quid, it's really an amazing computer. The processing power in it is wild, and the fan can only ever be heard (even then only quietly) after squishing video for more than a few minutes. Graphical compute? Okay, that's not so brilliant. It's about half the speed of the Radeon VII in my Mac Pro, but that's not something I demand of it. It's been great.&lt;/p&gt;&#10;&lt;p&gt;But ten months in, what's gone wrong?&lt;/p&gt;&#10;&lt;h2&gt;Memory&lt;/h2&gt;&#10;&lt;p&gt;As has been widely observed, the moment you customise the Mac mini in any way, the value proposition falls off a cliff. My guess was that I could get away with the base model because I'd be pairing it with my dock from the laptop days, which has a big SSD inside for chunky file storage. The laptop had 32 GB of &lt;a href="https://www.youtube.com/watch?v=NZEYixcIUNk&amp;amp;t=1921s"&gt;dedotated wam&lt;/a&gt;, the old Mac Pro has 96 GB, but I thought I could get away with it. And I did. For quite a while.&lt;/p&gt;&#10;&lt;p&gt;Trick is, that little SSD was doing some heavy lifting. While the system was fresh and clean, as I tried to keep it, it worked just fine. But add an app here, a background service there, and before I'd really noticed the memory pressure was constantly 50% and higher, and swap was in constant use.&lt;/p&gt;&#10;&lt;p&gt;The most notable consequence was software beginning to hang while data was shuffled back and forth from RAM to SSD and back again. Sometimes a quit-and-restart was the faster (occasionally only, Firefox) way to get an app back into operation. In hand with that was the wear on that internal drive, which had dropped to 96% health in those ten months. It took my server Mac mini (2020) three and a half years to reach the same point, and I'd mistakenly put the iCloud cache on that drive.&lt;/p&gt;&#10;&lt;p&gt;I hopped onto Apple's website and clicked to upgrade one to 32 GB. Turns out that extra 16 GB RAM costs £400, more than ten times the cost of buying a stick of DDR5, making the £599 bargain a much less palatable £999. That's insane, which is likely why there are no bargains to be found on eBay either. Nobody's that daft!&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_bcc29b086e2d0b8.webp 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_36cdc01fd173ef6c.webp 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_4327879702a17c30.webp 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_3681ddc3a9c59645.webp 2096w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_3d995be1183b1709.jpeg" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_da6ae1b074fcc5b3.jpeg 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_3d995be1183b1709.jpeg 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_412c7395be656229.jpeg 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-4_hu_5c4754beb8e27e05.jpeg 2096w" sizes="min(100vw, 720px)" width="2096" height="1000" loading="lazy" decoding="async" alt="Screenshot of Apple&amp;#39;s website showing 24GB unified memory as £200 extra, and 32GB as £400 extra."&gt;&lt;/picture&gt;&lt;figcaption&gt;It&amp;#39;s twenty-five quid per gigabyte.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;This, I decided, was the worst case scenario, so I set my budget to a total of £1000, under the assumption I could get about £450 for the Mac mini, and set off searching for a deal. There had to be something else out there. Some Mac with Apple silicon that has 32 GB RAM, but one I can buy second-hand that doesn't perform too much worse than the M4.&lt;/p&gt;&#10;&lt;p&gt;No way. I can have one of &lt;em&gt;those?&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2&gt;Biscuit Tin&lt;/h2&gt;&#10;&lt;p&gt;What if I were to say that you can have that 32 GB RAM with double the storage, ten-gig ethernet, an extra Thunderbolt 4 port, a couple of additional USB-A ports, an SDXC card slot, &lt;a href="https://browser.geekbench.com/v6/cpu/compare/13725695?baseline=13732854"&gt;the same multi-core performance, roughly 70% of the single-core performance,&lt;/a&gt; but &lt;a href="https://browser.geekbench.com/v6/compute/compare/4761748?baseline=4764262"&gt;far more than double the graphics performance&lt;/a&gt; for £5 less?&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_4d15494216f280dc.webp 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_7453e2d69172a6c9.webp 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_eedb2954c84beb11.webp 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_a5b337da1a6c76e3.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_dfb4fe780b01bf9d.jpeg" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_62f82419df21b3a0.jpeg 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_dfb4fe780b01bf9d.jpeg 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_b07a684882e98981.jpeg 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-5_hu_a42c1cd59894add9.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1139" loading="lazy" decoding="async" alt="Screenshot of a Mac Studio (2023) for £1069. There&amp;#39;s still £75 off today. I don&amp;#39;t mind shouting out the seller, Gadgets Den Ltd., because he was great. Even if his packing was a bit... well, it was a shoebox."&gt;&lt;/picture&gt;&lt;figcaption&gt;Bargain whales.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;That's the Mac Studio for you, specifically the base M2 Max version.&lt;/p&gt;&#10;&lt;p&gt;Okay, eBay had a £75 coupon running at the time, and at this moment they &lt;a href="https://www.ebay.co.uk/itm/167762271421"&gt;still do&lt;/a&gt;. But even at the full £1069 I'd probably have broken my budget a bit and gone for it.&lt;/p&gt;&#10;&lt;p&gt;It's the ultimate biscuit tin of Apple computers. Photos don't do justice to its sheer size and blank appearance. Where the Mac mini is a well-proportioned little jewel, this is a brick.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_d783e091c6b66751.webp 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_50a33490899d7a9f.webp 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_89c62355e2ae03fc.webp 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_df79a9874554a39b.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_ebb80f4ba8282809.jpeg" srcset="https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_174658a2a266f1cc.jpeg 480w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_ebb80f4ba8282809.jpeg 960w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_e25808d001ab530e.jpeg 1600w, https://birdslikewires.net/mini-mac-experiment/mini-mac-experiment-6_hu_f11efc49ec2fda46.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1655" loading="lazy" decoding="async" alt="A Mac mini (2024) sat on top of a Mac Studio (2023). One is 5 cm tall, 12.7 cm square when viewed from the top, and weighs 670 g. The other is 9.5 cm tall, 19.7 cm square, and weighs 2700 g. It has an oddly proportioned front which makes it appear to have a huge forehead, like Dec, of Ant &amp;amp; Dec fame."&gt;&lt;/picture&gt;&lt;figcaption&gt;Hello, brick.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;But what a brick!&lt;/p&gt;&#10;&lt;h2&gt;Winning Brick&lt;/h2&gt;&#10;&lt;p&gt;This Mac Studio is silent all the time. The cooling system was clearly built for the snazzier M2 Ultra, because on this one the fans never spin up above idle. Even doing dull stuff, like scrolling big spreadsheets, it's so smooth what with having all that GPU power to spare. That was the biggest surprise; that there'd be any noticeable difference with graphical performance on the desktop. I'd assumed that bridge was well and truly crossed with the M4.&lt;/p&gt;&#10;&lt;p&gt;And I thought the slower single-core performance might be noticeable, but for my work it hasn't been in the least. If I'd bought that upgraded Mac mini and tried one of these at some point in the future, I'd have been very disappointed with my choice.&lt;/p&gt;&#10;&lt;p&gt;It's even capable of firing up some games, though benchmarks definitely don't tell the whole story there. I'll have a waffle about that at some point, next time I get chance.&lt;/p&gt;&#10;&lt;h2&gt;Deals To Be Had&lt;/h2&gt;&#10;&lt;p&gt;It was very close, but it seems my needs still can't quite be met by Apple's entry-level machine. If tinkering were possible, even just throwing in a RAM stick, I'd likely have got away with it. The real surprise was just how expensive that base model could become, and how much of a bargain (comparatively speaking) could be had when looking at the previous generation.&lt;/p&gt;&#10;&lt;p&gt;Perhaps the lack of upgradability is heralding a stronger supply of retired systems for IT bargain hunters such as myself; ones which haven't been twiddled with, and might be in better working order than if the previous owner spent more time in there with a screwdriver.&lt;/p&gt;&#10;&lt;p&gt;It'll be interesting to see (perhaps in another ten years) where the balance has shifted. Will we all need ridiculous systems to support our virtual assistants, or will the second-hand and last-generation options be even more viable than ever?&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/mini-mac-experiment</link><pubDate>Thu, 18 Sep 2025 12:29:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-09-18:b19d4f3af08220f3ccbb4b0f0e44fe4b/78d7f10e7ee291092317f6e238adf743</guid></item><item><title>The Dell 1320cn Printer and macOS</title><description>&lt;p&gt;Things get a little meta as I explain how to continue to use a printer, purchased a mere six thousand and sixty-five days ago.&lt;/p&gt;</description><content:encoded>&lt;p&gt;Do you have a Dell 1320c or 1320cn? And a Mac? Are you tired of not being able to print? Fret no more!&lt;/p&gt;&#10;&lt;p&gt;The drivers from Dell are... well, they're gone. Dell deleted all reference to them. Thanks, Mike. But, as is so often the case, the hardware inside that Dell printer isn't really Dell at all. What you actually have is a revamped version of the Fuji Xerox DocuPrint C525.&lt;/p&gt;&#10;&lt;p&gt;Sadly, Fuji Xerox are just as keen to sell you a new printer as Dell, even if yours is still working perfectly 4101 days after making an &lt;a href="https://birdslikewires.net/the-dell-1320cn-printer-and-os-x" title="Installation of the Dell 1320cn"&gt;eerily similar&lt;/a&gt; post!&lt;/p&gt;&#10;&lt;h2&gt;Installation&lt;/h2&gt;&#10;&lt;p&gt;You can't install the drivers from anywhere now, including Apple's website, where they used to have them bundled up into a snazzy, auto-updating package. Thankfully, for reasons unknown, an ever-so-slightly &lt;a href="https://mega.nz/file/yCJk0R4B#Ioi1F_OnOkOaOrTqjDjS8SreF1wocPp2xgLfzyXtfkM"&gt;updated version of the driver&lt;/a&gt; is available. This should work on every PowerPC and Intel Mac ever released, all the way up to todays macOS Sequoia.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_1fee9ed388054420.webp 480w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_7c367df1e5ed156.webp 960w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_8eea5589a8495681.webp 1600w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_affaa299f16b262e.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_6df4c3b54d643db6.jpeg" srcset="https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_9a274cab347291d1.jpeg 480w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_6df4c3b54d643db6.jpeg 960w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_a93313fcf2f98932.jpeg 1600w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-1_hu_c61483eae13890eb.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1289" loading="lazy" decoding="async" alt="Screenshot of the printer system settings windows, showing the FX DocuPrint C525 A-AP v3.3 driver being installed."&gt;&lt;/picture&gt;&lt;figcaption&gt;Installation of the Dell 1320cn, looking unrecognisable from eleven years ago.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;You'll need to supplement (or just replace) your &lt;code&gt;/Library/Printers&lt;/code&gt; directory with the contents of &lt;code&gt;Printers_C525_v33.tgz&lt;/code&gt;. Restart &lt;a href="https://openprinting.github.io/cups/"&gt;CUPS&lt;/a&gt; from the Terminal with:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo launchctl stop org.cups.cupsd&#10;sudo launchctl start org.cups.cupsd&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then just head to &lt;em&gt;System Settings &amp;gt; Printers &amp;amp; Scanners&lt;/em&gt; and click &lt;em&gt;&amp;quot;Add Printer, Scanner or Fax...&amp;quot;&lt;/em&gt; to install a printer, a scanner, or a... fax machine?&lt;/p&gt;&#10;&lt;p&gt;My 1320c is the networked version, so I just chose 'IP' and entered the address. Either LPD or Socket connection should be fine. Give it a name and location, then open up the list next to the &lt;em&gt;'Use'&lt;/em&gt; label. Choose &lt;em&gt;'Select Software...'&lt;/em&gt; and search for C525.&lt;/p&gt;&#10;&lt;p&gt;With any luck you should see v3.3, which correctly defaults the driver to using the paper feeder which &lt;em&gt;every version of this printer was supplied with,&lt;/em&gt; and not the flippin' bypass tray.&lt;/p&gt;&#10;&lt;h2&gt;Done&lt;/h2&gt;&#10;&lt;p&gt;Believe it or not, unless your fuser has fused, you should now be able to print! Even the &lt;em&gt;Supply Levels&lt;/em&gt; screen still works!&lt;/p&gt;&#10;&lt;p&gt;I don't miss having a secondary monochrome-only driver, because that would be dumb, and easily rectified with setting presets. If you'd like AirPrint compatibility, you can install &lt;a href="https://github.com/sapireli/AirPrint_Bridge"&gt;AirPrint Bridge&lt;/a&gt; and print from your iPhone like a weirdo.&lt;/p&gt;&#10;&lt;p&gt;With that you should be printing lovely colour copies from that black monolith for years to come. Or until Apple removes Rosetta from macOS, because the CUPS filters the driver relies upon are compiled for ppc7400, i386, and x86_64.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_5c33469455e6f4d3.webp 480w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_3a710f8aaac6698a.webp 960w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_1bcf47de92fa9e56.webp 1600w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_2e2bbd088010bc58.webp 1880w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_753d0159ef64911e.jpeg" srcset="https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_ced54ae70585be2.jpeg 480w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_753d0159ef64911e.jpeg 960w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_64497a4b3e677368.jpeg 1600w, https://birdslikewires.net/the-dell-1320cn-printer-and-macos/the-dell-1320cn-printer-and-macos-2_hu_276cae617b71cc1c.jpeg 1880w" sizes="min(100vw, 720px)" width="1880" height="922" loading="lazy" decoding="async" alt="Screenshot from Amazon of the Order Details from 25th January 2009, when I bought this colour laser printer brand new for £87.79, a mere 6065 calendar days ago."&gt;&lt;/picture&gt;&lt;figcaption&gt;Possibly my best tech bargain. It&amp;#39;ll catch fire next week.&lt;/figcaption&gt;&lt;/figure&gt;</content:encoded><link>https://birdslikewires.net/the-dell-1320cn-printer-and-macos</link><pubDate>Wed, 03 Sep 2025 04:09:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-09-03:b19d4f3af08220f3ccbb4b0f0e44fe4b/3a52705beb1375d37f503058ac0e8506</guid></item><item><title>Ollama Clients</title><description>&lt;p&gt;Taking a quick sniff at some LLM clients which work on Mac.&lt;/p&gt;</description><content:encoded>&lt;p&gt;I've been playing with &lt;a href="https://birdslikewires.net/ollama-macpro"&gt;my new LLM toys&lt;/a&gt; on and off over the past couple of days, and had chance to try out a few of those client applications. The long and short of it is that I'm still using &lt;a href="https://github.com/open-webui/open-webui"&gt;Open WebUI&lt;/a&gt;, but moved it onto the Mac Pro given that it wouldn't interfere with anything, and it's only of use to me when that system's up and running anyway.&lt;/p&gt;&#10;&lt;h2&gt;Speedy Installation Instructions&lt;/h2&gt;&#10;&lt;p&gt;Create a &lt;a href="https://docs.bazzite.gg/Installing_and_Managing_Software/Quadlet/"&gt;Quadlet&lt;/a&gt; that fires up the Open WebUI container on boot:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[Container]&#10;ContainerName=open-webui&#10;Image=ghcr.io/open-webui/open-webui:main&#10;AutoUpdate=registry&#10;PublishPort=8080:8080&#10;Volume=open-webui:/app/backend/data&#10;Network=host&#10;&#10;[Unit]&#10;Description=Open WebUI&#10;&#10;[Install]&#10;WantedBy=default.target&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I'm happy with it using port 8080, so they're mapped one-to-one. Note &lt;code&gt;Network=host&lt;/code&gt; is required, or the container won't be able to see Ollama.&lt;/p&gt;&#10;&lt;p&gt;Get systemd to see it and fire it up:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;systemctl --user daemon-reload&#10;systemctl --user start open-webui&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Check everything's happy:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;systemctl --user status open-webui&#10;journalctl --user -fu open-webui&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If it's not firing up before the desktop on reboot:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;loginctl enable-linger $USER&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It's certainly feature-rich and I really don't understand most of the options just yet, but it does a good job of keeping all that out of your way when it's in use, so I can worry about it if and when I decide I need to.&lt;/p&gt;&#10;&lt;h2&gt;Apps&lt;/h2&gt;&#10;&lt;p&gt;I'd listed &lt;a href="https://chatboxai.app/en"&gt;Chatbox AI&lt;/a&gt;, &lt;a href="https://github.com/gluonfield/enchanted"&gt;Enchanted&lt;/a&gt;, &lt;a href="https://github.com/kevinhermawan/Ollamac"&gt;Ollamac&lt;/a&gt;, and &lt;a href="https://ollamac.com"&gt;Ollamac Pro&lt;/a&gt; in the previous article. I did have a muck about with them, and Chatbox AI is probably the most flexible and complete in my opinion. There's plenty of noise on there when it first launches, but it's pretty quickly cleaned up and you'll find Ollama as a Model Provider once you've clicked through the first couple of prompts hoping you've got a subscription to one thing or another.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_f1727f9d84275249.webp 480w, https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_d39b325cc0f743b.webp 960w, https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_8b6e692efb501dfd.webp 1600w, https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_587e930bbc9c7120.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_5dd8e531a8b42a9e.jpeg" srcset="https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_1ca20b6b12e90762.jpeg 480w, https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_5dd8e531a8b42a9e.jpeg 960w, https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_39ef813f2d02ffd5.jpeg 1600w, https://birdslikewires.net/ollama-clients/ollama-clients-1_hu_d02cfa4e089eb355.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of Chatbox AI&amp;#39;s user interface, with a four panel design and plenty of &amp;#34;example content&amp;#34; over on the left bar, where the chats live."&gt;&lt;/picture&gt;&lt;figcaption&gt;It&amp;#39;s busy, but it works.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;One big Chatbox AI face-plant is that the iPad app isn't requesting local network access permissions, and doesn't even appear in the &lt;strong&gt;Settings &amp;gt; Privacy &amp;amp; Security &amp;gt; Local Network&lt;/strong&gt; list to grant it manually. Therefore, it can't see my Ollama server from the iPad. I'm not sure whose fault that is.&lt;/p&gt;&#10;&lt;p&gt;My next best for desktop was &lt;a href="https://github.com/kevinhermawan/Ollamac"&gt;Ollamac&lt;/a&gt;. It's quick, it's dead simple, it's open source. Runs on the Mac, but there's no mobile device version. It took a quit-and-restart to get it seeing the Ollama server, but worked perfectly after that, and it has a few basic per-chat settings including model selection, system prompt, temperature, and so on. The chat window is clear, text is easy to select, there's a copy button. However, sometimes it wouldn't scroll the content, leaving my prompt hidden behind the &lt;em&gt;&amp;quot;Write your message here&amp;quot;&lt;/em&gt; text box, and the response even lower. Despite that, I may well keep this one around, because it's nice to flick over to a quick app interface rather than a web page sometimes.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_49868b8d7d211401.webp 480w, https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_89a61806901c64ba.webp 960w, https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_eeeec2140a892720.webp 1600w, https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_389489fb8b33d318.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_43b219816f228bd1.jpeg" srcset="https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_16b261d6f0e3721c.jpeg 480w, https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_43b219816f228bd1.jpeg 960w, https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_9e54c02ae838a5e0.jpeg 1600w, https://birdslikewires.net/ollama-clients/ollama-clients-2_hu_d0ff5406fb37748f.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of Ollamac. The layout is a classic two panel design with chats list on the left, current chat on the right."&gt;&lt;/picture&gt;&lt;figcaption&gt;Just Does The Job&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;For me, Enchanted and Ollamac Pro (unrelated to Ollamac, so I discover) both suffered from having a low-contrast user interface with the worst sin of not returning the caret to the text input field after the response had been received. Every time I would have to move my hand back to the mouse to click back on the input, or mash the TAB key and hope for the best.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_8eb7df5efbac9e39.webp 480w, https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_d86f782699b9fc12.webp 960w, https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_64187b9ad0300aff.webp 1600w, https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_65ab8d177eb1b664.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_f34e1db878d62d3a.jpeg" srcset="https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_b765fa0f89f01899.jpeg 480w, https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_f34e1db878d62d3a.jpeg 960w, https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_35f6031b044bc8be.jpeg 1600w, https://birdslikewires.net/ollama-clients/ollama-clients-3_hu_a5e6b9440b47f151.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of Enchanted for macOS, which is... very grey. There&amp;#39;s no differentiation between the chat and the prompt area. And it&amp;#39;s all grey."&gt;&lt;/picture&gt;&lt;figcaption&gt;Grey, grey, and more grey.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;At least Enchanted's mobile version (for iPad and iPhone no less) asked for the correct permissions and connected to the server, so that was a plus. It would be nice if someone offered iCloud sync of chat history. That would be pretty cool.&lt;/p&gt;&#10;&lt;p&gt;For reasons unknown, Ollamac Pro defaulted to white text on a grey background. It's easily changed in the settings, but why? Then it did the no-caret-in-the-text-box trick, and I hit CMD-Q to be done for the night. Not a comprehensive review, I'll admit.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_37f2ea888f662c0e.webp 480w, https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_beffd8d88374000c.webp 960w, https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_60249dae735aa642.webp 1600w, https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_426d5ea8abeca13c.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_3368a25dc4ca4b8d.jpeg" srcset="https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_54e3fe10b6c2fae3.jpeg 480w, https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_3368a25dc4ca4b8d.jpeg 960w, https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_21adcce1e015c335.jpeg 1600w, https://birdslikewires.net/ollama-clients/ollama-clients-4_hu_adcb548a148f0648.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of Ollamac Pro, with the bizarre default of white text on light grey background. I can make out the emojis, but that&amp;#39;s about all."&gt;&lt;/picture&gt;&lt;figcaption&gt;Can you read this?&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2&gt;Irony&lt;/h2&gt;&#10;&lt;p&gt;Now that I have this resource, I discover that I've pretty much finished the task I was planning to use it for. But it does feel very curious having this condensed, offline, queryable, statistical knowledge-in-a-jar system next to me, and I know it's only a button-press away when I next think it may be useful.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/ollama-clients</link><pubDate>Mon, 01 Sep 2025 01:25:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-09-01:b19d4f3af08220f3ccbb4b0f0e44fe4b/aab3a4ec52b463a077dc8de9b327b795</guid></item><item><title>Ollama on Mac Pro with Bazzite</title><description>&lt;p&gt;This is all about getting Ollama working on the Bazzite operating system, on some particularly niche hardware. Spoiler, it's pretty much &lt;em&gt;perfect.&lt;/em&gt;&lt;/p&gt;</description><content:encoded>&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; There are a couple of updates at the end of this article regarding the discontinuation of ROCm support for gfx900 and gfx906 based GPUs, and the move over to Vulkan for acceleration instead.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;Once the AI label has been peeled off, I've found LLMs to be a remarkable tool to assist with programming. I'm a fly-by-night &amp;quot;coder&amp;quot; at the best of times, hopping between languages and platforms, forgetting the syntax here, repeating myself there. I do what I can, but if you asked me how to properly structure an &lt;code&gt;if&lt;/code&gt; statement in PHP off the top of my head right now, I'd probably get it wrong.&lt;/p&gt;&#10;&lt;p&gt;Recently I've been developing more drivers for &lt;a href="https://hubitat.com/"&gt;Hubitat&lt;/a&gt; and found Google's &lt;a href="https://gemini.google.com"&gt;Gemini&lt;/a&gt;, just the freebie '2.5 Flash' model, to be a great help. It's particularly useful when I know there's a better way to deal with something but can't remember how, or if I hit a novel problem and want some suggestions. It's been particularly great at decoding Zigbee messages and answering my &lt;em&gt;&amp;quot;but why?&amp;quot;&lt;/em&gt; questions when I don't get the reason behind some hex value being the way it is. It also shows its references, so I can jump out to the website it digested and read the information in context, which is great.&lt;/p&gt;&#10;&lt;h2&gt;Local Models&lt;/h2&gt;&#10;&lt;p&gt;This is all fun and games, but I wanted to know if I could run a model locally. I've done it with &lt;a href="https://ollama.com/"&gt;Ollama&lt;/a&gt; on my little Mac mini before, and the performance is... okay. The big hitch is my mini-experiment (I might mention that one day) has only 16 GB of shared memory, so I can't throw a decently-sized model on there and keep working normally. It needs to go on something else.&lt;/p&gt;&#10;&lt;p&gt;Next to me is my &lt;a href="https://support.apple.com/en-gb/118464"&gt;Mac Pro (2012)&lt;/a&gt;. At the time of writing it's about thirteen years old. As you may be able to tell from older posts on here, I kept it running a long time after Apple dropped support for it, with Monterey being the last macOS version I used regularly. It's now (don't laugh) my gaming PC running &lt;a href="https://bazzite.gg/"&gt;Bazzite&lt;/a&gt;, because it got a lovely Radeon VII graphics card back in 2020, and until very recently my games backlog went all the way back to Half Life (the first one). It ran that just fine. ;)&lt;/p&gt;&#10;&lt;p&gt;Trick is, the Intel Xeon &lt;a href="https://www.intel.com/content/www/us/en/products/sku/52576/intel-xeon-processor-x5690-12m-cache-3-46-ghz-6-40-gts-intel-qpi/specifications.html"&gt;X5690&lt;/a&gt; CPUs I have in the Mac Pro don't support any form of AVX extension, and though it's not required and you can build Ollama yourself without it, that turned out to be too much when I first visited this issue with Ubuntu back in early 2023. I got it compiled and it would run on CPU, but it would never pass the checks and launch with GPU support. Seeing as hosting the GPU would be the system's main job, it was a bit of a failure.&lt;/p&gt;&#10;&lt;h2&gt;Running On Bazzite&lt;/h2&gt;&#10;&lt;p&gt;What with Bazzite being an &lt;a href="https://itsfoss.com/immutable-distro/"&gt;immutable operating system&lt;/a&gt;, and therefore not really a playground for modding GPU drivers, I thought I might be out of luck. However, its strength is that everything &lt;em&gt;should&lt;/em&gt; work out-of-the-box, making that low-level tinkering unnecessary. Fingers crossed.&lt;/p&gt;&#10;&lt;p&gt;When I discovered Ollama had &lt;a href="https://github.com/ollama/ollama/issues/644#issuecomment-1783903043"&gt;switched from compile-time to run-time checks&lt;/a&gt; for AVX extensions (quite some time ago) it seemed that there was some hope. After a &lt;a href="https://github.com/ublue-os/bazzite/issues/1488#issuecomment-2297879370"&gt;little&lt;/a&gt; &lt;a href="https://github.com/ublue-os/bazzite/issues/1488#issuecomment-2297879370"&gt;digging&lt;/a&gt; I discovered how to make it work. Buckle in.&lt;/p&gt;&#10;&lt;p&gt;First, allow containers to access devices, otherwise that GPU isn't going to do much.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo setsebool -P container_use_devices=true&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then use podman to pull in the ROCm version of Ollama.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;podman run -it --name ollama --replace -p 0.0.0.0:11434:11434 -v ollama:/root/.ollama --device /dev/kfd --device /dev/dri docker.io/ollama/ollama:rocm&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You're all done. It's that easy now.&lt;/p&gt;&#10;&lt;p&gt;Test it with the command line interface.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;podman exec -it ollama ollama run gemma3:4b --verbose&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I'm very impressed.&lt;/p&gt;&#10;&lt;h2&gt;Tidy Up&lt;/h2&gt;&#10;&lt;p&gt;The Ollama server itself really doesn't use anything in the way of resources when it's just sat idle in the background, and I wanted a literal push-button LLM experience. The way to &lt;a href="https://docs.bazzite.gg/Installing_and_Managing_Software/Quadlet/"&gt;do this on Bazzite is with Quadlet&lt;/a&gt;, which integrates containers into systemd.&lt;/p&gt;&#10;&lt;p&gt;My &lt;code&gt;ollama.container&lt;/code&gt; file lives in &lt;code&gt;~/.config/containers/systemd/&lt;/code&gt; and looks like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[Container]&#10;ContainerName=ollama&#10;Image=docker.io/ollama/ollama:rocm&#10;AutoUpdate=registry&#10;PublishPort=11434:11434&#10;Volume=ollama:/root/.ollama&#10;AddDevice=/dev/kfd&#10;AddDevice=/dev/dri&#10;&#10;[Unit]&#10;Description=Ollama with ROCm&#10;&#10;[Install]&#10;WantedBy=default.target&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Get things set up with:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;systemctl --user daemon-reload&#10;systemctl --user start ollama&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Check the status with the usual suspects:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;systemctl --user status ollama&#10;journalctl --user -fu ollama&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then get the service to start before you log in to the desktop with:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;loginctl enable-linger $USER&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Any service with that &lt;code&gt;[Install]&lt;/code&gt; section will now fire up in the background behind the login window as your user.&lt;/p&gt;&#10;&lt;p&gt;When I want to use an LLM, I push the power button on the Mac Pro and the Ollama server will fire up as soon as the system is ready. The action of the power button is captured by Bazzite, so I configured the system settings to perform a clean shutdown when it's tapped.&lt;/p&gt;&#10;&lt;p&gt;This all behaves itself while running in a completely headless configuration, so when I'm working on my Mac mini, with all peripherals disconnected from the Mac Pro, I just press the power button. When I'm done for the day and fancy acting like a &lt;a href="https://goose.game/"&gt;goose&lt;/a&gt;, I flip my screen and peripherals over to the Mac Pro and log straight in.&lt;/p&gt;&#10;&lt;p&gt;For that real &amp;quot;native feel&amp;quot; a quick entry in your &lt;code&gt;.bash_aliases&lt;/code&gt; file or equivalent...&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;alias ollama=&amp;#34;podman exec -it ollama ollama&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;...makes everything seem right at home.&lt;/p&gt;&#10;&lt;h2&gt;Clients&lt;/h2&gt;&#10;&lt;p&gt;I'm still experimenting with clients, and haven't quite settled on anything. I'm mostly using &lt;a href="https://github.com/open-webui/open-webui"&gt;Open WebUI&lt;/a&gt; because that's what I bumped into first. I run it on my Mac with the assistance of &lt;a href="https://orbstack.dev/"&gt;OrbStack&lt;/a&gt;, set up with the following command:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;docker run -d --name open-webui -p 3000:8080 -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://192.168.1.1:11434 ghcr.io/open-webui/open-webui:main&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The IP address there is for your Ollama server, of course. After a few moments you'll be able to fire up Open WebUI on http://127.0.0.1:3000 and do your thing.&lt;/p&gt;&#10;&lt;p&gt;I've also noticed &lt;a href="https://chatboxai.app/en"&gt;Chatbox AI&lt;/a&gt;, &lt;a href="https://github.com/gluonfield/enchanted"&gt;Enchanted&lt;/a&gt;, &lt;a href="https://github.com/kevinhermawan/Ollamac"&gt;Ollamac&lt;/a&gt;, and the curiously similarly-titled &lt;a href="https://ollamac.com"&gt;Ollamac Pro&lt;/a&gt;. There are bound to be more, and if you have a favourite I'd be &lt;a href="https://social.dvsn.net/@andy"&gt;interested to hear about it&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2&gt;Results&lt;/h2&gt;&#10;&lt;p&gt;Maybe you think thirteen years is too old of a machine to be useful for this task, and before access to the GPU and AMD's &lt;a href="https://en.wikipedia.org/wiki/ROCm"&gt;ROCm&lt;/a&gt; was working I'd have completely agreed. It was awful. But the same goes for any modern machine relying on CPU for LLMs.&lt;/p&gt;&#10;&lt;p&gt;The saviour of the system is the Radeon VII, which is a bit of a crazy card with its 16 GB of HBM2 memory, running at 1.02 TB/s. That's a touch faster than an NVIDIA RTX 4090, though that card does have an extra 8 GB of VRAM. It's essentially a memory-halved and clocked-down Radeon Pro Vega II, which is why it's called the &amp;quot;seven&amp;quot;; a pun in roman numerals that I rather appreciate. In fact, for &lt;a href="https://forums.macrumors.com/threads/enablegop-pre-opencore-gop-support-for-efi-era-imacs-and-mac-pros.2378942/post-32824599"&gt;a very particular Mac Pro reason&lt;/a&gt;, mine is flashed with the vBIOS of its sister card, the Radeon VII Pro. That was a tense chip-flashing, I can tell you.&lt;/p&gt;&#10;&lt;h3&gt;gemma3&lt;/h3&gt;&#10;&lt;p&gt;At the moment I'm using Google's &lt;a href="https://ollama.com/library/gemma3"&gt;gemma3&lt;/a&gt; model most often, in the 12B or 4B parameter size. I get around 32 tokens/s on the 12B model, and 60 tokens/s with the 4B model, as displayed using the &lt;code&gt;--verbose&lt;/code&gt; flag on the command line interface. Frankly, that's amazing performance, and I'm very glad I persevered with this. Most programming tasks are easily handled with the 4B model, and even the image recognition works a treat.&lt;/p&gt;&#10;&lt;p&gt;The 12B model uses about 60% of the VRAM, so the 24B model doesn't quite fit, though I did give it a try. It overspilled to the system's DDR3 and crawled, though it probably wouldn't have performed at a usefully &amp;quot;interactive speed&amp;quot; if it had fitted.&lt;/p&gt;&#10;&lt;h2&gt;Great Success&lt;/h2&gt;&#10;&lt;p&gt;I've been so impressed with Bazzite in all this.&lt;/p&gt;&#10;&lt;p&gt;By solving the issues of gaming (probably the most finicky of software anyway) they've seemingly solved many Linux desktop issues in the process. I recently built a new system for my Dad, who was not enjoying the modern Windows experience, and it was in researching alternatives for that computer I discovered it. He's had the machine for a week now, used it every day, and the only issue has been needing to add the &lt;code&gt;-vulkan&lt;/code&gt; flag to Portal's launch options.&lt;/p&gt;&#10;&lt;p&gt;After playing with that machine for a couple of weeks while building it (which coincided with an update breaking Ubuntu on my Mac Pro) I also made the switch and haven't looked back. It's wonderful to have this great piece of hardware back in action properly.&lt;/p&gt;&#10;&lt;p&gt;Hats off to the developers behind Ollama too, of course. Without that AVX extension requirement being fixed I'd have been completely scuppered.&lt;/p&gt;&#10;&lt;p&gt;Okay, I'd better get back to the climate and soil sensors now. Let's see if I can remember how to write in Groovy. Though if I forget, I now have an aluminium-clad brain-a-like sat next to me, and I'm only a button-press away from help.&lt;/p&gt;&#10;&lt;h3&gt;Addendum&lt;/h3&gt;&#10;&lt;p&gt;I've &lt;a href="https://hachyderm.io/@jorge/115113892283384416"&gt;been informed&lt;/a&gt; that on &lt;a href="https://projectbluefin.io/"&gt;Bluefin&lt;/a&gt;, another &lt;a href="https://universal-blue.org/"&gt;Universal Blue&lt;/a&gt; immutable operating system, your install could be as simple as:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;brew install ramalama&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I have given it a quick spin on Bazzite and everything gets to that &amp;quot;it's very nearly working&amp;quot; point, but it exits and doesn't serve the model. Full instructions are on Bluefin's &lt;a href="https://docs.projectbluefin.io/ai"&gt;&amp;quot;AI and Machine Learning&amp;quot; documentation page&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;I have to say that I've also been impressed with how nicely documented the Universal Blue projects are. It really boosts my confidence in using something when I just keep hitting the answers to my questions right there on the official docs. Nice work.&lt;/p&gt;&#10;&lt;h2&gt;Follow Up&lt;/h2&gt;&#10;&lt;h3&gt;12th October 2025&lt;/h3&gt;&#10;&lt;p&gt;Annoyingly, barely a couple of months after getting this all up and running, &lt;a href="https://github.com/ollama/ollama/pull/12481"&gt;Ollama v0.12.4 blocked gfx900 and gfx906 based AMD GPUs&lt;/a&gt;, so I may be looking for other options. From &lt;a href="https://github.com/ollama/ollama/pull/12481#issuecomment-3365018212"&gt;the notes&lt;/a&gt; on that pull request it would seem that &lt;code&gt;llama-server&lt;/code&gt; may be an alternative, and it's easily installed on Bazzite with a simple &lt;code&gt;brew install llama.cpp&lt;/code&gt;, though I'm clearly back on the left of the learning curve when it comes to using it.&lt;/p&gt;&#10;&lt;p&gt;In the meantime I've decided to pin myself on Ollama v0.12.3 which still works perfectly. Just alter the &lt;code&gt;Image=&lt;/code&gt; line in &lt;code&gt;~/.config/containers/systemd/ollama.container&lt;/code&gt; to read:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;Image=docker.io/ollama/ollama:0.12.3-rocm&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This only becomes a problem when some new model is released that requires a more recent version. There's some hope for the future as the release notes state:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;AMD gfx900 and gfx906 (MI50, MI60, etc) GPUs are no longer supported via ROCm. &lt;em&gt;We're working to support these GPUs via Vulkan in a future release.&lt;/em&gt;&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;(Emphasis mine.)&lt;/p&gt;&#10;&lt;h4&gt;Double Whammy&lt;/h4&gt;&#10;&lt;p&gt;And for some other reason, Open WebUI decided that my password was incorrect yesterday. It's not, it's in my password manager, and nothing there has changed.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;systemctl --user stop open-webui&#10;podman ps -a&#10;podman rm -v open-webui&#10;podman volume ls&#10;podman volume rm open-webui&#10;systemctl --user start open-webui&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I once told a friend, who managed containerised services for a decently-sized hosting company, that I got frustrated trying to fix containers I had at home. He said &amp;quot;Oh, never do that. Just throw it in the bin and set it up again.&amp;quot; So I do.&lt;/p&gt;&#10;&lt;p&gt;Funnily enough I tried to use the same password when setting Open WebUI back up and it caused an internal error. So I chose something much shorter and simpler, rather than my complicated default. Worked fine.&lt;/p&gt;&#10;&lt;h3&gt;2nd December 2025&lt;/h3&gt;&#10;&lt;p&gt;Fixed!&lt;/p&gt;&#10;&lt;p&gt;Okay, mostly fixed. &lt;a href="https://github.com/ollama/ollama/releases/tag/v0.12.6"&gt;Ollama v0.12.11&lt;/a&gt; added experimental support for Vulkan acceleration, compiled in to the binaries. It's just a matter of passing &lt;code&gt;OLLAMA_VULKAN=1&lt;/code&gt; in the environment variables, which on Bazzite makes the &lt;code&gt;ollama.container&lt;/code&gt; file look like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[Container]&#10;ContainerName=ollama&#10;Image=docker.io/ollama/ollama:latest&#10;Environment=OLLAMA_VULKAN=1&#10;AutoUpdate=registry&#10;PublishPort=11434:11434&#10;Volume=ollama:/root/.ollama&#10;AddDevice=/dev/kfd&#10;AddDevice=/dev/dri&#10;&#10;[Unit]&#10;Description=Ollama with Vulkan&#10;&#10;[Install]&#10;WantedBy=default.target&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Note that I'm using &lt;code&gt;ollama:latest&lt;/code&gt; and not &lt;code&gt;ollama:rocm&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;It's not been plain sailing and I've found some slowdown weirdness, occasional hangs, and some problems summarising output for further questions using Open WebUI, which sometimes takes forever, and sometimes just hangs. But it is definitely hardware accelerated again, thank goodness.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/ollama-macpro</link><pubDate>Fri, 29 Aug 2025 18:35:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-08-29:b19d4f3af08220f3ccbb4b0f0e44fe4b/61d5246990d0917ae47e850d045fed12</guid></item><item><title>Hubitat to MQTT</title><description>&lt;p&gt;Managed to get devices on the Hubitat platform to speak MQTT by sending the POST output of the Maker API into Nginx. If at least one of those words makes sense, this may be for you!&lt;/p&gt;</description><content:encoded>&lt;p&gt;I've been developing &lt;a href="https://github.com/birdslikewires/hubitat"&gt;drivers for various Zigbee devices&lt;/a&gt; for the &lt;a href="https://hubitat.com/"&gt;Hubitat&lt;/a&gt; platform, but some devices can be a right pain in the bum. Foolishly, I decided to control my lights with Xiaomi's &lt;a href="https://www.zigbee2mqtt.io/supported-devices/#v=Aqara&amp;amp;s=Wireless%20remote%20switch%20D1"&gt;Aqara range of wireless remote switches&lt;/a&gt;. This was after literal years of pain with their wired switches, so you would have thought I'd have learned. Seems not.&lt;/p&gt;&#10;&lt;p&gt;If you followed that third link, you'll have seen it takes you to the &lt;a href="https://www.zigbee2mqtt.io/"&gt;Zigbee2MQTT&lt;/a&gt; &lt;a href="https://www.zigbee2mqtt.io/supported-devices/#"&gt;supported devices&lt;/a&gt; page, which should give you a clue as to how well my efforts went. The switches would work absolutely perfectly, right up until the point that they would quietly and randomly drop from the Zigbee mesh, causing everyone in the house to shout at me.&lt;/p&gt;&#10;&lt;p&gt;I finally decided that I'd had enough, so familiarised myself with &lt;a href="https://en.wikipedia.org/wiki/MQTT"&gt;MQTT&lt;/a&gt; and created what I called a &amp;quot;routing driver&amp;quot; which creates and updates native Hubitat devices from the output of Zigbee2MQTT, neatly side-stepping all those Zigbee issues by making them Somebody Else's Problem.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_79462efe2f4c8f66.webp 480w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_6784ae53900c8619.webp 960w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_18ac83683943ba08.webp 1600w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_7b473380efc99eeb.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_ce9e7893ace330c8.jpeg" srcset="https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_427aeb08885190fd.jpeg 480w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_ce9e7893ace330c8.jpeg 960w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_8895d938011a1dba.jpeg 1600w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-1_hu_3b4eb0f8c49b10cc.jpeg 2400w" sizes="min(100vw, 720px)" width="2400" height="1350" loading="lazy" decoding="async" alt="Photograph of an Aqara wireless remote button attached to a wall, replacing a standard UK domestic light switch."&gt;&lt;/picture&gt;&lt;figcaption&gt;The Light Switch of Despair&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;In the process I decided that I really liked MQTT, and started using it as a means of triggering actions on devices, such as turning on a camera display in the kitchen when a doorbell is pressed. It's a great, lightweight way to get messages around a network. And the internet, should you wish!&lt;/p&gt;&#10;&lt;h2&gt;Hubitat Doesn't Do MQTT. Sort of.&lt;/h2&gt;&#10;&lt;p&gt;Trick is, I'd spent all that time nicely integrating a bunch of devices with Hubitat, which is my preferred automation platform due to all the legacy &lt;a href="https://en.wikipedia.org/wiki/AlertMe"&gt;AlertMe&lt;/a&gt; kit around the place. Just as there was no established means of integrating MQTT &lt;em&gt;in&lt;/em&gt; to Hubitat, there's no built-in way to get the device information &lt;em&gt;out&lt;/em&gt; via MQTT either.&lt;/p&gt;&#10;&lt;p&gt;(This isn't really true, as &lt;a href="https://docs2.hubitat.com/en/developer/interfaces/mqtt-interface"&gt;MQTT subscription and publishing&lt;/a&gt; is provided by the Hubitat platform itself, it's just not wrapped up in a way any typical non-developer would be willing to engage with.)&lt;/p&gt;&#10;&lt;p&gt;However, Hubitat does have a &lt;a href="https://docs2.hubitat.com/en/apps/maker-api"&gt;Maker API&lt;/a&gt; app built-in. The expected means of &amp;quot;push&amp;quot; exporting device activity is via HTTP(S) using POST. If only something could listen to that.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-2_hu_6cbec97175b2398f.webp 480w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-2_hu_d1955d6c79a4edbf.webp 960w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-2_hu_e027beb9ad7cb318.webp 1532w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-2_hu_82ea86914411e779.png" srcset="https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-2_hu_ae3dca3f83ad01e4.png 480w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-2_hu_82ea86914411e779.png 960w, https://birdslikewires.net/hubitat-to-mqtt/hubitat-to-mqtt-2_hu_d81c408b8a9eedad.png 1532w" sizes="min(100vw, 720px)" width="1532" height="688" loading="lazy" decoding="async" alt="Screenshot of the Hubitat Maker API, with the &amp;#34;URL to POST device events to&amp;#34; option highlighted."&gt;&lt;/picture&gt;&lt;figcaption&gt;The Hubitat Maker API&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2&gt;Receive With Nginx&lt;/h2&gt;&#10;&lt;p&gt;Another favourite bit of software, &lt;a href="https://en.wikipedia.org/wiki/Nginx"&gt;nginx&lt;/a&gt; will absolutely listen to these POST messages. The simplest means for me to get the desired outcome was to use an Nginx server, which was already running some services in the house, and its &lt;code&gt;libnginx-mod-http-lua&lt;/code&gt; module to run a few lines of &lt;a href="https://en.wikipedia.org/wiki/Lua"&gt;Lua&lt;/a&gt; which passes the body of Hubitat's POST message to a &lt;a href="https://en.wikipedia.org/wiki/Bash_(Unix_shell)"&gt;Bash&lt;/a&gt; shell script.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;server {&#10;&#10; listen 5000;&#10;&#10; location / {&#10;&#10; content_by_lua_block {&#10; ngx.req.read_body()&#10; local body = ngx.req.get_body_data()&#10; os.execute(&amp;#34;/opt/hubitat2mqtt/hubitat2mqtt.sh &amp;#34; .. body)&#10; }&#10;&#10; }&#10;&#10; access_log off;&#10;&#10;}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The shell script, which I keep in &lt;code&gt;/opt/hubitat2mqtt/hubitat2mqtt.sh&lt;/code&gt;, deals with rearranging the content into &lt;a href="https://en.wikipedia.org/wiki/JSON"&gt;JSON&lt;/a&gt; which is then sent to the MQTT broker using &lt;a href="https://mosquitto.org/"&gt;Mosquitto&lt;/a&gt;. The latest version of this should be &lt;a href="https://github.com/birdslikewires/hubitat/blob/main/hubitat2mqtt.sh"&gt;hubitat2mqtt.sh&lt;/a&gt; on GitHub.&lt;/p&gt;&#10;&lt;h2&gt;Opened Data&lt;/h2&gt;&#10;&lt;p&gt;This little tangle of computer spaghetti lets me open up selected devices connected to Hubitat for the whole network to receive via the Mosquitto broker. They can be controlled through the Maker API's usual endpoints, while their status can be viewed using MQTT.&lt;/p&gt;&#10;&lt;p&gt;A better way to have done this would have been to create a Hubitat app instead. Having written drivers (but never an app) I suppose that may not have been too complicated, but I needed something Good Enough, and Good Enough this is.&lt;/p&gt;&#10;&lt;p&gt;It's really very responsive, and hasn't missed a beat since I set it up last year.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/hubitat-to-mqtt</link><pubDate>Mon, 23 Jun 2025 09:34:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2025-06-23:b19d4f3af08220f3ccbb4b0f0e44fe4b/091d50b7d29406f48f5ddc399a3bdd0e</guid></item><item><title>What's Going On Here?</title><description>&lt;p&gt;There's no more pure a blog article, than an article about one's own blog.&lt;/p&gt;</description><content:encoded>&lt;p&gt;This site has been here for a long time. It's supposed to do two things; be somewhere I can document how to do things which I know I'll forget about later, and also share that with others in case it's helpful. &lt;a href="https://textpattern.com"&gt;Textpattern&lt;/a&gt; has been such a great fit for running the site other the years, because of its search function, and initially because of the editing interface.&lt;/p&gt;&#10;&lt;p&gt;But hang on. It can be years between articles. Why is that? It's not like my Notes app isn't filling up with stuff I'm doing, so why does almost nothing make it online?&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_9ef4e5fb1805f500.webp 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_4f27f7038aaba7b7.webp 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_871d0775f29cea5a.webp 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_cf311dec5e38d129.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_849cfc818419b04.png" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_475f6f5e1ab2b710.png 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_849cfc818419b04.png 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_c3e5a31f2b3f2591.png 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-1_hu_17d302f1070db45e.png 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of Apple Notes, with some notes in it."&gt;&lt;/picture&gt;&lt;figcaption&gt;My notes. In Apple Notes.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;It boiled down to one simple thing.&lt;/p&gt;&#10;&lt;p&gt;I hate writing on Textpattern.&lt;/p&gt;&#10;&lt;p&gt;More specifically, I hate writing in &lt;a href="https://textile-lang.com/"&gt;Textile&lt;/a&gt;, on Textpattern.&lt;/p&gt;&#10;&lt;p&gt;That's a problem. Textile is the markup language used for writing articles on Textpattern, and I simply forget the syntax between posting anything. It's a barrier to just throwing information into the system, particularly when the interface isn't a single click away, like the Notes app is.&lt;/p&gt;&#10;&lt;p&gt;Nuts. It also made me a bit sad, because Textpattern has worked so well, so reliably, and was conceived &lt;em&gt;&amp;quot;for content publishers to Just Write&amp;quot;.&lt;/em&gt; I've found it impossible to use for that purpose for years.&lt;/p&gt;&#10;&lt;h2&gt;Workarounds&lt;/h2&gt;&#10;&lt;p&gt;These days the &lt;a href="https://en.wikipedia.org/wiki/Markdown"&gt;Markdown&lt;/a&gt; markup language is pretty ubiquitous, so even my &lt;em&gt;Solution Two&lt;/em&gt; was thwarted when I considered finding a text editor with a nice interface in which I could write my notes and simply have it barf out the Textile for me to copy-pasta into Textpattern.&lt;/p&gt;&#10;&lt;p&gt;I also had delusions of something into which I could drag-and-drop images that would miraculously optimise themselves, save into a custom location and be ready for upload.&lt;/p&gt;&#10;&lt;p&gt;If I couldn't do those things, I reckoned I would need to use some new online publishing thing. Throw away Textpattern and redevelop the site (the style of which I still enjoy) in some hosted service. After all, an online editor I actually like to use is the one built-in to &lt;a href="https://www.discourse.org"&gt;Discourse&lt;/a&gt;, which does everything I ask of it. But I was not in the mood to deploy a massive forum platform, then mercilessly hack at the thing until it represented a home-cooked weblog.&lt;/p&gt;&#10;&lt;p&gt;The closest things I discovered to the writing simplicity I craved were &lt;a href="https://pika.page/"&gt;pika.page&lt;/a&gt;, &lt;a href="https://quotion.co/"&gt;Quotion&lt;/a&gt;, and &lt;a href="https://write.as/"&gt;Write.as&lt;/a&gt;. Pika handled the images the best. Quotion was snazzy because I could just shuffle my Apple Notes around and &lt;em&gt;voilà!&lt;/em&gt; Instablog! Write.as has a lovely writing interface, and there's &lt;a href="https://writefreely.org/"&gt;WriteFreely&lt;/a&gt; which allows you to self-host. That's awesome.&lt;/p&gt;&#10;&lt;p&gt;But customisation? Making-a-varying-number-of-birds-appear-on-the-wires-in-the-background-level customisation? Heck, no. Even &lt;a href="https://discuss.write.as/search?q=footer"&gt;editing the damn footer is near impossible&lt;/a&gt; on some of these platforms, even when you're paying for them! That's dumb.&lt;/p&gt;&#10;&lt;h2&gt;You're Holding It Wrong&lt;/h2&gt;&#10;&lt;p&gt;But wait! What's &lt;a href="https://codeberg.org/rwetzlmayr/wet_textfilter_markdown"&gt;this&lt;/a&gt;?&lt;/p&gt;&#10;&lt;p&gt;It's the &lt;em&gt;wet_textfilter_markdown&lt;/em&gt; plugin!&lt;/p&gt;&#10;&lt;p&gt;In the background, this site is still running on Textpattern, and I'm very happy about that. I've spent a bunch of time simplifying things (sorry, no more support for Internet Explorer 6) and removing the various customisations I'd added over the years.&lt;/p&gt;&#10;&lt;p&gt;And now it flippin' works.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_2c76582ccb883ac6.webp 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_39ffcf7494544b35.webp 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_31ff6e4e41318395.webp 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_815551c3030b2c16.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_28b5329f2826fcf6.png" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_520c5833a65e86f4.png 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_28b5329f2826fcf6.png 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_464d036a9371358d.png 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-2_hu_3c609eba341ff420.png 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of the Textpattern Write panel, showing Markdown Extra as an option."&gt;&lt;/picture&gt;&lt;figcaption&gt;Switching to Markdown Extra&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;Discovering the &lt;em&gt;wet_textfilter_markdown&lt;/em&gt; plugin changed the game. Now I was pretty certain I could find a desktop editor that would export or use Markdown natively. Something I could use for note taking on the fly and tidy up later. Maybe even do something with images!&lt;/p&gt;&#10;&lt;p&gt;With the terms of my search duly modified, I quickly found &lt;a href="https://obsidian.md/"&gt;Obsidian&lt;/a&gt;. It's funny to discover something so hugely supported, which has been out there solving problems for years, and yet I'd never heard a peep about it.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_fe6f389725d6cd7d.webp 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_ce0b2b28bbe4a08.webp 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_e63a4c1754642192.webp 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_99b75252d1e7a70d.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_378848101f425fb.png" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_df63c06654f5d23d.png 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_378848101f425fb.png 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_93cd0bc0513f4edf.png 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-3_hu_5f3819bace1bce33.png 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of Obsidian showing me writing this article, in turn containing the screenshot above of the Textpattern writing interface."&gt;&lt;/picture&gt;&lt;figcaption&gt;Article Inception in Obsidian&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;This thing has such comprehensive configuration that I had high hopes it would meet my lofty requirements. I barely know how the thing works, but the plentiful options got it pared down to my level. I then added the community &lt;a href="https://github.com/PKM-er/obsidian-editing-toolbar"&gt;&lt;em&gt;Editing Toolbar&lt;/em&gt;&lt;/a&gt; and &lt;a href="https://github.com/PKM-er/obsidian-editing-toolbar"&gt;&lt;em&gt;Image Converter&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The &lt;em&gt;Editing Toolbar&lt;/em&gt; was a no-brainer given my forgetfulness and limited Markdown experience. The &lt;em&gt;Image Converter&lt;/em&gt; is an absolute saviour, able to do all the things I assumed nobody else in the world would be so pernickety to require. Look!&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_1ee00985ae1b84d5.webp 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_7a2e47808734a4ea.webp 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_4347a7a5158ed4ee.webp 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_348564f8e5a57be2.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_e493e97a9cdc16e7.png" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_87548ec8fb4bde54.png 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_e493e97a9cdc16e7.png 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_e3958f5a221ed325.png 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-4_hu_6ca60c03033c98b4.png 2400w" sizes="min(100vw, 720px)" width="2400" height="1331" loading="lazy" decoding="async" alt="Screenshot of the Image Converter plugin configuration for Obsidian, on the Output page."&gt;&lt;/picture&gt;&lt;figcaption&gt;Image Converter is amazing.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;I can specify output paths and filenames with variables! I can add automatic conversion and optimisations! I can take a screenshot and just paste it into the editor. That's it.&lt;/p&gt;&#10;&lt;p&gt;Genius.&lt;/p&gt;&#10;&lt;h2&gt;Barf&lt;/h2&gt;&#10;&lt;p&gt;And how to get all this onto the site? Surely a tumult of FTPs, SFTPs, WebDAVs, and suchlike?&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;blw&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;Three letters in the Terminal. It's in my &lt;code&gt;.bash_functions&lt;/code&gt; file, and it looks like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;blw() {&#10; rsync -avz --no-perms --chmod=Fu=rw,Fg=r,Fo=r,Du=rwx,Dg=rx,Do=rx --delete --exclude &amp;#39;.obsidian&amp;#39; --exclude &amp;#39;.DS_Store&amp;#39; &amp;#34;/Users/andy/Library/Mobile Documents/iCloud~md~obsidian/Documents/BirdsLikeWires/&amp;#34; andy@birdslikewires.net:/var/www/birdslikewires.net/obsidian/&#10; ssh andy@birdslikewires.net &amp;lt;&amp;lt; EOF &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&#10; find /var/www/birdslikewires.net/obsidian/ -type f -exec chmod 644 {} \;&#10; find /var/www/birdslikewires.net/obsidian/ -type d -exec chmod 755 {} \;&#10;EOF&#10; open https://birdslikewires.net/obsidian&#10;}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That &amp;quot;Mobile Documents&amp;quot; path is where Obsidian hooks into iCloud, meaning I can switch over to write on an iPad and have things stay in sync. Fantastic.&lt;/p&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_1c6bdc064aa718e9.webp 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_ac6ddeacca16f8f9.webp 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_5567966fcbd7a293.webp 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_e0375bbbd44655fb.webp 2400w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_85f0cc91ddb78655.png" srcset="https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_fbbffcb7f1e32deb.png 480w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_85f0cc91ddb78655.png 960w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_f75c1c7306217057.png 1600w, https://birdslikewires.net/what-s-going-on-here/what-s-going-on-here-5_hu_b09a11cac42b66f1.png 2400w" sizes="min(100vw, 720px)" width="2400" height="1654" loading="lazy" decoding="async" alt="Screenshot of me editing this same thing on my iPad, synchronised in real time."&gt;&lt;/picture&gt;&lt;figcaption&gt;It even works on an iPad!&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;And that's a pasted screenshot following all the same conversion and path rules as on the desktop. Kaboom.&lt;/p&gt;&#10;&lt;p&gt;Type those three letters, hit return, and the content gets uploaded to the obsidian directory on the server and it opens in the browser, ready for me to copy-pasta that Markdown text straight into Textpattern.&lt;/p&gt;&#10;&lt;p&gt;Images work because there's a symbolic link called &lt;code&gt;assets&lt;/code&gt; in the web root, pointing to the &lt;code&gt;obsidian/content&lt;/code&gt; directory. That keeps the relative paths saved by Obsidian happy.&lt;/p&gt;&#10;&lt;h2&gt;And How Is It?&lt;/h2&gt;&#10;&lt;p&gt;No idea!&lt;/p&gt;&#10;&lt;p&gt;It's very late, I've just written this, and I'm going to type those three letters in a second to pop everything online. I'm still in the midst of a &lt;del&gt;gentle&lt;/del&gt; site remodelling, with my eye on full-content RSS / ATOM support. I know my website style won't be for everyone, but I'd still like to give people access to the content if they'd like it.&lt;/p&gt;&#10;&lt;p&gt;Who knows, maybe now I'll have more motivation to get those notes out into the world. Feels like the web could do with some more independent bobbins on it.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/what-s-going-on-here</link><pubDate>Wed, 27 Nov 2024 19:16:00 +0000</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2024-11-27:b19d4f3af08220f3ccbb4b0f0e44fe4b/f8a94141bf8f9d5c50d95a098bc501e4</guid></item><item><title>Debian for OpenFrame</title><description>&lt;p&gt;Free your OpenPeak device to run Debian!&lt;/p&gt;</description><content:encoded>&lt;blockquote&gt;&#10;&lt;p&gt;&lt;a href="https://openbeak.net/openframe/images/debian/trixie/latest"&gt;Download &lt;strong&gt;Debian Trixie (Kernel 6.18) for OpenFrame&lt;/strong&gt;&lt;/a&gt; (~170 MB)&lt;/p&gt;&#10;&lt;p&gt;This is a live build which automatically updates whenever a new kernel version is released.&lt;br&gt;&#10;&lt;a href="https://openbeak.net/openframe/images/debian/"&gt;Previous versions&lt;/a&gt; and &lt;a href="https://github.com/birdslikewires/openframe-linux/actions/workflows/build.yml"&gt;build logs&lt;/a&gt; are also available.&lt;/p&gt;&#10;&lt;p&gt;Please &lt;a href="https://social.dvsn.net/@andy"&gt;let me know&lt;/a&gt; if anything breaks!&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;These images can be used on any &lt;strong&gt;OpenFrame 1&lt;/strong&gt; (O2 Joggler, Telefonica Orby) or &lt;strong&gt;OpenFrame 2&lt;/strong&gt; (Cisco Home Energy Controller, Telio Touch) device, running either from USB storage or internal memory. External storage is recommended as it will be much faster with plenty of space available.&lt;/p&gt;&#10;&lt;p&gt;The goal here was to make a small-but-useful command line system which can be customised all the way up to a lightweight desktop. There are a few built-in ‘&lt;strong&gt;of-&lt;/strong&gt;’ commands to make life easier, which are explained below. Once up and running there is very little difference between these images and the experience you would have running Debian on any other device.&lt;/p&gt;&#10;&lt;p&gt;Unless you choose to write the operating system to the device’s &lt;em&gt;internal&lt;/em&gt; memory, running from an external USB device will make no permanent changes to your OpenFrame, so there’s no risk to trying it out.&lt;/p&gt;&#10;&lt;h3&gt;Installation&lt;/h3&gt;&#10;&lt;p&gt;The easiest way to use an image is to write it to a USB storage device using the &lt;a href="https://www.raspberrypi.com/software/"&gt;Raspberry Pi Imager&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Click ‘CHOOSE OS’ in the Imager and scroll to the bottom of the list where you’ll find &lt;em&gt;‘Use custom’.&lt;/em&gt; Pick the image file you downloaded, which may end in &lt;strong&gt;.gz&lt;/strong&gt; or &lt;strong&gt;.img&lt;/strong&gt; (some browsers try to be helpful by automatically decompressing files). Then carefully pick your target device and click ‘WRITE’.&lt;/p&gt;&#10;&lt;p&gt;If you wish to install to the internal memory, follow the same instructions, but write the &lt;a href="https://birdslikewires.net/openframe-flash"&gt;Reflash System for OpenFrame&lt;/a&gt; to your USB device. Unplug it and then plug it back in to mount the drive, then copy the .gz and matching .gz.md5 files to the ‘reflash’ folder on your USB device. Connect to your OpenFrame and power on.&lt;/p&gt;&#10;&lt;h3&gt;Configuration&lt;/h3&gt;&#10;&lt;p&gt;Once the image is written to the drive, unplug and plug it back in to your computer to mount it. You should see a volume with the suffix ‘-BOOT’ in its name. Network settings, including wireless network information, can be configured here.&lt;/p&gt;&#10;&lt;h4&gt;Network Settings&lt;/h4&gt;&#10;&lt;p&gt;If the plan is to connect to your wifi network you will need to provide your network name and password. We use &lt;a href="https://netplan.io/"&gt;Netplan&lt;/a&gt; to provide a simple means of configuration, which is achieved by editing the &lt;code&gt;network.yaml&lt;/code&gt; file found on the boot volume with a text editor (Notepad, TextEdit or similar). Open the file and you should see this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;network:&#10; version: 2&#10; renderer: networkd&#10; ethernets:&#10; eth0:&#10; dhcp4: true&#10; wifis:&#10; wlan0:&#10; dhcp4: true&#10; access-points:&#10; YOURWIFINAME:&#10; password: YOURWIFIPASSWORD&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Change ‘YOURWIFINAME’ and ‘YOURWIFIPASSWORD’ as appropriate, but remember to leave the colon ‘:’ at the end of your wifi name.&lt;/p&gt;&#10;&lt;p&gt;Save the file, eject the drive, connect it to your OpenFrame and power up. The login prompt should show the device’s IP addresses:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;Debian Bullseye openframe tty1 wlan0:192.168.1.10 eth0:192.168.1.11&#10;openframe login: _&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you plan on connecting to your network with a cable, you don’t need to do any of the above. The system is configured to grab a network address from your router using DHCP by default. You can use both interfaces simultaneously just as you would expect.&lt;/p&gt;&#10;&lt;p&gt;If you would like to make more advanced changes, please check the &lt;a href="https://netplan.io/examples/"&gt;Netplan documentation&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h5&gt;Issues&lt;/h5&gt;&#10;&lt;p&gt;If you’re using an OpenFrame 2 the wireless connection does work… sort of. Performance is absolutely terrible and I’ve not been able to do anything about it. Maybe it’s my test device which is at fault, but feedback would be appreciated. We’re using the &lt;em&gt;brcmsmac&lt;/em&gt; driver; the &lt;em&gt;b43&lt;/em&gt; driver was worse and broke Bluetooth for me. The &lt;em&gt;broadcom-wl&lt;/em&gt; driver might do the trick, but there are licensing issues, so I can’t distribute it. Good luck!&lt;/p&gt;&#10;&lt;h3&gt;Access&lt;/h3&gt;&#10;&lt;figure&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/debian-for-openframe/debian-for-openframe-1_hu_995e8f5995c3ba21.webp 307w, https://birdslikewires.net/debian-for-openframe/debian-for-openframe-1_hu_7a11694d03d267ab.webp 614w" sizes="307px"&gt;&lt;img src="https://birdslikewires.net/debian-for-openframe/debian-for-openframe-1_hu_fbacd0d76141d4ef.png" srcset="https://birdslikewires.net/debian-for-openframe/debian-for-openframe-1_hu_404a652739406897.png 307w, https://birdslikewires.net/debian-for-openframe/debian-for-openframe-1_hu_fbacd0d76141d4ef.png 614w" sizes="307px" width="307" height="300" loading="lazy" decoding="async" alt="01 PuTTY" class="thumb"&gt;&lt;/picture&gt;&lt;figcaption aria-hidden="true" data-pagefind-ignore&gt;01 PuTTY&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;Once booted you should be looking at a command prompt login on the OpenFrame’s screen. There are two ways to go from here; use a keyboard connected to the OpenFrame to log in, or connect over a Secure Shell (SSH) session from your computer.&lt;/p&gt;&#10;&lt;p&gt;The keyboard option can be a little tricky, as we only have one external USB port to play with and not all keyboards with USB hubs pass enough power to the storage device, so you can end up with some odd errors or boot failures. But if you can power the storage device separately this works well.&lt;/p&gt;&#10;&lt;p&gt;On the OpenFrame 1, if you’re using the device as a ‘mini desktop’ you could always replace the internal wifi card with a USB dongle for a wireless keyboard and mouse. The internal port is a perfectly normal USB 2.0 Type A socket, which provides some interesting options, and the case is pretty easy to open and close.&lt;/p&gt;&#10;&lt;p&gt;However, the most appropriate option is likely to be an SSH connection from your PC, as many people use their OpenFrames as music players or web-connected display devices and wouldn’t normally have a permanent keyboard and mouse attached. On macOS and Ubuntu the &lt;em&gt;Terminal&lt;/em&gt; application is already installed. On Windows, download &lt;a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html"&gt;PuTTY&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The default login details are:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;Username: &lt;strong&gt;of&lt;/strong&gt;&lt;br&gt;&#10;Password: &lt;strong&gt;joggler&lt;/strong&gt;&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;In the &lt;em&gt;Terminal&lt;/em&gt; applications the command to connect is:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;ssh of@192.168.1.11&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Replace &lt;em&gt;192.168.1.11&lt;/em&gt; with the IP address shown by your OpenFrame. With &lt;em&gt;PuTTY&lt;/em&gt; you pop the IP address into the &lt;em&gt;“Host Name (or IP address)”&lt;/em&gt; box.&lt;/p&gt;&#10;&lt;h3&gt;Helpful Commands&lt;/h3&gt;&#10;&lt;p&gt;There are some tasks which people want to achieve quickly when they’ve set up a new device. Grubbing around the web looking for the right commands can be frustrating, particularly if you’re not certain the solution even applies to your system!&lt;/p&gt;&#10;&lt;p&gt;The ‘&lt;strong&gt;of-&lt;/strong&gt;’ scripts are included to help with this, and can be updated to the most recent versions without re-imaging. They live in &lt;code&gt;/usr/local/sbin&lt;/code&gt;, but please don’t modify them directly. Some system services rely on them and any change you make will be overwritten if they’re updated, so it’s best to edit a copy elsewhere. The key ones to know are:&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;of-backlight&lt;/code&gt; – gets or sets the backlight level&lt;br&gt;&#10;&lt;code&gt;of-expand&lt;/code&gt; – enlarges the root partition to the full size of your drive&lt;br&gt;&#10;&lt;code&gt;of-install&lt;/code&gt; – pre-configured installation of commonly used software&lt;br&gt;&#10;&lt;code&gt;of-ip&lt;/code&gt; – shows current IP addresses on all interfaces&lt;br&gt;&#10;&lt;code&gt;of-netplan&lt;/code&gt; – installs new network settings and restarts the network&lt;br&gt;&#10;&lt;code&gt;of-settings&lt;/code&gt; – configures system options, such as hostname, auto-login and boot screens&lt;br&gt;&#10;&lt;code&gt;of-timezone&lt;/code&gt; – configures the system time zone&lt;br&gt;&#10;&lt;code&gt;of-update&lt;/code&gt; – updates the scripts&lt;/p&gt;&#10;&lt;p&gt;Type the name of a script followed by &lt;code&gt;-h&lt;/code&gt; to receive help information on how to use it. For example, &lt;code&gt;of-settings -h&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;Some scripts need ‘superuser’ privileges to make their changes. Prefix any command with &lt;code&gt;sudo&lt;/code&gt; to elevate their rights, eg. &lt;code&gt;sudo of-update&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h3&gt;Things To Do&lt;/h3&gt;&#10;&lt;h4&gt;Expand Root Partition&lt;/h4&gt;&#10;&lt;p&gt;Once you’re logged in to your system, unless you’ve installed to the internal memory of an OpenFrame 1, the main command to run is &lt;code&gt;sudo of-expand&lt;/code&gt;. This grows your storage from the 1 GB default to the full size of the drive you wrote the image to. It takes a few minutes to complete (depending on your drive speed) and the resize occurs &lt;em&gt;after&lt;/em&gt; the OpenFrame has rebooted, so you’ll have a slow system and a flashing drive LED while it finishes.&lt;/p&gt;&#10;&lt;p&gt;If you are running from &lt;em&gt;internal&lt;/em&gt; memory on an OpenFrame 1 you will need to keep an eye on your space utilisation with the &lt;code&gt;df -h&lt;/code&gt; command, as you’ll only have ~500 MB to play with. Also, when using &lt;code&gt;apt&lt;/code&gt; to install new software, the package lists are held in RAM to save space. It’s a very sensible plan to reboot after installing to clear these lists, otherwise you’re likely to run out of memory.&lt;/p&gt;&#10;&lt;h4&gt;Change Your Password&lt;/h4&gt;&#10;&lt;p&gt;The only user that can log in by default is ‘&lt;strong&gt;of&lt;/strong&gt;’, so the system is secure by default. Well, except for the password, which everyone knows. You should change it using the &lt;code&gt;passwd&lt;/code&gt; command. It’ll ask you for a new password and to confirm it. Really quick, easy and important.&lt;/p&gt;&#10;&lt;h4&gt;Updates&lt;/h4&gt;&#10;&lt;p&gt;From here everything becomes very much like any other command line Debian or Ubuntu system. You can update the installed packages with the usual commands:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt update&#10;sudo apt upgrade&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The &lt;code&gt;sudo of-update&lt;/code&gt; command can be run at any time to check for newer versions of the ‘&lt;strong&gt;of-&lt;/strong&gt;’ scripts.&lt;/p&gt;&#10;&lt;h4&gt;Install Software&lt;/h4&gt;&#10;&lt;p&gt;The &lt;code&gt;of-install&lt;/code&gt; command sets up software in a manner specific to the OpenFrame, or bundles a group of installation steps together in the best way for this platform. One example would be the installation of SqueezePlay, which also sets up appropriate system services and boot screens to support it.&lt;/p&gt;&#10;&lt;p&gt;For anything else you can refer to documentation written for other &lt;a href="https://www.debian.org/doc/"&gt;Debian&lt;/a&gt; or &lt;a href="https://help.ubuntu.com/"&gt;Ubuntu&lt;/a&gt; systems, and also for the &lt;a href="https://www.raspberrypi.org/documentation/"&gt;Raspberry Pi&lt;/a&gt;, which despite running on the ARM processor platform (rather than the 32-bit x86 platform in the OpenFrame) has documentation which is directly relevant.&lt;/p&gt;&#10;&lt;p&gt;Of course, there’s also the &lt;a href="https://www.jogglerwiki.com/forum/"&gt;Joggler Forum&lt;/a&gt; where people are always happy to lend a hand!&lt;/p&gt;&#10;&lt;h3&gt;Background&lt;/h3&gt;&#10;&lt;h4&gt;Why Have You Done This?&lt;/h4&gt;&#10;&lt;p&gt;Always a solid question. I hate electronic waste and love a puzzle, and despite being an older piece of hardware the OpenFrames were remarkably overpowered for their time. They’re robustly manufactured, usually found in excellent condition, and are cheap and capable.&lt;/p&gt;&#10;&lt;p&gt;Even now in 2023, there’s still no other nicely integrated device in this home-friendly form factor that I’ve managed to find. The closest option is a Raspberry Pi (at least £34 if you can find one), Raspberry Pi 7” Touchscreen Display (£60) and Case (£12). You can find an O2 Joggler most days on eBay for £30, or less if it’s ‘broken’, which usually means the internal storage has failed. Use one of these images on a memory stick and it’ll likely work just fine.&lt;/p&gt;&#10;&lt;p&gt;Plus, I have one integrated into a cupboard door in my kitchen, so not keeping it up and running would make me unpopular.&lt;/p&gt;&#10;&lt;p&gt;Finally, it was the sheer number of OpenFrames still in use as SqueezePlay music devices which prompted me to work on this update. The operating system they rely upon is Ubuntu Trusty (14.04) which left standard support in April 2019, so it could potentially open up those users of my old ‘SqueezePlay OS’ to security issues.&lt;/p&gt;&#10;&lt;h4&gt;How Have You Done This?&lt;/h4&gt;&#10;&lt;p&gt;Everything is now based around an automated build system, compiling 32-bit binaries in a &lt;a href="https://en.wikipedia.org/wiki/Chroot"&gt;chroot&lt;/a&gt; on a 64-bit server.&lt;/p&gt;&#10;&lt;p&gt;During the (UK) night the build system checks for new a new version of the kernel or alterations to the master branches of &lt;a href="https://github.com/birdslikewires/openframe-kernel"&gt;openframe-kernel&lt;/a&gt; and &lt;a href="https://github.com/birdslikewires/openframe-linux"&gt;openframe-linux&lt;/a&gt; on GitHub. Any changes are pulled down and a new kernel compiled or a new image built automatically.&lt;/p&gt;&#10;&lt;p&gt;Older versions, in case of build issues, are available in the &lt;a href="https://birdslikewires.net/download/openframe/images/"&gt;images directory&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h4&gt;Can I Help?&lt;/h4&gt;&#10;&lt;p&gt;Absolutely. Everything to do with this distribution is available in the &lt;a href="https://github.com/birdslikewires"&gt;Birds Like Wires GitHub&lt;/a&gt; repos. The key ones are &lt;a href="https://github.com/birdslikewires/openframe-kernel"&gt;openframe-kernel&lt;/a&gt; and &lt;a href="https://github.com/birdslikewires/openframe-linux"&gt;openframe-linux&lt;/a&gt;, which contain all of the patches, overlay files and instructions on how to build kernels and images in your own automated build chroot, the same way as these images are generated early each morning.&lt;/p&gt;&#10;&lt;p&gt;If you have any programming experience feel free to clone the repos, make changes and pull requests.&lt;/p&gt;&#10;&lt;p&gt;Otherwise, if you find this software useful and have the means, I’m more than happy to accept donations to keep the lights on or support through the &lt;a href="https://github.com/andydvsn"&gt;GitHub sponsorship programme&lt;/a&gt;. Or just &lt;a href="https://dvsn.net/@andy"&gt;a friendly wave on Mastodon&lt;/a&gt; always brightens the day!&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/debian-for-openframe</link><pubDate>Wed, 21 Jun 2023 13:04:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2020-05-05:b19d4f3af08220f3ccbb4b0f0e44fe4b/730ed32f47a3ae5d7ba78ba6374aecbe</guid></item><item><title>AlertMe Devices on Hubitat</title><description>&lt;p&gt;The OG of Zigbee.&lt;/p&gt;</description><content:encoded>&lt;blockquote&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/birdslikewires/hubitat/tree/master/alertme"&gt;&lt;strong&gt;AlertMe Drivers for Hubitat&lt;/strong&gt;&lt;/a&gt; (GitHub)&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;Merely a decade ago I wrote an article on this very website about &lt;a href="https://birdslikewires.net/security-energy-and-home-automation"&gt;Security, Energy and Home Automation&lt;/a&gt; extolling the virtues of AlertMe and their home security system. In that time AlertMe has gone from being a company to a platform, gobbled up by British Gas and now sold as &lt;a href="https://www.hivehome.com/"&gt;Hive&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The AlertMe service closed down in 2017 and I can’t complain at all; I met a bunch of interesting people, developed the only third-party iOS app for the platform, got to tinker with pretty much every UK version and in the end the AlertMe team in Cambridge arranged free Hive kits for all remaining users. Thanks, AlertMe, that was a classy way to sign off.&lt;/p&gt;&#10;&lt;p&gt;The only thing that left me a bit disappointed on Hive was the lack of support for devices which AlertMe users already owned. This was purely a commercial decision to drive sales of Hive products, exemplified by the fact that Hive continued to sell the original SPG100 smart plug (rebranded an SPG900, but otherwise unchanged) as a repeater-only device for the heating system. Either version could be paired with the hub, but remote control of the power relay was completely missing in order to push sales of the SLP2 and SLP2b outlets. A real shame, as even today the original SPG100 is unrivalled amongst UK smart plugs, featuring battery backup, power reporting and consumption measurement.&lt;/p&gt;&#10;&lt;p&gt;Home automation with Zigbee was in its infancy back in 2010 and AlertMe were really ahead of the curve, to the extent that even Hive isn’t quite up to the same feature set ten years later. I started toying with &lt;a href="https://github.com/jamesleesaunders/PyAlertMe"&gt;PyAlertMe&lt;/a&gt; under some delusion of developing a hub; but ultimately time and lack of expertise got in the way. My AlertMe sensors and buttons quietly stayed where they were installed, waiting.&lt;/p&gt;&#10;&lt;h3&gt;There Was Another&lt;/h3&gt;&#10;&lt;p&gt;While AlertMe sensors in the UK languished, across the Atlantic many of the same devices were still in use through that rarest of things; a successful shot at the American market! From DIY firm &lt;a href="https://www.lowes.com/"&gt;Lowe’s Home Improvement&lt;/a&gt;, &lt;a href="https://web.archive.org/web/20201006232350/https%3A//www.irisbylowes.com/"&gt;Iris&lt;/a&gt; was initially based on the UK products with some tweaks for the United States. It was entirely possible to import an Iris hub and resurrect your AlertMe mesh. As time went on the platform was developed further than its parent, but their original ‘Iris V1’ devices were almost all designed by the Cambridge team or were identical to their UK versions, save for some colour changes, and remained supported until the platform was also bumped off at the end of March 2019.&lt;/p&gt;&#10;&lt;h3&gt;Hubitat&lt;/h3&gt;&#10;&lt;p&gt;It was around the time of this shutdown that I discovered &lt;a href="https://hubitat.com/"&gt;Hubitat&lt;/a&gt; while performing my (usually fruitless) search for a platform that might support the slightly non-standard pairing process that AlertMe devices require. Hubitat were sensibly trying to &lt;a href="https://hubitat.com/pages/iris-migration-q-a-document"&gt;attract some of those ex-Iris customers&lt;/a&gt; into bringing their devices to their platform and picked me up along the way. With the first coronavirus lockdown beginning and a new hub in the works it was tricky to find one in the UK, but eBay saved the day once again.&lt;/p&gt;&#10;&lt;p&gt;I was more than a little happy to find that the “Iris V1 Zigbee” pairing button hooked my devices up just fine! However, the Iris drivers in Hubitat were missing a few features that I rather like, particularly for the &lt;a href="https://birdslikewires.net/alertme-smartplug-battery-replacement"&gt;&lt;em&gt;SmartPlug&lt;/em&gt;&lt;/a&gt; which did nothing more than switch on and off. I knew the load reporting was in there somewhere, and with them having battery backup perhaps they also reported other useful information?&lt;/p&gt;&#10;&lt;p&gt;One of the best things about Hubitat is that if you have a device which is non-standard or missing features, and if you have the experience (or can convince someone in what is largely a &lt;a href="https://community.hubitat.com/"&gt;very helpful community&lt;/a&gt; to lend a hand) then it’s entirely possible to add support to the platform for that device. I started work on an AlertMe driver for the &lt;em&gt;Power Clamp,&lt;/em&gt; a device which was becoming pretty common in the UK for monitoring whole-house electricity consumption. Digging through the code from &lt;a href="https://github.com/jamesleesaunders/PyAlertMe"&gt;PyAlertMe&lt;/a&gt; again I was able to figure out the non-standard communication over Zigbee and subsequently which bytes in the payload represented power consumption. Hooray!&lt;/p&gt;&#10;&lt;h3&gt;The Puzzle&lt;/h3&gt;&#10;&lt;p&gt;The &lt;em&gt;SmartPlug&lt;/em&gt; and the &lt;em&gt;Lamp&lt;/em&gt; were the hardest to figure out, as even the &lt;em&gt;on&lt;/em&gt; and &lt;em&gt;off&lt;/em&gt; commands aren’t available through &lt;code&gt;zigbee.On()&lt;/code&gt; and &lt;code&gt;zigbee.Off()&lt;/code&gt; methods as they would be on most devices, but have to be constructed as raw Zigbee commands like this:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;he raw ${device.deviceNetworkId} 0 ${device.endpointId} 0x00EE {11 00 02 01 01} {0xC216}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For which, of course, there’s no real documentation. Luckily there were a &lt;a href="https://web.archive.org/web/20170718153757/http%3A//jeelabs.net/boards/6/topics/285"&gt;great bunch of people&lt;/a&gt; who had spent their time reverse engineering the communications while their systems were still active, so I had good material to work from.&lt;/p&gt;&#10;&lt;p&gt;The &lt;em&gt;Lamp&lt;/em&gt; was even worse, as it operates with custom commands for everything and just setting a single colour is really only one element of a colour sequence. This means you can make it do some cool standalone effects, such as the classic Apple “breathing” fade, but working out what to send to the thing when there’s not even the possibility of packet sniffing the traffic (because the hub is defunct) is extremely frustrating! Particularly when there are probably four of them left in working condition on the planet and two are taunting you on your desk.&lt;/p&gt;&#10;&lt;p&gt;I needed a leg up from a professional on that one, but &lt;em&gt;I GOT YOU IN THE END, LAMP!&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Ultimately I was able to create drivers for the &lt;em&gt;Alarm Sensor, Button, Contact Sensor, Key Fob, Lamp, Motion Sensor, PowerClamp&lt;/em&gt; and &lt;em&gt;SmartPlug&lt;/em&gt;. Basically all the devices I have except for the &lt;em&gt;Display&lt;/em&gt;, which I’ve not looked at yet. It’s a cute little energy usage display with an unusual colour liquid crystal panel.&lt;/p&gt;&#10;&lt;h3&gt;Saved A Ton, Learned A Lot&lt;/h3&gt;&#10;&lt;p&gt;Home automation gear is tumbling in price now that &lt;a href="https://birdslikewires.net/hubitat-and-lidl-smart-home"&gt;supermarkets are getting on board&lt;/a&gt;, but ten years on there really are very few sensors, and especially key fobs, which match the design and features of the AlertMe products. I was genuinely thrilled to get the entire of my original smart home back up and running thanks to driver advice from the &lt;a href="https://community.hubitat.com/"&gt;Hubitat&lt;/a&gt; and &lt;a href="https://community.oh-lalabs.com/"&gt;Oh-La Labs&lt;/a&gt; communities, with far better response times and flexibility than was possible with the old hub.&lt;/p&gt;&#10;&lt;p&gt;With any luck I’ll put together some information on the platforms I have working together, but I couldn’t have imagined back in 2010 that I’d have the same devices integrated with Hue and HomeKit… mainly because neither of those things existed.&lt;/p&gt;&#10;&lt;p&gt;So check your cupboards and drawers if you were an AlertMe or Iris customer. Grab a Hubitat hub and those devices will work just fine.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/alertme-on-hubitat</link><pubDate>Sun, 10 Jan 2021 02:04:00 +0000</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2020-08-13:b19d4f3af08220f3ccbb4b0f0e44fe4b/f601e25bed181f4a235fe5d95aded903</guid></item><item><title>Hubitat and Lidl Smart Home</title><description>&lt;p&gt;Wrote some drivers for the mains ‘leccy stuff.&lt;/p&gt;</description><content:encoded>&lt;blockquote&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/birdslikewires/hubitat/tree/master/tuya/drivers"&gt;&lt;strong&gt;Tuya (Lidl Smart Home) Drivers for Hubitat&lt;/strong&gt;&lt;/a&gt; (GitHub)&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;Supermarket chain &lt;a href="https://www.lidl.co.uk/our-products/smart-home"&gt;Lidl&lt;/a&gt; have recently been selling their own range of smart home tech and it’s really very good. Essentially they’re doing what many have done before, which is to offer rebranded &lt;a href="https://pages.tuya.com/smart-home-eu"&gt;Tuya&lt;/a&gt; devices, and there’s nothing wrong with that. Particularly when you’re hitting £7.99 for a smart plug, compared to &lt;a href="https://www.hivehome.com/products/hive-active-plug/buy"&gt;£39&lt;/a&gt; for a device with exactly the same features from Hive. That’s outstanding and I hope they make this gear a regular feature in their stores.&lt;/p&gt;&#10;&lt;p&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-1_hu_453fd7071a32c2b1.webp 200w, https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-1_hu_31f252604362bc40.webp 400w" sizes="200px"&gt;&lt;img src="https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-1_hu_39d902a44da6b12e.jpg" srcset="https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-1_hu_c5f680fdc31d1487.jpg 200w, https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-1_hu_39d902a44da6b12e.jpg 400w" sizes="200px" width="200" height="150" loading="lazy" decoding="async" alt="01 Smart Plug" class="thumb"&gt;&lt;/picture&gt; &lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-2_hu_82a5452b0b0f1d90.webp 200w, https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-2_hu_ca710716e2c8773a.webp 400w" sizes="200px"&gt;&lt;img src="https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-2_hu_630e355197ca5a1a.jpg" srcset="https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-2_hu_77bf7442a7e3f9c.jpg 200w, https://birdslikewires.net/hubitat-and-lidl-smart-home/hubitat-and-lidl-smart-home-2_hu_630e355197ca5a1a.jpg 400w" sizes="200px" width="200" height="150" loading="lazy" decoding="async" alt="02 Smart USB Extension" class="thumb"&gt;&lt;/picture&gt;&lt;/p&gt;&#10;&lt;p&gt;The smart plug is a bit oversized, but has a replaceable fuse and is nicely made. The extension with USB sockets is particularly good, with global and individual control over the three mains outlets. In the years since &lt;a href="https://birdslikewires.net/security-energy-and-home-automation"&gt;AlertMe&lt;/a&gt; I’ve landed on &lt;a href="https://hubitat.com/"&gt;Hubitat&lt;/a&gt; as my current platform of choice (which I hope to write something about in the Near Future) and being that kind of person, I decided to write up some dedicated device drivers so these things can work as well as I would like them to.&lt;/p&gt;&#10;&lt;p&gt;The smart plug, also known as a &lt;strong&gt;TY-HG06337&lt;/strong&gt;, was pretty straightforward and used all the usual Zigbee 3.0 commands and messages though it’s incredibly quiet, barely sending out one message every 10 minutes when not in use, so I’ll need to get proactive on presence detection part of my drivers in the future to make that element more reliable.&lt;/p&gt;&#10;&lt;p&gt;The &lt;strong&gt;TY-HG06338&lt;/strong&gt; extension had a couple of firmware bugs in its global control and local button messaging, but that’s been worked around in the driver. It reports the wrong endpoint (F2 instead of FF) at setup and then again (01 instead of FF) when operated, so watch out for that if you’re tinkering.&lt;/p&gt;&#10;&lt;p&gt;They’re still available as I write this, though my local store was down to unsold stock from other locations yesterday. Hopefully they’ll keep bringing them back when they can. The lamps all work with Philips Hue as well, but that’s for another time.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/hubitat-and-lidl-smart-home</link><pubDate>Thu, 31 Dec 2020 00:38:00 +0000</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2020-12-31:b19d4f3af08220f3ccbb4b0f0e44fe4b/8c0d41f20afa79f94ecac825bced03a9</guid></item><item><title>Plex Media Player</title><description>&lt;p&gt;Compiled and packaged for 32-bit Debian systems.&lt;/p&gt;</description><content:encoded>&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;Download:&lt;/strong&gt; &lt;a href="https://openbeak.net/openframe/plex/"&gt;&lt;strong&gt;Plex Media Player&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&#10;(Debian Package, x86, 32-bit)&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;This package has been tested on Ubuntu Bionic 18.04.4 LTS using the standard shared libraries present in the default repositories.&lt;/p&gt;&#10;&lt;p&gt;The easiest method of installation is simply:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo dpkg -i plexmediaplayer_2.57.0-1_i386.deb&#10;sudo apt --fix-broken install&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The software installs to &lt;code&gt;/opt/plexmediaplayer&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h3&gt;What’s All This About?&lt;/h3&gt;&#10;&lt;p&gt;When iTunes was discontinued, I switched to Plex for my home media server needs and have been more than happy with it. Then, a few days ago, &lt;a href="https://www.jogglerwiki.com/forum/viewtopic.php?p=32253#p32253"&gt;a comment on the Joggler Forums&lt;/a&gt; got me wondering why I’d never looked into running a client on the OpenFrame.&lt;/p&gt;&#10;&lt;p&gt;Two problems were obvious; no hardware accelerated video decoding in the OpenFrame 1 or 2 due to it using the GMA500 ‘Poulsbo’ chipset, plus the lack of a 32-bit Plex Media Player build, which I wanted to try as the web interface was being sluggish.&lt;/p&gt;&#10;&lt;p&gt;I’m not certain that I’ll manage to get the OpenFrame devices playing video as I would like (experiments with the Crystal HD BCM70015 card have not gone well so far), but with any luck this &lt;code&gt;.deb&lt;/code&gt; will help out some other fringe case.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/plex-media-player</link><pubDate>Fri, 15 May 2020 17:39:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2020-05-15:b19d4f3af08220f3ccbb4b0f0e44fe4b/554927f8a8b6ce75925a8d6374335741</guid></item><item><title>AlertMe Mini Hub Disassembly</title><description>&lt;p&gt;It’s yet another video!&lt;/p&gt;</description><content:encoded>&lt;p&gt;Completely forgot to post about this, but a couple of months ago I took a look at what lives inside the old AlertMe Hub.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="video" href="https://www.youtube.com/watch?v=S0EsevjybIo" data-embed="https://www.youtube-nocookie.com/embed/S0EsevjybIo?rel=0&amp;amp;autoplay=1" title="Play video"&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/alertme-mini-hub-disassembly/alertme-mini-hub-disassembly-1_hu_2deb9a85ed307361.webp 480w, https://birdslikewires.net/alertme-mini-hub-disassembly/alertme-mini-hub-disassembly-1_hu_de1f52e6fa523293.webp 960w, https://birdslikewires.net/alertme-mini-hub-disassembly/alertme-mini-hub-disassembly-1_hu_1eb218b5baef5702.webp 1280w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/alertme-mini-hub-disassembly/alertme-mini-hub-disassembly-1_hu_39188359d0add9b9.jpg" srcset="https://birdslikewires.net/alertme-mini-hub-disassembly/alertme-mini-hub-disassembly-1_hu_5d967ffea1bd32be.jpg 480w, https://birdslikewires.net/alertme-mini-hub-disassembly/alertme-mini-hub-disassembly-1_hu_39188359d0add9b9.jpg 960w, https://birdslikewires.net/alertme-mini-hub-disassembly/alertme-mini-hub-disassembly-1_hu_b811727a67f4326d.jpg 1280w" sizes="min(100vw, 720px)" width="1280" height="720" loading="lazy" decoding="async" alt="AlertMe Mini Hub Disassembly"&gt;&lt;/picture&gt;&lt;span class="video-play" aria-hidden="true"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;There was a little surprise for me!&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/alertme-mini-hub-disassembly</link><pubDate>Mon, 04 Nov 2019 11:25:00 +0000</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2019-11-04:b19d4f3af08220f3ccbb4b0f0e44fe4b/fecf547105efb19a3244bb3a68cde7b8</guid></item><item><title>Elite Dangerous on Linux</title><description>&lt;p&gt;Before Steam made things easy, things were trickier.&lt;/p&gt;</description><content:encoded>&lt;p&gt;Headless servers? I’m an Ubuntu, or more recently a Debian person. But way back when &lt;a href="https://en.wikipedia.org/wiki/RISC_OS"&gt;my old operating system of choice&lt;/a&gt; became untenable, I had to make a decision; use the Windows desktop I supported at work, or find another option. The Linux desktop back in 2003 wasn’t somewhere I wanted to be and I found myself wishing there was some other operating system with UNIX underpinnings, maybe a nice Bash shell, but with a really polished user interface…&lt;/p&gt;&#10;&lt;p&gt;I’ve been a Mac user since then and have watched as desktop Linux has slowly closed the gap between its commercial rivals. Though Windows 10 is one of the more polished releases in years, it’s not without its problems and there are so many great distributions of desktop Linux these days it’s hard to ignore the pull of open source life.&lt;/p&gt;&#10;&lt;p&gt;I’m a goal-oriented sort of person, so I looked at why I found myself booting my Mac into Windows more often these days. One reason is driver support for some capture hardware I use. The other is Elite Dangerous. I’d wanted to investigate the &lt;a href="https://www.winehq.org/"&gt;Wine&lt;/a&gt; compatibility layer to get this working, but my first solo attempt ended badly. There are some &lt;a href="https://docs.google.com/document/d/1Hh2RjjtCkUVVhr4iULpzKgPLa_K3gAxA2ztaGPwjwa4"&gt;great instructions out there&lt;/a&gt;, but after making my own way through them I like to slim things back as far as possible, so this is what I came up with.&lt;/p&gt;&#10;&lt;h3&gt;Setup Instructions&lt;/h3&gt;&#10;&lt;p&gt;Before we start, I only have Nvidia hardware so can’t comment on the AMD side, though &lt;a href="https://docs.google.com/document/d/1Hh2RjjtCkUVVhr4iULpzKgPLa_K3gAxA2ztaGPwjwa4"&gt;the instructions I originally used&lt;/a&gt; talk through how to disable the Radeon driver and preferentially use the AMDGPU one.&lt;/p&gt;&#10;&lt;p&gt;The general trick is to set up the graphics drivers, then add in Steam and install Elite, launch it once to create its ‘prefix’, then delete all installed compatibility packages within that prefix and install our own updated ones; then allow Steam to add back in anything missing on next launch. If you already have Elite Dangerous installed through Steam for Linux use the ‘Backup and Restore Games’ feature so you’re not having to download over 20 GB of files if things go awry.&lt;/p&gt;&#10;&lt;p&gt;These instructions have been tested with Ubuntu Disco.&lt;/p&gt;&#10;&lt;h4&gt;Graphics&lt;/h4&gt;&#10;&lt;p&gt;Add the latest Nvidia graphics driver:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo add-apt-repository ppa:graphics-drivers/ppa&#10;sudo apt update&#10;sudo apt install nvidia-driver-430 libnvidia-gl-430 libnvidia-gl-430:i386 libnvidia-compute-430 nvidia-dkms-430 nvidia-kernel-source-430 libnvidia-compute-430 nvidia-compute-utils-430 libnvidia-decode-430 libnvidia-encode-430 nvidia-utils-430 xserver-xorg-video-nvidia-430&#10;sudo reboot&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Remove any old leftovers and ensure Vulkan support is installed:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt remove --purge nvidia-*-418&#10;sudo apt autoremove&#10;sudo apt install libvulkan1 libvulkan1:i386&lt;/code&gt;&lt;/pre&gt;&lt;h4&gt;Wine&lt;/h4&gt;&#10;&lt;p&gt;Add repository keys and install the very latest Wine.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;cd ~/Downloads&#10;mkdir winekeys&#10;cd winekeys&#10;wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04/Release.key&#10;sudo apt-key add Release.key&#10;sudo apt-add-repository &amp;#39;deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04/ ./&amp;#39;&#10;sudo dpkg --add-architecture i386&#10;wget -nc https://dl.winehq.org/wine-builds/winehq.key&#10;sudo apt-key add winehq.key&#10;sudo apt-add-repository &amp;#39;deb https://dl.winehq.org/wine-builds/ubuntu/ disco main&amp;#39;&#10;sudo apt update&#10;sudo apt install --install-recommends winehq-staging wine-staging wine-staging-i386&#10;wine --version&#10;cd&#10;rm -rf ~/Downloads/winekeys&lt;/code&gt;&lt;/pre&gt;&lt;h4&gt;Winetricks&lt;/h4&gt;&#10;&lt;p&gt;Again, the very latest version is required.&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt install git&#10;mkdir Development&#10;cd Development&#10;git clone https://github.com/Winetricks/winetricks.git&#10;cd winetricks&#10;sudo make install&#10;cd&#10;rm -rf Development/winetricks&lt;/code&gt;&lt;/pre&gt;&lt;h4&gt;Steam&lt;/h4&gt;&#10;&lt;p&gt;Install Steam and cabextract, which Proton is going to need in a minute:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt install steam-installer cabextract&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To configure things:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Run Steam from your launcher, let it install and then authorise it with your account.&lt;/li&gt;&#10;&lt;li&gt;Go to &lt;strong&gt;Steam &amp;gt; Settings &amp;gt; Steam Play&lt;/strong&gt; and tick “Enable Steam Play for all other titles”, leaving Proton 4.11-3 chosen.&lt;/li&gt;&#10;&lt;li&gt;Restart Steam when prompted.&lt;/li&gt;&#10;&lt;li&gt;Choose &lt;em&gt;Elite Dangerous&lt;/em&gt; from your Library and install.&lt;/li&gt;&#10;&lt;li&gt;Steam will instll Proton 4.11, Steamworks Common Redistributables and Elite Dangerous.&lt;/li&gt;&#10;&lt;li&gt;Launch &lt;em&gt;Elite Dangerous&lt;/em&gt; from Steam after downloads complete.&lt;/li&gt;&#10;&lt;li&gt;Choose ‘Play Elite Dangerous’.&lt;/li&gt;&#10;&lt;li&gt;Allow first time setup to complete.&lt;/li&gt;&#10;&lt;li&gt;Elite Dangerous will show as running, then close itself.&lt;/li&gt;&#10;&lt;li&gt;Wine prefix will now be configured here: &lt;strong&gt;~/.steam/steam/steamapps/compatdata/359320/pfx&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h4&gt;Wine Again&lt;/h4&gt;&#10;&lt;p&gt;Then throw away all of Steam’s hard work from within the prefix path and use &lt;em&gt;winetricks&lt;/em&gt; to install what we need:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;rm -rf ~/.steam/steam/steamapps/compatdata/359320/pfx/* ~/.steam/steam/steamapps/compatdata/359320/pfx/.*&#10;WINEPREFIX=/home/$USER/.steam/steam/steamapps/compatdata/359320/pfx/ winetricks -q dotnet40 vcrun2015 win7&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;&#10;&lt;li&gt;Follow prompts for Wine Mono Installer and Wine Gecko Installer, the latter of which will appear twice (32-bit and 64-bit).&lt;/li&gt;&#10;&lt;li&gt;When the ‘Program Error’ windows appear, click OK on them all to allow the install to continue. There’s about twenty.&lt;/li&gt;&#10;&lt;li&gt;Hit Play on &lt;em&gt;Elite Dangerous&lt;/em&gt; again.&lt;/li&gt;&#10;&lt;li&gt;Hit ‘OK’ on rundll32.exe error “Unable to find a version of the runtime to run this application” twice.&lt;/li&gt;&#10;&lt;li&gt;Allow Steam to install support libraries for the second time.&lt;/li&gt;&#10;&lt;li&gt;Wait…&lt;/li&gt;&#10;&lt;li&gt;Frontier Hardware Report should appear!&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Launcher should appear!&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;In my testing once you have the Launcher appearing there should be no issues running the game itself.&lt;/p&gt;&#10;&lt;h3&gt;Experience&lt;/h3&gt;&#10;&lt;p&gt;To give some context, my system is an Apple Mac Pro (Mid 2012) with a GTX 1080 Ti; in other words, a machine with what is these days a low-to-average CPU (though with 12 cores available) coupled to a reasonably powerful GPU. Monitoring system resources showed that CPU power was never a bottleneck, but the GPU was certainly being worked hard, for a lower number of frames per second overall.&lt;/p&gt;&#10;&lt;p&gt;I usually play the game at 3840×2160 with Ultra settings and achieve &amp;gt;60 fps the vast majority of the time with V-sync switched on under Windows 10, with a 120 Hz maximum frame rate to prevent the GPU going too wild. On Ubuntu under Wine 4.15 I was getting a pretty consistent 46 fps in planetary rings with the same settings, though performance was much better in supercruise and even in stations.&lt;/p&gt;&#10;&lt;p&gt;You may also notice a few rendering glitches, such as odd shadows or square lighting effects from limpets – but in all honesty I’m amazed at just how well, and reliably, the game runs without official support. Depending on your hardware and expectations this may well enough.&lt;/p&gt;&#10;&lt;p&gt;While just at this moment I can’t honestly say Ubuntu will entirely replace Windows for me, I’m going to be keeping this installation and checking progress regularly. Natively supported games run incredibly well and Valve deserves a huge amount of recognition for their work supporting the Linux platform. They’ve brought the Linux desktop dream a big leap forward.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/elite-dangerous-on-linux</link><pubDate>Mon, 02 Sep 2019 10:07:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2019-09-02:b19d4f3af08220f3ccbb4b0f0e44fe4b/a932c5e1545d238e17c2d5e180f1d78c</guid></item><item><title>Hive SmartPlug SLP2 Disassembly</title><description>&lt;p&gt;It’s another video!&lt;/p&gt;</description><content:encoded>&lt;p&gt;Here’s the part where I realise that I hadn’t taken a peek inside the SLP2 plug in that last video.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="video" href="https://www.youtube.com/watch?v=fyqyIfqRGtk" data-embed="https://www.youtube-nocookie.com/embed/fyqyIfqRGtk?rel=0&amp;amp;autoplay=1" title="Play video"&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://birdslikewires.net/hive-smartplug-slp2-disassembly/hive-smartplug-slp2-disassembly-1_hu_e83223a38548abf0.webp 480w, https://birdslikewires.net/hive-smartplug-slp2-disassembly/hive-smartplug-slp2-disassembly-1_hu_7a2c2ef8fe6c971f.webp 960w, https://birdslikewires.net/hive-smartplug-slp2-disassembly/hive-smartplug-slp2-disassembly-1_hu_5fc57a6f45b7b401.webp 1280w" sizes="min(100vw, 720px)"&gt;&lt;img src="https://birdslikewires.net/hive-smartplug-slp2-disassembly/hive-smartplug-slp2-disassembly-1_hu_2a8e30cd33f43023.jpg" srcset="https://birdslikewires.net/hive-smartplug-slp2-disassembly/hive-smartplug-slp2-disassembly-1_hu_ca66cad4c96fec7b.jpg 480w, https://birdslikewires.net/hive-smartplug-slp2-disassembly/hive-smartplug-slp2-disassembly-1_hu_2a8e30cd33f43023.jpg 960w, https://birdslikewires.net/hive-smartplug-slp2-disassembly/hive-smartplug-slp2-disassembly-1_hu_97f386851c70cee3.jpg 1280w" sizes="min(100vw, 720px)" width="1280" height="720" loading="lazy" decoding="async" alt="Hive SmartPlug SLP2 Disassembly"&gt;&lt;/picture&gt;&lt;span class="video-play" aria-hidden="true"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;As I think I mention more than once, there’s more going on inside this version; or rather the end result is just the same, but it’s using more components.&lt;/p&gt;&#10;</content:encoded><link>https://birdslikewires.net/hive-smartplug-slp2-disassembly</link><pubDate>Thu, 27 Jun 2019 17:07:00 +0100</pubDate><dc:creator>Andrew Davison</dc:creator><guid isPermaLink="false">tag:birdslikewires.net,2019-06-27:b19d4f3af08220f3ccbb4b0f0e44fe4b/a5fe2e0eaa46bdfa880b8245b7ba319d</guid></item></channel></rss>