Posts

  • Linux Disk Cleanup: Quick Commands to Free Up Space

    Linux Disk Cleanup: Quick Commands to Free Up Space Running low on disk space? It happens to the best of us. Whether it's accumulated cache files, forgotten Docker images, or orphaned Python virtual environments, disk space has a way of disappearing. This quick reference guide covers the most effective commands to reclaim your precious storage. Overview This guide covers: * Checking disk usage and finding space hogs * Cleaning cache and log files * Pruning Docker resources * Removing Python virtual environments * Package manager cache
  • My 15-Day KNX Home Automation Journey

    My 15-Day KNX Home Automation Journey Welcome to My 15-Day KNX Home Automation Journey with Home Assistant! Hello, home automation enthusiasts! I'm thrilled to announce that I'm embarking on an exciting 30-day journey to set up a comprehensive KNX-based home automation system using Home Assistant. Over the next month, I'll be diving deep into the world of KNX devices, exploring their capabilities, and integrating them seamlessly into my smart home setup. Each day, I'll be sharing my experiences, tips, and insights as I configure a
  • Crypto trading with freqtrade

    Crypto trading with freqtrade Some snippets/notes on how to use freqtrade. https://www.freqtrade.io/en/latest/ https://github.com/freqtrade/freqtrade $ sudo apt install -y python3-pip python3-venv python3-pandas python3-pip git $ git clone https://github.com/freqtrade/freqtrade.git $ cd freqtrade $ git checkout stable $ ./setup.sh -i ubuntu-pc:~/freqtrade$ ./setup.sh -i /usr/bin/python3.8 using Python 3.8 ------------------------- Installing mandatory dependencies ------------------------- Debian/Ubuntu detected. Setup
  • My Home Assistant Setup - Part 1

    My Home Assistant Setup - Part 1 I use Home Assistant for quite some years now, started to run it on a Raspberry Pi, a NUC, later went for Home Assistant Blue, and recently bought a Home Assistant Yellow, specially for the built-in radio's and faster Raspberry CM4 module. https://www.raspberrypi.com/documentation/computers/compute-module.html I could move over my installation vie the backup-restore method, but I want to document things, clean up unused code, and maybe improve older integrations. (by adding unique id's, Config
  • Quick webserver for Toon Home Assistant development

    Quick webserver for Toon Home Assistant development import http.server import socketserver from http import HTTPStatus class MyServer(http.server.SimpleHTTPRequestHandler): def do_GET(self): # toon_smartmeter if self.path == '/hdrv_zwave?action=getDevices.json': filename = "getDevices.json" # toon_climate elif self.path == '/happ_thermstat?action=getThermostatInfo': filename = "getThermostatInfo.json" if self.path: try: f = open
  • How to install Wallabag on Debian

    How to install Wallabag on Debian Was looking for a tool to store my bookmarks and items to read. Did this by sending myself e-mails which was not very clean... I opted to move to Wallabag, so installed it on a VPS like so. Install Debian 12, with minimal installation and SSH terminal selected. Wallabag needs PHP and Nginx su - apt install sudo adduser user sudo sudo apt update && sudo apt upgrade sudo apt install git make composer sudo apt install php-fpm php-mysql php-bcmath php-xml php-zip php-curl php-mbstring php-gd ph
  • Hosting a Ghost blog on Google Cloud

    Hosting a Ghost blog on Google Cloud I switched from the paid (although cheap) AWS Lightsail to Google Compute Engine for hosting this blog. NOTE: I bought the support for one month to get support on disabling DNSSEC I hope to run the Google Cloud VM Instance for free (using the monthly credits) The difference between this instance and the old one which ran at AWS is also a newer Debian distribution 11, and Ghost 5 instead of Ghost 3. Compute Engine: Virtual Machines (VMs) | Google CloudCompute Engine delivers configurable virtu
  • Geigercounter with KNX IP

    Geigercounter with KNX IP Having a KNX IP backbone with IP routers working I wanted to see if I can build some DIY sensors using it, and check if this is a stable solution for non-critical use cases. After building a module using ESPHome, I thought of converting it using KNX IP (ie. broadcast over WiFi to a broadcast address to report sensor values) Install Arduino IDE if not done yet. Go to https://www.arduino.cc/en/software and download version for your OS. On Linux do not install via sudo apt install Arduino, it's
  • Installing Proxmox on a Intel NUC

    Installing Proxmox on a Intel NUC I installed Proxmox on a spare NUC8 to run all kind of things and get Proxmox experience. Hardware * Intel NUC with at least 8 GB of memory plus required VM memory size, I use 32 GB. * Make sure you have enough hard-drive space. I use a 256 GB SSD. * BIOS boot and hit F2 to enter. Look for boot order and boot devices. Make sure USB boot is priority. Also make sure you enabled virtualization features of the processor. Prepare Installation Medium Download latest Proxmox image from this si
  • Move TTN Kickstarter LORA Gateway to V3 network

    Move TTN Kickstarter LORA Gateway to V3 network Finally had some time to move my TTN gateway from V2 to V2 network. Here are the steps and screenshots. Prerequisites: - Running v1.08 gateway firmware (beta) - User account for TTN console (Community Edition) Visit https://www.thethingsindustries.com/docs/download/ for the options 1. Create a gateway in V3. a. Visit https://eu1.cloud.thethings.network/console/gateways/add if you live in Europe. b. Give the gateway a name. (Gateway ID) c. Choose the frequency plan 'Europe 863-870
  • Android 12 Developer Preview 1

    Android 12 Developer Preview 1 A developer preview of the new Android 12 is available, I installed it on my Pixel 3 XL, and it works fine, a lot of good news on social media too. Nevertheless this can be worse with DP2 or later, so only do this on a spare phone, and if you know what you are doing. Android 12 Developer Preview | Android DevelopersAndroid DevelopersFirst preview of Android 12Posted by Dave Burke, VP of Engineering Every day, Android apps help billions of people work, play, communicate
  • Hosting a Ghost blog on AWS

    Hosting a Ghost blog on AWS I decided to switch to only using Home Assistant OS for running servers, I have an Intel NUC (development) and Home Assistant Blue (production), they run Home Assistant and do some file sharing and DSMR smartmeter energy readings. Also VS Studio, TimeScaleDB (Postgres) But I also run a personal blog (the one you are looking at now) at home for years on my home Linux server, I could port Ghost over to Home Assistant add-on but I wanted to experiment with AWS cloud as well.. If this can be done c
  • Home Assistant OS on a Intel NUC

    Home Assistant OS on a Intel NUC My D.I.Y. i3 board running Ubuntu 18 and Docker with Supervised HA for a long became unsupported, and in unhealthy state according to Hass.io, so I was looking at a Intel NUC to test running Home Assistant OS with add-ons only. And possibly create a add-on or two if needed. Hardware Browsing the web at Black Friday I came across this NUC on sale rather cheap. So I bought the following for around 300 Euro: - Intel NUC Kit NUC8i3BEK i3-8109U - SSD 1TB WD Blue M.2 - Lexar 16GB 2666MHz RAM Mount
  • Control Home Assistant devices with KNX group addresses

    Control Home Assistant devices with KNX group addresses Had to look up some posts before I got it working, so this is a note to myself. First you need to allow the KNX Group Addresses you want to trigger on to hit Home Assistants event bus, in this example 0/0/1. knx: fire_event: true fire_event_filter: ["0/0/1"] Correction: 'fire_event' is deprecated. This is the correct syntax: knx: event_filter: ["0/0/1", "1/0/13"] After a restart you can check if the GA is visible on the bus when triggered, open HA's developer menu, events, and ty
  • JUNG KNX multi station

    JUNG KNX multi station Art. No. 23066REGHE I bought a few of these modules some time ago, they were used for a short period in holiday homes and replaced by another non KNX solution. Recently I had some time to look at them in detail, configure them with ETS5 and test their functionality. 'Multi' doesn't only tell something about the functionality, the product documentation is 489 pages long and it has more than 100 group objects to assign! Product info Possible use cases: * Switching of electrical loads with f
  • Gira Home Server 4 on Fujitsu S720

    Gira Home Server 4 on Fujitsu S720 IMPORTANT NOTE: This setup is pure for testing/HSL development/knowledge gathering only, don't use this in production environment or for replacement of the Home Server hardware. I'm not responsable for any possible damages! For plugin development and to check out version 4.11 I bought a refurbished Fujitsu Futro S720 thin client. S720 mini-pc It contains a D3313-B13 GS 1 motherboard with a 2GB memory module and a 2GB mSATA 3SE from innodisk for disk storage, no fan, so as quiet as possible.
  • GitHub MFA on Ubuntu CLI

    GitHub MFA on Ubuntu CLI Install and compile the Gnome Keyring development $ sudo apt-get install libgnome-keyring-dev $ sudo make --directory=/usr/share/doc/git/contrib/credential/gnome-keyring $ git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
  • KNX with a power-line IP backbone

    KNX with a power-line IP backbone Like I wrote here I wanted to see if I could connect my Shed with KNX via power-line since I have no means of getting the KNX data bus there, and KNX RF doesn't support extending a line over KNX RF. (Yet, I don't know what ETS6 brings) I could have done all with KNX-RF(+) devices, but there are no KNX RF weather stations. So I started to created a test installation, also for enhancing my practical KNX knowledge about bus types. I knew I needed to replace my IP gateway with two IP routers, so
  • Online KNX Resources

    Online KNX Resources Forums Belgian KNX Forum German KNX Forum Dutch Tweakers KNX Topics Personal KNX Blogs Smartest Home (German) Zilverlindeblog (Dutch) Official Sites KNX Website MyKNX Website Commercial Sites KNXtoday Website Manufacturer Support Sites ABB SIEMENS GIRA Weinzierl MDT Domoticom Theben Arcus-eds
  • Updating an GIRA 2167 00 IP Router

    Updating an GIRA 2167 00 IP Router I bought a second hand IP router to replace my IP interface, I'm trying to setup a IP backbone so I can extend my KNX network to the Shed via power-line modules. A second IP router is underway shortly. The one I have now is an Index 04 version, "2167 00 I04" I originally wanted a I14 so I could experiment with Secure KNX, but I don't need it since the power-line modules encrypt the data as well. And new devices are almost double the price. The one I received contained firmware version 2.0.134,
  • My KNX RF experiences so far

    My KNX RF experiences so far I have some sections in my house where it's impossible to get the green lifeline aka the KNX Cable to reach. So I started to investigate the possibility of using KNX RF for those locations. Since it's rather new (in KNX terms) there are already several types of KNX RF, I needed to find out what works together and note it down. Standards KNX RF, KNX RF Ready, KNX Multi, KNX RF+, mostly backwards compatible. KNX RF For retro-fit/residential, works standalone or with other media, repeater func
  • KISSLora Sensors

    KISSLora Sensors Steps to get it going: * Install Arduino IDE * Install SparkFun AVR drivers * Install The Things Network and SoftPWM libraries * Define device on TTN Console * Get Id's Some handy links: * Github repository with all kinds of information. * The schematic of the thingy. * TheThingsNetwork user forum. * Help to build the community. On board you will find: * U5: Microchip RN2483 Low-Power Long Range LoRa™ Technology Transceiver Module. * U1: ATmega32u4 8-bit Microcontroller with 32
  • Home Assistant Database Maintenance

    Home Assistant Database Maintenance Some commands to investigate and cleanup my Home Assistant database. I'm using MariaDB in docker, open a docker cli on homeassistant docker image (using Portainer for example) bash-5.0# mysql homeassistant Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 38 Server version: 10.4.13-MariaDB MariaDB Server Copyright (c) 2000,
  • Configuring Beagle Bone Black Cape KNX 1-Wire on Debian 10

    Configuring Beagle Bone Black Cape KNX 1-Wire on Debian 10 Setup image and install tools for building your a KNX IP interface for ETS5 and 1-wire support. Install Debian 10 Download and flash below image to a 2GB micro-SD card. https://rcn-ee.net/rootfs/2020-04-09/flasher/bone-eMMC-flasher-debian-10.3-console-armhf-2020-04-09-2gb.img.xz Now that you have the latest image of Angstrom loaded onto your micro-SD card slot, you'll need to flash it onto the on-board flash memory of the BeagleBone Black. To start, make sure the BeagleBone Black is po
  • SIEMENS 5WG1 260-1AB01 Binary Inputs

    SIEMENS 5WG1 260-1AB01 Binary Inputs I needed binary inputs which could handle 230 Volt and simply have the option to send On, Off or Toggle to a Group Address using standard light switches with rocker-  and push switches. (for a good user experience) I came across a batch of old SIEMENS N260 4-fold binary inputs, for 10 Euro each, so I bought them, Just before placing the order I noticed that they have no KNX connector but use a data-rail connection, upon request I got a free piece of data-rail (5WG1190-8AB03) with it. Problem
  • KNX Basic Training

    KNX Basic Training A month ago I came across an online E-learning Basic Course KNX from GlobalVizion, which was discounted because of the COVID pandemic. I bought it and finished it a few weeks later, it's a theoretical part and a practical part. The course concludes with a theoretical test. After passing the test (with at least a mark of 7), you will automatically receive a one-time certificate of participation. You can obtain the KNX certificate and be enrolled as a partner in the KNX Association KNX, after tak
  • Invert Window Sensor state for ABB EnOcean Gateway

    Invert Window Sensor state for ABB EnOcean Gateway I use a ABB EnOcean EG/A32.2.1 EnOcean to KNX Gateway, a wonderful device, but I ran into an issue where a Eltako FTKE door window sensor (F6-10-00) reported 0 - Close; 1 - Open And an STM 250 window sensor (D5-00-01) reports 1 = Closed; 0 -  Open. So Home Assistant sees Window Open when magnet contact closed and visa versa. Not wanting to fiddle with Home Assistant code this time, but it turns out that after pairing the EnOcean contact you get two status_contacts, one enabled and one disabled
  • 'All On/Off' only switch Off for KNX Central Group Address

    'All On/Off' only switch Off for KNX Central Group Address I had an issue where i have an All On/Off Central group address in KNX but I didn't want to be able to do a Switch On All for a switch from Home Assistant. I came up with a template switch like this: knx: switch: - name: 'Alles Uit/Aan' address: '0/0/1' switch: - platform: template switches: alles_uit: friendly_name: "Alles Uit" value_template: "{{ is_state('switch.alles_uit_aan', 'off') }}" turn_on: service: switch.turn_off d
  • HUAWEI MateBook 14 2020 AMD Ryzen R5 4600H 16GB/512GB NVMe

    HUAWEI MateBook 14 2020 AMD Ryzen R5 4600H 16GB/512GB NVMe I couldn't wait any longer for the bare-bone AMD's to become available again in the Netherlands and wanted a modern, small laptop with more then the standard FHD resolution, 16GB Memory and 512GB SSD and AMD Ryzen below the €1000 range. Specs: 14" Format Ryzen 5 4600H 16GB memory 512GB Western Digital PC SN730 NVMe™ SSD 2K Display 3:2 (2160x1440 resolution) Touchscreen NFC Fingerprint reader 65W USB-C 307.5 mm x 223.8 mm x 15.9 mm 1.49 kg Came with Chinese Windows 10 Home, but I
  • Updating rooted Toon 5.28.6

    Updating rooted Toon 5.28.6 Login to Toon: $ ssh -c aes128-cbc -oKexAlgorithms=+diffie-hellman-group1-sha1 root@192.168.x.y Download script to your Toon: $curl -Nks https://raw.githubusercontent.com/ToonSoftwareCollective/update-rooted/master/update-rooted.sh -o /root/update-rooted.sh Then run the script with: $sh /root/update-rooted.sh Resources: ToonSoftwareCollective/update-rootedUpgrade a rooted toon using original sources. Contribute to ToonSoftwareCollective/update-rooted development by creating an account on
  • Examining AVM FRITZ!Box firmware

    Examining AVM FRITZ!Box firmware Some steps too take a closer look to AVM's firmware $ mkdir ~/Firmware; cd ~/Firmware $ wget https://download.avm.de/fritzbox/fritzbox-7590/other/fritz.os/FRITZ.Box_7590-07.13.image $ sudo apt install binwalk $ ls FRITZ.Box_7590-07.13.image $ binwalk --signature --term FRITZ.Box_7590-07.13.image DECIMAL HEXADECIMAL DESCRIPTION -------------------------------------------------------------------------------- 0 0x0 POSIX tar archive (GNU) $ tar xvf FRITZ.Box
  • Enable Google Authenticator 2FA for SSH

    Enable Google Authenticator 2FA for SSH Ubuntu: $ sudo apt-get install libpam-google-authenticator Debian: $ sudo apt-get install libqrencode3 $ wget http://ftp.us.debian.org/debian/pool/main/g/google-authenticator/libpam-google-authenticator_20191231-1_amd64.deb $ sudo dpkg -i libpam-google-authenticator_20191231-1_amd64.deb Configure: $ google-authenticator $ sudo vi /etc/pam.d/sshd Add to the bottom: auth required pam_google_authenticator.so $ sudo vi /etc/ssh/sshd_config Set ChallengeResponseAuthentication yes $ sudo /etc/
  • email and domain security

    email and domain security About SPF, DMARC and DNSSEC DMARC: Create a 14 Day trial account at https://dmarcian. Setup and get unique email addresses, create a DMARC TXT record: _dmarc.cyberjunky.nl v=DMARC1; p=reject; rua=mailto:ci2xsqr1@ag.dmarcian.com; ruf=mailto:ci2xsqr1@fr.dmarcian.com; https://dmarcian.com/dmarc-inspector/?domain=cyberjunky.nl SPF: To check send an email from the domain you want to test to check-auth@verifier.port25.com Create a SPF TXT record (hosted by Google's gmail): v=spf1 include:_spf
  • Misc Linux tips and tricks

    Misc Linux tips and tricks R Studio Data Recovery doesn't start with: /usr/local/R-Studio/bin/R-Studio: error while loading shared libraries: librs_linux_r.so: cannot open shared object file: No such file or directory $ sudo vi /etc/ld.so.conf.d/rstudio.conf /usr/local/R-Studio/lib Change words in multiple docs: $ grep -rl 'Tcphost' ./ | sudo xargs sed -i 's/Tcphost/TCP Host/g' $ grep -rl 'Tcpport' ./ | sudo xargs sed -i 's/Tcpport/TCP Port/g' Mount a VDI disk image: $ sudo modprobe nbd max_part=16 $ sudo qemu-nbd -c
  • Geigercounter with ESPHome

    Geigercounter with ESPHome I had this Geiger counter DIY Kit for Arduino laying around for a long time and decided to connect it to my Home Assistant installation using ESPHome. I'm using a Wemos D1 mini, even though the counter works at 5V and the IO pins accept a max. voltage of 3.2V it works and hasn't damage the input. (disclaimer) Connect the pins as follows: Wemos D1 Geigercounter GND GND 5V 5V D2 (GPIO4) INT esphome: name: platform: ESP8266 board: esp01_1m wifi: ssid: "
  • Reflashing my LG Chromebase back to ChromeOS

    Reflashing my LG Chromebase back to ChromeOS With a lot of effort (back then when not much was known) I flashed my LG Chromebase (22CV241) to use Coreboot and installed Ubuntu 14.04 LTS on it. For a while I wanted to reinstalled ChromeOS since I used it for email and viewing YouTube/Twitch only. But since I didn't saved the original BIOS file I couldn't. Until I came across mrchromebox's script which appeared to download the BIOS from the web, and low and behold it worked. These are the steps. Since I already ran Ubuntu on it, I could
  • Using LSC Smart Connect's Power Plug with ESPHome

    Using LSC Smart Connect's Power Plug with ESPHome In this post I describe the steps needed to prepare a LSC Smart Connect power plug -sold by Action- for use with Home Assistant/ESPHome. I simply gathered instructions I found on the web. You need to be able to solder thin copper wires on the Smart Plug's circuit board. All steps are at your own risk! 1. Open the plug by undoing the two small screws at the bottom. There are two internal plastic clips on the opposite side. You now see the small ESP board standing upright, this is the TYWE3L mo
  • Using Shotwell to manage photos on share

    Using Shotwell to manage photos on share Shotwell cannot cope with auto-mounted shares made by files/nautilus on Ubuntu. You get "hardware errors" while importing (in place) You can circumvent this by mounting the share using CLI tools, like described here: https://cyberjunky.nl/mount-sambas-share-on-ubuntu/
  • Mount Samba share on Ubuntu

    $ sudo apt install cifs-utils $ sudo mkdir /mnt/ $ sudo mount -t cifs -o user= /// /mnt/
  • Compile package for Alpine Linux

    Compile package for Alpine Linux Install Alpine Linux inside Virtual Box using this image, assign to DVD device, set network adapter to bridged, boot it, and login with root Then start the setup script # setup-alpine Walk through script: Keyboard layout: us Keyboard variants: us Networking eth0, bridge, dhcp Root password Timezone: Europe/Amsterdam HTTP/FTP, proxy none [enter] NTP client: chrony [enter] Mirror: f (fastest) SSH server: openssh [enter] Disk(s): sda, how: sys, continue: y Shutdown live cd using poweroff comma
  • Updating rooted Toon 5.9.6

    Updating rooted Toon 5.9.6 Excerpt of latest Toon update. # cd /root Get correct resource files: # wget http://qutility.nl/resourcefiles/resources-qb2-5.9.6.zip --2019-08-15 15:34:37-- http://qutility.nl/resourcefiles/resources-qb2-5.9.6.zip Resolving qutility.nl... 54.38.183.159 Connecting to qutility.nl|54.38.183.159|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2796681 (2.7M) [application/zip] Saving to: `resources-qb2-5.9.6.zip' 100%[======================================================
  • ZeroTier One SDN from the cloud

    ZeroTier One SDN from the cloud I never heard of ZeroTier One until Frenck created a Hass.io Add-on for it. To start using it, first create a free ZeroTier One account and create a network to get the network-id needed for the add-on settings, then install the add-on, fill in the network-id and start it. Check log for succesful startup. It should show up as connected device in the network settings. Authorise the connected device, and install the ZeroTier One client on the computer from which you want to connect to the home ne
  • Updating rooted Toon 5.2.11

    Updating rooted Toon 5.2.11 My notes so I don't need to find them every time my TOON gets an update # cd /root # wget http://qutility.nl/resourcefiles/resources-qb2-5.2.11.zip # unzip resources-qb2-5.2.11.zip Archive: resources-qb2-5.2.11.zip inflating: resources-static-base.rcc inflating: resources-static-ebl.rcc # find . -name *.rcc ./qmf/qml/resources-static-ebl.rcc ./qmf/qml/resources.rcc ./qmf/qml/drawables-base.rcc ./qmf/qml/drawables-ebl.rcc ./qmf/qml/resources-static-base.rcc ./qmf/qml/drawables.rcc # cp /r
  • Installing Debian 9 image for Beagle Bone Black Cape KNX 1-Wire

    Installing Debian 9 image for Beagle Bone Black Cape KNX 1-Wire Installation commands and log for building your own image with KNX and 1-wire support. Install and configure the 1-wire daemon # Download base image: https://rcn-ee.net/rootfs/2018-09-11/flasher/BBB-eMMC-flasher-debian-9.5-console-armhf-2018-09-11-2gb.img.xz # Write to 2GB micro sd card https://learn.adafruit.com/beaglebone-black-installing-operating-systems/flashing-the-beaglebone-black # Look for bbgw's IP address in DHCP and login using SSH ssh 192.168.178.122 User: debian Password: t
  • Renumbering static IP address of ESPHome node

    Renumbering static IP address of ESPHome node I had my network IP address range renamed because of an ISP change, and forgot to change the static IP's of my ESPHome nodes before the switch. These are the steps to re-program them using the same server. First change the static IP address settings in the node's config, and add another field with the old IP address called 'use_address' wifi: ssid: !secret wifi_ssid password: !secret wifi_password use_address: 192.168.178.112 manual_ip: static_ip: 192.168.2.112 gateway: 192.1
  • Create a Self-Signed Certificate on MikroTik

    Create a Self-Signed Certificate on MikroTik /certificate add name=SSL common-name=SSL key-size=2048 /certificate create-certificate-request template=SSL key-passphrase=mypassword123 Copy these files (via files download) from your MikroTik to a Linux system: certificate-request.pem certificate-request_key.pem On the Linux server navigate to the folder where the files are located via terminal openssl rsa -in certificate-request_key.pem -text > certificate-request2.pem openssl x509 -req -days 9999 -in certificate-request.pem -signkey cer
  • Push TOON P1 data to DSMR Reader

    Push TOON P1 data to DSMR Reader I wanted to see what DSMR reader can tell from my power and gas usage over time, and also to get an insight in the costs. This until I have build a dashboard with the same functionality with Grafana. But I have no P1 reader other than TOON's meteradapter which data I already read via http for Home Assistant and PVOutput. I could Home Assistant push data to DSMR, but instead to safe time I created a small Python script which I call every 10 seconds. Install dsmr-docker via docker-compose.yml by
  • Docker Monitor sensor for Home Assistant

    Docker Monitor sensor for Home Assistant Found an interesting custom component sensor called docker_monitor.py here. But since I use Hass.io it couldn't open docker's UNIX socket, this post describes how to enable and use the TCP based API instead. Copy docker_monitor.py to your custom_components/sensor directory, create a sensor in your home assistant config like so, and define the containers you want to monitor. - platform: docker_monitor host: tcp://192.168.179.10:2375 containers: - homeassistant - hassio_sup
  • ESPHome revised AKA native API

    ESPHome revised AKA native API ESPhomeyaml was already a great add-on for Home Assistant, you could program, compile and flash an ESP node just from your browser. And if you wanted to update it, you just compiled it again and used OTA flashing, auto-reboot node and up again. It uses MQTT to communicate with Home Assistant. Point was I only ran MQTT broker for that purpose, all other devices were connected via another binding. So it was nice to see that ESPhomeyaml version 1.10.0 (now called ESPHome btw) now has it's own nati
  • Omnik Inverter serial sensor for Home Assistant

    Omnik Inverter serial sensor for Home Assistant For a long time I wanted to disconnect my Omnik Inverter from my WiFi network and stop uploading it's data to the Omnik portal https://www.omnikportal.com/ The Omnik inverter also couldn't connect to the Meraki AP I have, it showed an empty SSID for the MAC addresses, (it probably didn't understand the multiple SSID broadcast-ed from one AP) so I had to enable a separate Wifi network via my FRITZ!Box just to get it connected. And I also queried the Omnik for it's data using Omnik-Stats-Logger (
  • Home Assistant Custom Components

    Home Assistant Custom Components You can find my custom components here: https://github.com/cyberjunky/home-assistant-custom-components
  • Virtualbox PCI Passthrough Notes

    Virtualbox PCI Passthrough Notes Some notes regarding exposing a PCI card inside a Virtualbox VM Determine PCI ID on host: vbox@vbox:~$ lspci|grep Ethernet 01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03) Determine name VM: vbox@vbox:~$ VBoxManage list runningvms "node-server" {881f529e-5876-4f95-8784-ec7d8d8c8bf4} Inside VM, take note of used ID's: user@node-s
  • Virtualbox Admin

    I run several machines on top of Virtual Box on Debian (headless). Here some notes I made... Install latest version from virtualbox site The one in Ubuntu's repo is old $ sudo vi /etc/apt/sources.list add this line: deb http://download.virtualbox.org/virtualbox/debian trusty contrib $ wget -q http://download.virtualbox.org/virtualbox/debian/oracle\_vbox.asc -O- | sudo apt-key add - $ sudo apt-get update $ sudo apt-get install virtualbox-4.3 Updates Bef
  • Using cadaver to download files from webDAV

    My Ubuntu installation refuses to mount a particular webdave share. Using a share and GUI browser is for Windows users anyway. So I used cadaver instead! $ sudo apt-get cadaver Connect to your webdav share $ cadaver http://webdav.server.com Enter your credentials. Now you can use the following commands to interact with WebDav and your local machine: ls – Show a list of files available in the current directory. cd – Go to the specified directory. get – Download the spe
  • Ubuntu YouTube Player

    Was looking for a tool to backup some movies from YouTube to local disk. Found Minitube, it appears to be an excellent player too. $ sudo apt-get install minitube Just install and start it, search for a keyword and it plays! Click on the down arrow to save the selected movie.
  • T962 reflow oven enhancements

    T962 reflow oven enhancements Some links how to make your cheap reflow oven better, my todo list… Flash better firmware https://github.com/UnifiedEngineering/T-962-improvements/wiki Add DS18B20 http://hackaday.com/2014/11/27/Improving-the-t-962-reflow-oven/ https://github.com/UnifiedEngineering/T-962-improvements/wiki Replace tape to prevent smell: http://www.instructables.com/id/T962A-SMD-Reflow-Oven-FixHack/?ALLSTEPS PWM Mod: Not recommended for smaller T962! https://github.com/UnifiedEngineering/
  • SkypeFreak - A Cross-Platform Skype Forensic tool - InfoSec Institute

    http://resources.infosecinstitute.com/skypefreak-cross-platform-skype-forensic-tool/
  • RPi-Monitor - Pi Store

    http://store.raspberrypi.com/projects/rpi-monitor
  • Repair a non booting GRUB installation

    Today I had to fix two issues with my computer not booting through grub bootloader. One of the reasons was a failed installation of Ubuntu due to using an USB stick with a corrupt image on it. A little Google query found a page with info about boot-repair, describing a great tool to fix grub boot problems. I used the 2nd option, simply boot into a live Ubuntu installation and run these two commands. Then follow the steps given. https://help.ubuntu.com/community/Boot-Repair $ su
  • Removed unneeded files installed with Razberry software

    Steps on how to remove Razberry bloated/unneeded files: Cloud connect stuff: # /etc/init.d/zbw_connect stop # rm -rf /etc/zbw # rm -rf /var/webif Mongoose: # /etc/init.d/mongoose stop # rm /etc/init.d/mongoose # rm -rf /etc/mongoose # rm /usr/sbin/mongoose
  • Open Source Humanoid Robot Is Awesom-o

  • Open MS .URL shortcuts on Ubuntu

    We need to create a wrapper script and associate the file type with it. $ sudo vi /usr/bin/open-url.sh #!/bin/sh # opens Windows .URL files in your default browser # requires: xdg-open sed grep xargs sed 's/^BASEURL=/URL=/' "$1" | grep -m 1 '^URL=' | sed 's/^URL=//' | sed 's/\r//' | xargs xdg-open $ sudo chmod +x /usr/bin/open-url.sh Now we can associate .URL files with the script. This might be the hard part. $ cp /usr/share/applications/chromium-browser.desktop ~/.local/share/appli
  • OCZ Vertex 2 SSD R.I.P.

    I'm the proud owner of a dead OCZ Vertex 2 SSD. It was working for more than 1,5 years in a Ubuntu server without any problem. An after a reboot/power cycle last week it died. The green LED goes on and stays on, no red LED blinking once, like an other working Vertex drive does. When trying to boot from it the BIOS tries to detect it for a more than a minute. And fails with the message: Auto-Detecting AHCI Port 1.. ... Auto-Detecting AHCI Port 4.. dmesg in Ubuntu is tel
  • OCZ Vertex 2 serial port diagnostics

    Found my dead OCZ SSD drive again and connected it to the serial port of my Ubuntu desktop. This is what I get upon startup when i connect to it at 115200 Baud CLI> PINRST *** ROM 106 Mar 12 2009 20:29:35 *** FW_SRC 0 SHA PASS! *** EEPROM 207 Jan 3 2011 18:36:43 BuildServer:FW_Common_Critical_Fixes:P1_EEPROM_2_0_7_drop-290232 *** Hynix Timing EPch *** Patch 1.4.1 Apr 8 2011 00:55:09 BuildServer:P1_3_6_1_MP4_Patch1_20110408:P1_3_6_1_MP4_Patch1_20110408-305073 ***
  • Monitoring your Gas Consumption with a JeeNode and a nRF24L01+

    http://hackaday.com/2014/03/23/monitoring-your-gas-consumption-with-a-jeenode-and-a-nrf24l01/
  • Migrate a Redmine site to another server

    On current server: # service apache2 stop # cd /opt/redmine/files # scp -r * root@:/opt/redmine/files Make MySQL backup # mysqldump -u root -p redmine >/root/dump.sql # scp /root/dump.sql root@1:/root On new server: # cd /opt/redmine/files # chown -R www-data:www-data * Delete test database (is needed) and reload new database # mysqladmin -u root -p drop redmine # mysqladmin -u root -p create redmine # mysql -u root -p redmine Reload/m
  • Install Silverlight on Ubuntu 14.04

    Ok, sometimes you can't go around a Microsoft product because a crappy site is written in Silverlight and you can't go without it. These steps install a modified version of Wine and configure it so that the site which I needed. Software called Magister used on a School website to monitor childrens progress worked oke for me on Ubuntu 14.04 $ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:pipelight/stable $ sudo apt-get update $ sudo apt-get install p
  • Installing ARCH Linux

    In my quest to find a modern Linux distribution which could run both Gambas2 and Gambas3 I stumbled upon ARCH Linux. It's not a distribution for the Linux novice, but once you succeed in installing it it gives you a very fast and minimal installation! After a while I decided to go back to Ubuntu 12.04 LTS and only use Gambas3 on it. But I made a tutorial, and this is a nice place to archive it. You can find it here. Installing ARCHLinux Make sure you write the ISO to USB stick with a
  • Install Flash player inside Chromium on Ubuntu 14.04

    Chromium on Ubuntu 14.04 doesn't use Netscape plugin API anymore, it simply not there. The Chrome browser has support for Flash, so the following steps download Chrome, extract it's Flashplayer and install it for Chromium. You need to reboot your computer after installing to activate it, or kill all running chromium-browser processes. We need to install the Pepper Flash player installer. $ sudo apt-get install pepperflashplugin-nonfree $ sudo update-pepperflashplugin-nonfree --ins
  • Howto fix a bricked Nexus 7 tablet (2013 WiFi edition)

    Make sure you have latest SDK platform tools installed and have downloaded and unpack correct image fot your tablet. These proceed with these steps: ron@ron-ubuntu:~/Android/Sdk/platform-tools$ ./fastboot devices 08554881 fastboot ron@ron-ubuntu:~/Android/Sdk/platform-tools$ ./fastboot erase boot erasing 'boot'... OKAY [ 0.034s] finished. total time: 0.034s ron@ron-ubuntu:~/Android/Sdk/platform-tools$ ./fastboot erase cache ******** Did you mean to fastb
  • How to convert FLAC files to MP3 when running Ubuntu

    $ sudo apt-get install flac lame $ for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done
  • Gambas 3 - did you know #1

    If you use TODO: in a comment, it will be listed in the IDE as a task, very handy!
  • Fix SSD Trim on Ubuntu 14.04 LTS

    In Ubuntu 14.04 LTS SSD Trim is enabled by default. That's nice and all, so I thought, nothing to do here but I found out it doesn't work when you use LUKS crypt partitions, it's a bug. Here the steps to fix it, please make backups of important files before doing this!! Note it only runs on Intel and Samsung SSD drives, see bottom of page why. First check if you have the same problems as me: $ sudo fstrim / fstrim: /: FITRIM ioctl failed: Inappropriate ioctl for device Check what d
  • Dweezil Zappa plays Frank Zappa

  • Dissecting the AirPort Express | Embedded Ideation

    Link: http://embeddedideation.com/2014/03/dissecting-the-airport-express/
  • Cubieboard 2

    My Cubieboard2 server is running fine for Months now!
  • Cleanup Redmine users

    Startup MySQL tool # mysql -u root -p redmine Maybe first use below queries with SELECT to see what matches there are, before running with DELETE. These will show records with state register from 7 days or older. DELETE FROM tokens WHERE action='register' and created_on < now() - INTERVAL 7 DAY; DELETE FROM users WHERE status=2 and created_on < now() - INTERVAL 7 DAY; DELETE FROM tokens WHERE action='register'; DELETE FROM users WHERE status=2;
  • Change Color Gamma on Ubuntu

    Install xgamma-gui: $ git clone https://github.com/dfc643/xgamma-gui.git $ cd xgamma-gui Add to Makefile: CONFIG += qt QT += gui $ qmake && make && make install $ ./XgammaGui
  • Arduino Yún - The Best Hacks You Will Ever See

    Link: http://www.open-electronics.org/arduino-yun-the-best-hacks-you-will-ever-see/
  • Force Chromecast to update it's firmware

    I noticed that some of my Google Chromecasts were on an older firmware version. You can force a reboot and update with this command: (insert own IP address) $ curl -X POST -H "Content-Type: application/json" -d '{"params": "ota foreground"}' http://:8008/setup/reboot -v Note: Unnecessary use of -X or --request, POST is already inferred. * Trying ... * TCP_NODELAY set * Connected to (192.168.178.113) port 8008 (#0) > POST /setup/reboot HTTP/1.1 > Host: :80