Simple Lua console in Qt

Lua is a simple, fast and embeddable scripting language. Capability to run Lua scripts can be relatively easily added into C and C++ applications. Due to it’s ease of use and performance it’s being used in computer games (Crysis, Garry’s mod, …), general software (Wireshark, Neovim, …) and also embedded devices (Logic Machine). Let’s take a look how to create a very simple Lua console GUI with Qt.

Continue reading

A postcard from China

Enjoying terere in a hotel room in Asunción seems to be a good time to write some useless posts after eyebrow-raising almost three years hiatus. Let’s continue.

In late May 2023 almost immediately after China suddenly lifted the (Corona) tourist travel ban I’ve decided to use this unique opportunity to take a look what the future will bring.

Continue reading

Using Azure CI for cross-platform Linux and Windows Qt application builds

Developing cross-platform applications brings some extra challenges. Generally your development machine runs an operating system of your choice, but you need to assure that your application runs on other platforms as well. In the end the only way to do this is to actually test if everything is OK. This hassle can be simplified using CI.

Continue reading

Simple MQTT temperature sensor

Note: this post was first published on Mevisys website.

In the previous post about monitoring temperature we have used a simple RS-485 connection to communicate with a sensor. While this approach is very simple and has been proven to work well in many applications it can be complicated when the amount of connected sensors increases. Also adding or removing sensors can cause complications.

Modern technologies allow us to connect sensors using existing computer networks. For example the incredible ESP32 SoC can easily be programmed to read data from a sensor and relay them over WiFi using MQTT protocol.

Continue reading

Environment monitoring using InfluxDB and Grafana

Note: This post was first published on the Mevisys website.

When we talk about environment monitoring, temperature monitoring is one of the most ubiquitous use-cases and makes for an illustrative example as well. The measurement side of the process is not an area that would offer many exciting innovations in this day and age – today it is all about how you process the collected data.

Continue reading

Home automation – the beginning

In the year of 2019 home automation is finally starting to be a thing. However the industry is walking in an uncharted territory where most of the companies are coming up with their very own devices, protocols and mobile apps. And if you don’t want to use a separate app to switch on your lights and another to open the door you can sometimes even connect them to a walled garden network proprietary smart-home framework or even your home surveillance device assistant!

Continue reading