In the second instalment of this series, I left you with a couple of useful scripts — one to fetch the device ID of a light, given a name, and one to perform the conversion from RGB to CIE colour. I developed those two scripts as necessary parts of what comes next. I have demonstrated […]
Continue readingMore TagTag: programming
NC #1006 Philips Hue Programming Parts 1 and 2, Espanso, Manta Sleep Masks, Re-usable Cable Ties and Cable Tags
Hi, this is Allister Jenks of the NosillaCast Apple Podcast, hosted at Podfeet.com, a technology geek podcast with an EVER so slight Apple bias. Today is Sunday, August 18, 2024, and this is show number 1006. mp3 download Articles Philips Hue Programming (Part 1 of 3) Tiny Tip – Re-usable Cable Ties Command Line Text […]
Continue readingMore TagPhilips Hue Programming, Evolved (Part 2 of 3)
Device name selection In my previous instalment, I explained how to use the curl command to control Philips Hue lights. Part of the exercise involved dumping out a huge glop of JSON data and finding a long, gobbledegook of random alphanumeric characters that were the ID of a light we could control. I wanted to […]
Continue readingMore TagPhilips Hue Programming (Part 1 of 3)
A few years ago, I decided I needed to get some smart light bulbs. I need to be able to set very dim light in my study for the nights I am on call for my job. After trying some cheap no-name bulbs, I discovered the Nanoleaf Essentials range. These were affordable and also came […]
Continue readingMore TagCCATP #793 — Bart Busschots on PBS 165 of X – jq: Variables
In this installment of Programming By Stealth, Bart explains why jq is uniquely designed not to need variables (most of the time) and then explains how to use them in the few instances when there’s no other way. It’s really a fairly straightforward lesson as Bart sets up some clear examples and solves them with […]
Continue readingMore TagCCATP #786 — Bart Busschots on PBS 160 of X — jq as a Programming Language
In this week’s installment of Programming By Stealth, Bart Busschots teaches us how to use jq as a programming language. Before we get into the new stuff, Bart takes us through his solution to the challenge, and I have to say I was pretty chuffed when he said my solution to the extra credit portion […]
Continue readingMore TagCCATP #785 — Helma van der Linden on Porting XKPASSWD from Perl to JavaScript
Helma Visiting Steve & Me from The Netherlands This week’s Chit Chat Across the Pond Lite is a stretch to the word “Lite”. I’d call it a crossover episode of Lite and Programming By Stealth. Helma van der Linden joins me to tell the story of how she has successfully started the new version of […]
Continue readingMore TagCCATP #783 — Bart Busschots on PBS 158B – jq More Advanced Queries
Two weeks ago, Bart Busschots and I recorded a Programming By Stealth episode covering more queries using the jq language on our JSON files. We spent so much time working through the challenges from the previous installment that we only made it halfway through his tutorial shownotes. So this week we’re back with the second […]
Continue readingMore TagCCATP #782 — Bart Busschots on PBS 158A – jq More Queries
In Programming By Stealth this week, Bart Busschots and I start off by going through the challenges from our previous installment. Remember how I said I was really digging jq and querying JSON files because at heart I’m a data nerd? Well, I failed completely at accomplishing the homework. It was not for lack of […]
Continue readingMore TagCCATP # 779 — Bart Busschots on PBS 156 of X — Extracting Data with `jq`
After the last episode of Programming By Stealth where Bart gave us an intro to jq and the problems it can solve, this week we start to get our feet wet by learning how to extract data from JSON files. We learn how to descend into dictionaries and arrays, and how to slice arrays. Learn […]
Continue readingMore Tag