Category Archives: Uncategorized

My computer Lab

Our servers came in! (20200612)

Bought some large servers with Vincent.
3 ProLiant ML350 G6 with loads of memory and cores.
My 2 nodes are running Ovirt Virtualisation, connected to a qnap iscsi host using 10gbps SFPs. Vincents server is running Proxmox.

Domoticz age checker

A script to check the age of sensors.
Sometimes you don’t have a good 433Mhz connection.
Or the battery has died of your sensor.

This script will warn you.

sensoragescript.sh (for cron)

#!/bin/bash
#Call as follows
#sensoragescript.sh <ipdomoticz> <idx-of-sensor> <age-to-test-in-seconds>

now=$(date +%s)
lastupdate=$(curl -s -i -H "Accept: application/json" "http://$1:8080/json.htm?type=devices&rid=$2" |  grep LastUpdate | cut -f4 -d\" )
#echo $lastupdate
seen=$(date -d "$lastupdate" +%s)
#echo $seen
#echo "$(( $now - $seen))"
difftime="$(( $now - $seen))"
if [ $difftime -gt $3 ] ; then
  echo "WARN : too old - $difftime seconds"
  exit 1
else
  echo "OK : $difftime seconds"
  exit 0
fi

Outputs:

./new.sh 192.168.1.1 123 60
OK : 22 seconds

./new.sh 192.168.1.1 123 60
WARN : too old - 69 seconds

check_mk / icinga check

#!/bin/bash
IPDOMO=192.168.1.1
IDX=123
agewarn=300
now=$(date +%s)
lastupdate=$(curl -s -i -H "Accept: application/json" "http://$IPDOMO:8080/json.htm?type=devices&rid=$IDX" |  grep LastUpdate | cut -f4 -d\" )
seen=$(date -d "$lastupdate" +%s)
difftime="$(( $now - $seen))"
if [ $difftime -gt $agewarn ] ; then
  echo "1 \"WARN - Age check Fridge\" realage=$difftime|age=$agewarn Age of fridge"
  exit 1
else
  echo "0 \"OK - Age check Fridge\" realage=$difftime|age=$agewarn Age of fridge"
  exit 0
fi

Fireworks disaster Enschede

I lived in Enschede at that moment.

A book about the disaster

It was a beautiful day in May, and a lot of people were outside enjoying themselves.

Monique was working in the garden, and i was sitting in the living room.

We heard some commotion and saw the smoke.
Some people said that the Chinese restaurant in that neighbourhood (containing illegal fireworks) was burning.

We heard a big explosion and Monique was blown off her feet, and sat down in the garden.

I saw the large livingroom window bulging to the inside and moving outside again. (This had loosen the mortar around the window)

When seeing the now black smoke, we went inside, to the opposite site of our home, and turned on the news/checked websites.

We were lucky that there was a large factory between us and the blast (Polaroid factory)

Large pieces of cement where found 100m further than our house was.

Below some of my own media, for a better understanding of the destruction and aftermath of the disaster check the divers websites.

A scary time.

Discman hack

I bought a Discman, the cheapest in the series (Don´t know the brand any more)

So it didn´t had all the functions of his bigger brother.
Like fast forward and some other things i can´t remember.
Opened it up and checked the chips on the board.

Soldering some wires (on smd chips! .. so very small) and some buttons, i’ve got the extra functions!
While adding these functions, i had an idea. How to connect this Discman to my Amiga!

I’ll post more info when i find these!
I found some binaries and source:
cdplay.s – source

Binaries for following functions:
fwd
mem
pause
play
remain
repeat
rev
stop

Years later i removed the cover completely and made a floating disc player.
(The lid had a magnetic part which could hold the disc in place.
So i ended up having only a PCB motor and a magnet to hold the disc attached to the motor.

Read a book as a kid, and found some information about it again.

It is older as I thought.
But it made a lasting impression.
This is one of the books i remember, and could find again.

I don’t know the correct cover any more, but one of the above.
Weirdly they all look familiar.
It was written in 1928.

It took a long time finding this book again.

Het Geheim van het Oude Horloge – Leonard Roggeveen (1928)

Nederlands
Jeugdboek
Avontuur

246 pagina’s
Eerste druk: Van Goor, Gouda (Nederland)

Bram Vingerling is bezig met het uitvinden van een algemene tijdaanwijzer. Hier voor heeft hij een wekker of horloge nodig. In een klein winkeltje koopt hij een groot koperen zakhorloge, waar echter iets vreemds mee aan de hand is. Het bevat geheimzinnige krachten, want het laat alle dingen in zijn omgeving bewegen. Aan de binnenkant staan de initialen J. C. S. gegraveerd en ook de vreemde cijfers , letters en tekentjes: 183Z z oo N xxx ! Na lang speurwerk, komt Bram er achter wat dit te betekenen heeft, en wie de vorige eigenaar van het oude horloge was.
Namelijk professor Stuyvesant, die reeds in 1916 bezig was om de verborgen krachten der natuur, stoffelijk te maken. Bram komt in het bezit van de uitvinding van de professor, ondanks dat hij wordt tegengewerkt door een man met een valse baard, die het ook op de uitvinding voorzien heeft. Hij vindt het loden kistje verstopt in de duinen en dit blijkt na opening een enorme kracht te bevatten. Later als de Rotonde op de Wandelpier van Scheveningen plotseling gaat verzakken en in zee dreigt te storten, komt Bram te hulp met de uitvinding van de professor.
Hij wordt zo de held van de dag en de redder van de Rotonde, maar het mooiste voor hem was dat hij de laatste wens van de professor vervuld had, door iets goeds te doen met zijn uitvinding.

(google translated)

The Secret of the Old Watch – Leonard Roggeveen (1928) Dutch Children’s book Adventure 246 pages First edition: Van Goor, Gouda (Netherlands) Bram Vingerling is inventing a general time indicator. He needs an alarm clock or watch for this. In a small shop he buys a large copper pocket watch, but something strange is going on with it. It contains mysterious powers, for it makes all things around it move. The initials J.C.S. are engraved on the inside as well as the strange numbers, letters and signs: 183Z z oo N xxx! After much research, Bram finds out what this means and who the previous owner of the old watch was. Namely Professor Stuyvesant, who was already working in 1916 to make the hidden forces of nature material. Bram comes into possession of the professor’s invention, despite being thwarted by a man with a false beard, who also has his eye on the invention. He finds the lead box hidden in the dunes and after opening it turns out to contain enormous power. Later, when the Roundabout on the Scheveningen Walking Pier suddenly subsides and threatens to collapse into the sea, Bram comes to the rescue with the professor’s invention. He thus becomes the hero of the day and the savior of the Rotunda, but the best thing for him was that he had fulfilled the professor’s last wish by doing something good with his invention.