Posts

Showing posts with the label Electronics

Lightweight DIY Linux Server Monitoring Dashboard Using MQTT + Node-RED

Image
Having som Linux servers up and running I checked out  monitoring tools like Nagios, Zabbix, Cockpit or Prometheus. For small setups, home labs, or lightweight environments, those solutions can feel like using a sledgehammer to crack a nut. In this post, I’ll show you how to build a   lightweight monitoring agent   using nothing more than a Bash script, MQTT, and Node-RED. The script collects key metrics from your server — disk usage, memory consumption, CPU load, and available package upgrades — then publishes them to an MQTT broker. From there, Node-RED visualizes the data in a clean, real-time dashboard. The result? A simple but powerful monitoring system that works across multiple servers, scales with your needs, and gives you instant visibility into the health of your infrastructure. And the best part: you control every piece of it.

Node-Red & Mosquitto quick install, Linux, Ubuntu, Raspberry OS

Image
Updated 2025-09-08 ! A fantastic way to distribute data between devices is using MQTT . In this post I will do a quick and simple setup with Node-Red(NR) and the Mosquitto(MQ) broker on a Linux machine. Very short, the Broker , installed on a server, handles incoming Publishing and Subscriptions from clients. Every published  Message is "linked" to a Topic.  All Subscribers use a  Topic to "link" to the right Message . How to install Node-Red(NR)  is found here  and the MQ manual here .

ZeroTier Tutorial: Secure Remote Access to Home Assistant & Ubuntu Server + Desktop

Image
For a long time I have checked for a good solution to reach my servers at home. My  thoughts   now have finalized in the VPN solution Zero Tier(ZT) where I reach Ubuntu desktop with "RDP" and Ubuntu server with "ssh". The ZT solution also works great with the Home Assistant(HA) browser access and the HA Mobile App. Until now I have used remote.it but ZT will manage all of my network resources as if they were on the same LAN . The Ubuntu desktop installation is running a Linux KVM with HA and a Ubuntu server Lite  guests .  Setup here .

Home Assistant for beginners or easy start

Image
Updated 2025-08-25 ! What is the purpose of a Home Assistant(HA)  according to Wikipedia ? Home Assistant is free and open-source software used for home automation. It serves as an integration platform and smart home hub, allowing users to control smart home devices. The software emphasizes local control and privacy and is designed to be independent of any specific Internet of Things (IoT) ecosystem.  Even for me, as someone running Apple HomeKit and Homebridge, it is a fantastic piece of software that bridges almost everything and enables highly intelligent integrations.  Since it is widely used, there is a wealth of information available. However, I couldn't find a clear "bullet list" on how to get started. This post will primarily contain links to other sources rather than writing extensive explanations myself.

Raspberry Pi OS Lite with GUI, RDP, VNC, Chromium

Image
Updated 2025-08-08 ! I like the Raspberry Pi(RPi), with Raspberry Pi OS Lite (no Desktop is included), headless operation, and then adding the software You need. Until now I haven't had a use case where I needed a Desktop but now was time.  Why don't use the Raspberry Pi OS with Desktop ?? In that package there is a lot of software I don't need and I really want to optimize the RPi. I think that the less software You install the happier RPi will be... 😉

GPS tracker, GT06, easy setup !

Image
  I really like the products on AliExpress and Alibaba, but in most cases the documentation is very simple and to short. So when I bought a combined tracker and a burglar alarm, to our boat, I really tried to get the best. One important thing was that, if possible, getting a lifetime app support. The purchase went well and 14 days later it arrived in Sweden.

Installing Ubuntu, linux, on an Mac Mini (2018) and MacBookAir (2010)

Image
It's almost become a sport to revive old Macs..... 😉 This short post will address some obstacles found during install of a new OS. The Mac Mini:s WiFi controller wasn't found ! The MacBook Air didn't manage to do a USB boot with Ubuntu !

Signal K, stream data changes

Image
Updated 2025-06-28 ! Are You searching for a solution where You want to create graphs and gauges from SignalK(SK) data ? Use NodeRed(NR), installed as a SK plugin , with the standard dashboard and it's easy to create info as seen in the picture. And this is without a database as InfluxDB and tools like Grafana. You use the WebSocket interface , or SK subscribe nodes, to subscribe to changes in data from the SK server. 

Signal K quick install, Raspberry Pi, Ubuntu

Image
Updated 2025-06-23 ! I have got some questions installing, just,  Signal K (SK) so will do a summary with links. Signal K is the hub to receive data, from different devices in different data formats, and send it on to different equipment, or databases, in different formats. Most common for standard marine equipment are the old NMEA 0183 and the newer NMEA 2000 protocol which is also handled.  Besides the SK "hub" function developers  have  created  plugins  for different purposes. This is due to that  SK is open-source ! Sharing is caring ! In this post you can check the devices I'm using connected to the SK server and also my setup.

Home Assistant with VirtualBox or Proxmox or Ubuntu KVM ???

