sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager
nmcli -p connection show
sudo nmcli con mod ‘Wired connection 1’ ipv4.addresses 192.168.2.109/24 ipv4.method manual
sudo nmcli con mod ‘Wired connection 1’ ipv4.gateway 192.168.2.254
sudo reboot
Author: wplaat
PlaatDomitica 1.4.0
PlaatSoft has released a new version of PlaatDomotica.
Version 1.4.0 (04-11-2023)
- Upgrade Spring Core to 2.7.17
- Upgrade JSON library to 20230227
- Upgrade Tomcat to 9.0.82
More information click here
Nice docker containers
ActiveMQ artemis v2.31.0
Docker container name: apache/activemq-artemis
Name: Artemis
CONSOLE Port 8161
OPENWIRE Port 61616
———–
Postgres 16
Docker container name: postgis/postgis
Name: Postgres
Database Port: 5432
Variable 1: POSTGRES_PASSWORD=admin
Variable 2: POSTGRES_HOST_AUTH_METHOD=trust
Access docker console and enter “psql -U postgres -W” to access the commandline of postgres
PlaatDomotica 1.3.0
PlaatSoft has released a new version of PlaatDomotica.
Version 1.3.0 (10-04-2023)
– Upgrade Spring Core to 2.7.10
– Upgrade Hibernate to 5.6.15
– Upgrade Embedded Tomcat App. Server to 9.0.73
– Added energy summary table
– Added automatic data sync with PlaatEnergy
– Added gas month page + drill in feature
– Added electricity month page + drill in feature
– Added solar month page + drill in feature
– Move home reports to Report page
More information click here
PlaatDomotica 1.2.0
PlaatSoft has released a new version of PlaatDomotica.
Version 1.2.0 (11-02-2023)
– Second maintenance release
– Added hover button effect
– Disable text select with mouse
– Fix login button not responding issue
– Application activated on third location 🙂
– Reduce log events to file log
More information click here
PlaatDomotica 1.1.0
PlaatSoft has released a new version of PlaatDomotica.
Version 1.1.0 (27-01-2023)
– First maintenance release
– Added custom login page
– Added background image
– Improve performance of energy and gas page
– Improve motion page (now resolution is seconds)
– Improve new version detection
– Improve solar page when there is no data
– Added bplaat native android look feature
More information click here
PlaatDomotica 1.0.0
PlaatSoft has released a new version of PlaatDomotica.
Version 1.0.0 (21-01-2023)
– First version for mass market
– Now all buttons have an icon
– Improve chart navigation + chart subtitle
– Added air quality sensor + air quality page
– Added bplaat styling changes
– Improve database cleanup job
– Added actor overview page
– Added sensor overview page
– Improve data model
More information click here
PlaatDomotica v0.9.0
PlaatSoft has released a new version of PlaatDomotica.
Version 0.9.0 (13-01-2023)
– Added cloud density page
– Alarm trigger event sent now email
– Alarm trigger event is now logged
– Bulb on/off event is now logged
– Resync event is now logged
– Login event is now logged
– Added alarm rule page
– Added alarm event page
– Added alarm bulb page
– Improve data model
More information click here
PlaatDomotica v0.8.0
PlaatSoft has released a new version of PlaatDomotica.
Version 0.8.0 (08-01-2023)
– Added toolkit popups to explain in app features
– Added resync feature with Hue base station configuration
– Added automation page
– Refactor java source code for better maintenance
– Improve solar page (performance)
– Improve gas page (performance)
– Improve electricity page (performance)
– Improve utility report
– Added energySensor
– Improve data model
More information click here
PlaatDomotica v0.7.0
PlaatSoft has released a new version of PlaatDomotica.
Version 0.7.0 (05-01-2023)
– Fix some security issues (URL fishing)
– Improve error page
– Reduce code duplication in html pages
– Added (override) properties file
– Improve page titles
– Home buttons are now visible depending on active sensors
– Added version sensor (Check for new version)
– Added current temperature report
– Added current solar report
– Improve error handling of sensors
More information click here
PlaatDomotica v0.6.0
PlaatSoft has released a new version of PlaatDomotica.
Version 0.6.0 (03-01-2023)
– Delete action needs now confirmation
– Improve role base access
– Now sensor can support multiple measureTypes
– Move settings to sensor and actor pages
– Improve data model
– Added actor pages
– Added email actor module
– Added database actor module
– Added portal actor module
More information click here
PlaatDomitica v0.5.0
PlaatSoft has released a new version of PlaatDomotica.
Version 0.5.0 (01-01-2023)
– Added button icons
– Added motion sensor report to home page
– Fix: Utility charts use now correct timezone
– Fix: Changing sensor setting, doesn’t stop polling anymore
– Added source code to GitHub
More information click here
KerkInGouda Android app v1.3.0
PlaatSoft has released a new version of the KerkinGouda Android App in the Google Play Store.
The following change was made:
– Adding missing app icon
Click here to download the latest version.
PlaatDomitica v0.4.0
PlaatSoft has released a new version of PlaatDomotica.
Version 0.4.0 (29-12-2022)
– Added Solar page
– Added Hosola Solar sensor module
– Added Email sensor (inform admin when IP address change)
– Added Dutch language support
– Added sensor frequency property
– Added sensor enable property
– Enabled persistence H2 database
– Added website icon
– Improve GUI for mobile use
More information click here
PlaatDomotica v0.3.0
PlaatSoft has released the new version of PlaatDomotica.
Version 0.3.0 (26-12-2022)
– First beta for public us
– Improve page navigation
– Added H2 Sensor (Cleanup database)
– Improve Home page
– Added Donate page
– Added Login page
– Added Logout page
– Added OAuth2 authenication logic
– Improve sensor data storage logic
– Added Setting Management pages
More information click here
PlaatDomotica v0.2.0
PlaatSoft has released the new version of PlaatDomotica.
Version 0.2.0 (21-12-2022)
– Added basic role base access feature
– Improve Home page
– Added Luminance page
– Added Pressure page
– Added Huminity page
– Added WindSpeed page
– Added Battery page
– Added Temperature page
– Added Sensor Management pages
– Added Error page
– Added Weather sensor module
– Added HUE motion sensor module
More information click here
PlaatDomotica v0.1.0
PlaatSoft has released an early draft version of PlaatDomotica.
Version 0.1.0 (18-12-2022)
– Initial version
– Added english language support
– Added Motion page
– Added Energy page
– Added User Management pages
– Added About page
– Added Release Notes page
– Added Home page
– Created basic CSS template
More information click here
Install Jenkins (Docker Image) on Raspberry Pi
# Get Docker image
docker pull jenkins/jenkins:jdk11
# Start Docker image
docker run -d -p 8080:8080 jenkins/jenkins
# Get Portal Access key
docker exec -it
Install Sonar on Raspberry Pi
# Get GIT
sudo apt-get install git
# Get GIT repo
git clone https://github.com/SonarSource/docker-sonarqube.git
cd docker-sonarqube/9/community
# Build docker image
docker build -t sonarqube-custom .
# Start docker image
docker run -d -p 9000:9000 sonarqube-custom
# Remove container
docker rm sonarqube-custom
Install docker on Raspberry Pi
Step 1: Update debian
sudo apt-get update
sudo apt-get upgrade
Step 2: Install docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Step 3: create docker group / user
sudo usermod -aG docker pi
Step 4: Final check
sudo docker version
KerkinGouda Android App v1.2.0
PlaatSoft has released a new version of the KerkinGouda Android App in the Google Play Store.
Many thanks leonard for building this new version during your trainee ship – You Rock!
The following changes were made:
– Added support for pdf content
– Added support for email content
– Added support for phone content
Click here to download the latest version.
PlaatService v0.51
Today i released the next version of PlaatService
The following changes were made:
– Upgraded all underlaying java dependencies
– Upgraded table names else unittests did not run on H2 in memory database
– Change HTTP port to 8082
– Rollout new version on Raspberry Pi farm
Raspberry Pi Farm upgrade
Today i have upgraded my Raspberry Pi farm:
– Upgrade OS (bullseye) to latest version
– Created wildcard *.plaatsoft.nl HTTP certificate
– Added HaProxy software load balancer (disable Apache reverse proxy)
– Now load balancer is taking care of the HTTPS offloading
– Now load balancer route HTTP traffic to correct apache node
– Upgrade WordPress to v6.0.2 and wordpress plugins
Letsencrypt wildcard certificate
To enable a Letsencrypt wildcard certificate do the following steps
Create NEW wildcard certificate
1. Stop Apache or HaProxy
2. Run following certbot command to create a wildcard certificate
sudo certbot certonly -d '*.plaatsoft.nl' --manual
3. Certbot will ask you to add an extra DNS entry (TXT) with a unique token
Add this record in your DNS
4. Check with dig tool if DNS record is available (This can take some time)
sudo dig _acme-challenge.plaatsoft.nl TXT
5. Press "enter". Then wildcard certifate is created
6. Add new certificate to Apache or HaProxy.
7. Remove DNS TXT record (Updating it does not work, is my experience)
8. Done
keepalived service
How the setup Virtual IP addres over two rapberry Pi nodes
pi6 192.168.2.106
pi7 192.168.2.107pi6
sudo apt-get install keepalivedsudo vi /etc/keepalived/keepalived.conf
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 255
advert_int 5
virtual_ipaddress {
192.168.2.200/32
}
notify /usr/local/bin/keepalivednotify.sh
}vi /usr/local/bin/keepalivednotify.sh
#!/bin/bash
type=$1
name=$2
state=$3case $state in
"MASTER") echo $state > /etc/keepalived/state
exit 0
;;
"BACKUP") echo $state > /etc/keepalived/state
exit 0
;;
"FAULT") echo $state > /etc/keepalived/state
exit 0
;;
*) echo $state > /etc/keepalived/state
exit 1
;;
esacsudo chmod a+x /usr/local/bin/keepalivednotify.sh
sudo systemctl start keepalived
sudo journalctl -u keepalived -fpi7
sudo apt-get install keepalivedsudo vi /etc/keepalived/keepalived.conf
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 254
advert_int 5
virtual_ipaddress {
192.168.2.200/32
}
notify /usr/local/bin/keepalivednotify.sh
}vi /usr/local/bin/keepalivednotify.sh
#!/bin/bash
type=$1
name=$2
state=$3case $state in
"MASTER") echo $state > /etc/keepalived/state
exit 0
;;
"BACKUP") echo $state > /etc/keepalived/state
exit 0
;;
"FAULT") echo $state > /etc/keepalived/state
exit 0
;;
*) echo $state > /etc/keepalived/state
exit 1
;;
esacsudo chmod a+x /usr/local/bin/keepalivednotify.sh
sudo systemctl start keepalived
sudo journalctl -u keepalived -f