Reflashing Xiaomi Mijia LYWSD03MMC allows you to read the environment data easily via BLE. Here is are 2 small Nodejs programs to simplify this a lot.
Author Archives: hkubota
firejail Command Completions for zsh
Creating a zsh completion for firejail
Comparing Sandboxing Tools
Comparing some tools to make it less dangerous to run code you did not write. Sandboxing seems to be the best way to go like Deno and wasmtime do. But what about Python, Node.js, etc.?
firejail seems to be have hit the sweet spot between “secure” and “convenient”.
Humanoid Hunt! In Dart!
After doing a quick&dirty Node.js implementation of the Humanoid Hunt puzzle, I tried the same in Dart. It’s surprisingly similar, but this time I tried to create tests and I wanted to see what will be the result when I try the “real” puzzle. And ‘lo and behold: after creating all the logic and testContinue reading “Humanoid Hunt! In Dart!”
Humanoid Hunt!
Sometimes advertising is fun. I turned off my ad-blocker for certain web pages, and while I usually get boring advertising, once in a while you get a good and interesting looking one. In this case: https://hunt.reaktor.com/ : it’s a programming quest similar to Google Foobar Challenge, but much shorter and simpler, yet with a veryContinue reading “Humanoid Hunt!”
ESP8266 and LEDs
After the short excurse with Blynk in the previous post I wanted to do the same without a company between. After all, controlling an LED is rather simple. So back to basics: MQTT it is. Got a Mosquitto instance on the Internet with the following docker-compose.yml definition: Very basic configuration. No TLS, but I definedContinue reading “ESP8266 and LEDs”
Blynk and M5Stack
Using my M5Stack with Blynk makes sense: it has plenty sensors and a display and LEDs. Update M5Stack firmware to v1.7.0 via the M5Burner Have ampy installed Download BlynkLib.py from https://github.com/vshymanskyy/blynk-library-python Set your M5 into “APP Mode” to be able to use the REPL reliably (boot, hit Setup button, select mode, reboot) Upload BlynkLib.py: NowContinue reading “Blynk and M5Stack”
Blynk IoT Platform
Yesterday I read an article about blink(1) which is essentially a USB connected and controlled RGB LED light. I got some ESP8266 and some WS2812 LEDs to do the same, and it even can connect via WiFi and the Internet. So that’ll what do on Sunday. Somehow I arrived at Blynk which is a totallyContinue reading “Blynk IoT Platform”
Benchmarks!
A quick and non-micro benchmark to figure out how the ARM and AMD CPUs I have and what AWS has relate to each other in terms of single-thread performance. Comparison is between AWS t4g-micro (1 CPU) IBM M75q (Ryzen 5 3400GE @ 3.3 GHz) NanoPi R2S (RK3328, 4xCortex A53 @ 1.3GHz, 64 bit) CubieTruck (AllWinnerContinue reading “Benchmarks!”
NanoPi R2S: My First ARMv8
Got a NanoPi R2S. Really nice little machine which does not overheat.