Image
After testing Home Assistant (HA) for a while, I’ve realised it could improve my home automation, despite that I'm using Apple HomeKit. When I tested HA with Node-RED and some other "Add-ons", on a Raspberry Pi 3 (RPi), I found that its resources wasn’t enough. The following setup could be any computer but I recently bought an Apple Mac Mini M4, replacing my 2018 (M18) model, so the M18 was really a great candidate for my HA setup. The preferred method running HA is through the  HA Operating System (HAOS), which makes your "life" easier. 😉

Home Assistant core install, Raspberry Pi and Python 3.12 & 3.13

Image
Updated 2025-06-02 ! This will soon be a deprecated installation method !! The best way to start with Home Assistant (HA), and Raspberry Pi(RPi), is off course to use the ”Raspberry Pi imager” and in the menu select " Other specific-purpose OS => Home Assistant and home automation => Home Assistant ". This will install the HA operating system. It works very well and here are the install instructions .  On the other hand if you want to add HA to a RPi which you already have up and running, without Docker, you need to install something which is called " Home Assistant Core ". Please check the " Remarks " below before you start. New version for Python 3.13 ! Below info is not updated but just change from 3.12 to 3.13 

Installing Ubuntu 24.04 or 24.10/25.04 on an old MacBook Air(2011)

Image
Updated 2025-05-20 ! I have done several posts Blogging about how to keep an old MacBook Air(MBA), mid 2011(A1369), with SSD disk "alive". I have used the fantastic software package OpenCore Legacy patcher to upgrade the Mac to the latest Mac OS.  A while ago i tested Mac OS  Sequoia (15.3), on the mentioned Mac, but I had to admit that it was to much for the 14 year old companion. I really like the Mac and everything works, after a battery change , so it ended up with installing  Ubuntu 24.04.2 LTS  or if you want the latest scroll down and get Ubuntu 24.10/25.04. Ubuntu on  Mac Mini (2018) and MacBookAir (2010)  ?

Ubuntu Desktop for beginners or easy start !

Image
Updated 2025-05-18 This post is for both Windows and Mac users !   I have been running Linux, Raspberry Pi OS , since several years but almost just the Lite version (without Desktop). But when my old MacBook Air "gave up" , with Mac OS, it came naturally to use Ubuntu Desktop since it's also based on the Debian Linux distribution and the most used Linux distribution. So it ended up with installing Ubuntu 24.04.2 LTS (UOS) or the later 24.10 !

Home Assistant and Node-RED

Image
Node-Red (NR) is  Flow-based programming for the Internet of Things. I have in the past  written a lot of posts  for Node-RED and the   HA implementation  makes it easy to interact with HA:s entities. The best thing is that even if you don't are a skilled programmer, but like logic flows, you can make really advanced things and it really complements the logic that could be made within Home Assistant(HA). In this post I will do a quick introduction to what is possible with NR together with HA.

Remote access for Linux, remote.it, made simple

Image
Updated 2025-03-23 ! Sometimes it's really nice to reach your applications, secure and quick, at home when you are somewhere else.  There are several applications but this post will be describe a really quick setup with remote.it  on a Raspberry Pi(RPi) or another Linux platform. Of course there also is a Windows version. But these days I prefer a  VPN solution  ! The most used services are; http, ssh, vnc, rdp, SAMBA(smb/cifs) ..... and  or non-commercial use, with up to 5 devices, it's free ! I'm using it to access Home Assistant , display  NodeRed dashboard , access servers with "ssh" and file sharing with SAMBA there all applications are running on RPi:s at home.

Z-Wave on Raspberry PI

Image
Updated 2025-01-25 ! Installing a Z-Wave controller on Raspberry Pi is much easier than You think. The only add on You need is the Razberry Z-wave Shield and free software from the same site.

IKEA Bäve dimmer hack II

Image
Updated 2025-01-10 ! Dimming not dimmable LED, IKEA Bäve, produced before 2019-11 and a new idea for later products ! In former post I used a  Fibaro Z-Wave RGBW controller  but in this post I will use an IKEA original or an external dimmer ?!

Install Weather34 with WeatherLink

Image
Updated 2025-01-09 PHP 8.2 ! If You want Your Private Weather Station(PWS) Davis Vantage Pro2, or other Davis products that use WeatherLink, to provide data for the template we use at Domstens BÃ¥tklubb just follow the instructions below.  T his is made  without  additional software such as Cumulus, Weather display or the Meteobridge product. This application is updated !! , to use the v2 API. Check   this post  !!

Install Weather34 with WeatherLink, v2 API

Image
Updated 2025-01-08 OK PHP 8.2 ! This post is an update from a former post which handles on how to set up a weather WEB-site with data from Davis Weather Link(WL) but here adapted to the latest WL API v2. Any product that reports weather data to WL can be used as a source for this weather template. T his is made  without  additional software such as Cumulus, Weather display or the Meteobridge product.

ReSound Smart 3D app for ReSound hearing aids

Image
Beeing forced to use a hearing aid(HA) is not that fun but on the other hand it's always exciting with new electronic gadgets and to better participate in conversations with other people.  In this post I will just summarize some points gathered when setting up the HA with the ReSound Smart 3D (S3D) in an Apple enviroment. But of course there is also a Android app These hearing aids are compatible with the mentioned app and I'm using Resound Nexia 9 RIE .