Open Garten Door with Siri / HomeKit and Raspberry Pi

_57Garden doors usually are connected to a DC power source interrupted by a push button. With the following simple setup it’s possible to close the circuit with HomeKit (Siri or Home-App on Apple Watch, iPhone, iPad) for a defined time.

What you should buy

At all the setup will cost round about 50€. For some additional bucks you can buy a card with more than one relay to control many doors, Lamps, power lines, … with one setup.


    • Install Debian 8 on the SD-Card
    • Login over SSH
    • Configure WiFi if needed
    • Install all you need with:
    • > sudo su
      > apt install -y curl
      > curl -sL | bash -
      > reboot
  • Connect the Relay on Pin 7, 5V and GND
  • Connect the relay to the door opener circuit
  • Add the new device to your Home App on your iPhone with the default key (can be changed in /root/.homebridge/config.json)
  • 031-45-154
  • (optional) Configure more relais / devices in /root/.homebridge/config.json

Project GIT-Repository: homebridge-gardendoor

New lines before prompt (Bash, Fish)

Fish_Shell_new_linesThe following script adds two empty lines before every new command line prompt using fish shell.

mkdir -p ~/.config/fish/functions
echo 'function fish_prompt 
    set_color $fish_color_cwd 
    echo "" 
    echo "" 
    echo "" 
    echo -n (prompt_pwd) 
    set_color normal 
    echo -n " > " 
end' > ~/.config/fish/functions/


The following command adds the leading empty lines in bash:

echo "export PS1='\n\n$ '" >> ~/.bashrc

SSH Public/Private-Key Login Generator 2.0

SSH_Public_Private_Key_Loin_GeneratorThis little script offers the following functionalities:

  • Install new public/private ssh key to log in without username / password
  • Install existing public key on multiple remote server
  • Register private key locally

After installation of your (new) keys you will be able to login to your server without user / password credentials.

Download (or contribute) on gitHub

Continue reading “SSH Public/Private-Key Login Generator 2.0”

HowTo: Remove all Docker Images and Containers (disk full)

Docker_(container_engine)_logoIf you’re developing docker containers, after a while you might notice one very big file:


The get ride off old unused docker images and containers and refuce the data-file use this two commands:


# Delete all containers
docker rm $(docker ps -a -q)

# Delete all images
docker rmi $(docker images -q)

HostEurope dynDNS mit Raspberry Pi – Docker



  • dynamische IP-Adresse
  • Domain bei HostEurope
  • Raspberry Pi mit Docker Image (Aktuelles Raspbian mit angepasstem Docker-Linux-Kernel)

Installation / Config / Start:

  • docker pull andreasprang/hosteurope_dyndns_arm
  • sudo docker run -d –restart=always -e KUNDENNR=123456 -e PASSWORD=mySecurePass -e -e HOSTID=12345678 andreasprang/hosteurope_dyndns_arm

Für details: Dockerfile und Script bei gitHub für AMD64/x86

Continue reading “HostEurope dynDNS mit Raspberry Pi – Docker”

Raspberry Pi in Browser Kiosk Mode with HDMI Monitor

// remove the cursor
sudo apt-get install unclutter

// install Google Chrome on Raspberry Pi
sudo apt-get install chromium

// Open Chromium in Fullscreen mode after booting the Raspberry Pi
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

It should look like this:

@lxpanel –profile LXDE
@pcmanfm –desktop –profile LXDE
@xscreensaver -no-splash

@xset s off
@xset s noblank
@xset -dpms
@chromium –kiosk



// Disable Screen to become black

nano /etc/kbd/config

How To: Install Script TelescopeJS for Debian / Ubuntu


Installing TelescopeJS on Linux really isn’t done within 5 minutes. So I decided to create a setup script. After installing Telescope with this Script, Telescope ist set up as a service and running on port 80 of your server.


Install: $ curl | sh

To change the port on which Telescope should be running edit /etc/init.d/Telescope


Install Script Git Repository:
Telescope – Project URL: