Web Workers to the rescue

Sat, 10/07/2017 - 22:28

TLDR; Think about when Web Workers make sense and when not. It's tempting to run something on the background, but not always. This is the story of what I did wrong.

How assembled Prusa i3 MK2

Thu, 05/04/2017 - 23:18

After more than one year of struggle with Micro M3D printer I decided to buy something bigger, faster, and more reliable. So why not original Prusa i3 MK2, which was on top of the chart (which I can not find anymore) while M3D was at the bottom.

Power meter graphs with prometheus.io and nodemMCU

Wed, 05/25/2016 - 12:04

I want to track and graph everything, which includes power consumption in my flat. But checking and regularly values and writing them down in spreadsheet is tiresome. Then I found this guide and after some modifications I've managed to collect actual power consumption, send it to Prometheus and see graphs in Grafana.

Control LIFX with NodeMCU and range sensor

Wed, 03/09/2016 - 15:30

LIFX bulbs are great, but when you just need to turn them on, off or just change brightness, it can be not very comfortable, to do this simple task by app. So I decided to create much simpler way to do this. And then I came across NodeMCU, small development board similar to Arduino with integrated Wi-Fi, with cost of about $5.

Lifx - smart RGB bulbs

Wed, 03/02/2016 - 18:50

Project LIFX: The Light Bulb Reinvented has collected in november 2012 more than $1.3 million (goal set to 100 thousand). It's goal was to manufacture RGB-W LED bulbs LIFX, which you can control via WiFi. Author promised, they'll be ready in march 2013, but path to the final product was more difficult than expected. My 4 bulbs arrived in february 2014, so I've had to wait 15 months, but it was worth it.

Remove jQuery timestamp from json requests to hit Drupal cache

Mon, 02/22/2016 - 10:33

Problem: When ajax request has cache off it always creates request with timestamp e.g. _=1456134256000, and as it is get parameter, views are called and Drupal cache is not hit. And when cache is on, request is made without timestamp, and browser returns data from it's cache, so it doesn't hit server. What I needed is that script gets past browser cache, but hits Drupal cache.

Welcome to ra100's lab

Tue, 02/02/2016 - 12:05

I've finally done it, this is my blog. Since it's my job to create websites, it has come to creating my web.

I will write here, if I will at all, about various tech (IoT) gadgets which I have or will create with RaspberryPi, NodeMCU etc. Meanwhile I'll try to continue with something I've begun on http://spaceunicorn.sk, reviews of gadgets from kickstarter or indiegogo. I can not forget about cosplay (the "cos" part). And there will be also something inbetween or something completely different, but I'll try to keep it technical.

And now, welcome to my laboratory.

LightPack - dynamic backlight for your display

Tue, 03/04/2014 - 14:20

Lightpack is set of RGB LED strips, thanks to which you can add backlight similar to Phillips Ambilight to any display, with a slight difference - you can set it up as you like and you don't need to buy new TV to get this effect. All you need is computer screen you already have and Lightpack. Id default setting you can use backlight asi extended light, which averages color and brightness from what's on screen and illuminates wall behind your display, this creates effect of larger screen, is easy on your eyes and looks nice. Or you can use Lightpack to create psycho effects, in time notifications via IFTTT, or with different plugins and provided API anything you can code.