Cloudflare Workers and Backblaze’s S3 API

I use CF Worker to deliver the static copy of my old blogs. Files are stored in Backblaze’ B2. Here is how this works: To set up the 2 secrets (repeat with SECRETACCESSKEY): I used the native B2 API before, but there’s no way (I found) to not constantly refresh the download key as theContinue reading “Cloudflare Workers and Backblaze’s S3 API”

Firebase Real Time Updates

Firebase Cloud Firestore has the nice feature of being able to tell you about changes to its data. Here’s how this looks like using Node.js: Requirement A Firebase Cloud Firestore DB, named ‘messages’. Has 2 entries per document: sender and text, both being strings. Service Account Key Get your service account secret from Get yourContinue reading “Firebase Real Time Updates”

BME280 and Node.js on OrangePi

I got some more sensors, like an Bosch BME280 which uses I²C bus. Neat as it can measure temperature, air pressure and humidity. Using it on an OrangePi Zero is simple: Enable the I2C-0 module: in /boot/armbianEnv.txt add “i2c0” (or use i2c1 or i2c2) to the overlay. Create /etc/udev/rules.d/60-i2c-tools.rules with the following content: KERNEL==”i2c-0″ ,Continue reading “BME280 and Node.js on OrangePi”

Installing the Garmin ConnectIQ SDK

Yesterday I ordered a Garmin vívoactive 3. At ¥15200 it was hard to not get one. As Garmin has an app store for their watches and there’s also a developer forum and of course an SDK, the next obvious step was to install that SDK. Installing the ConnectIQ SDK Get it from here. It seemsContinue reading “Installing the Garmin ConnectIQ SDK”


The previous blog entry lacked using https so all communication is in plain text, which makes using passwords less than ideal. This blog entry fixes this. The full source code for the docker-compose.yml and haproxy.cfg file is available here. docker-compose.yml What’s this docker-compose file doing? It starts 2 containers: the ELK container and the HAProxyContinue reading “ELK with HTTPS”

Logging via ElasticSearch

The Elastic Stack is a simple way to log “things” into ElasticSearch and make them nicely visible via Kibana. Since ELK can handle logs as well as time series data, I’ll use it for my own logging incl. performance logging. For pure time series data I’d use the TIG stack: Telegraf, InfluxDB and Grafana. InstallingContinue reading “Logging via ElasticSearch”

Create your website at
Get started