Change the basedomian of your blog

Sometimes you have to change the base domains of your blog. Therefore there are the following possibilities (ATTENTION: These snippets are thought to be used with a single site installation): Backend settings If you have access to the Backend of your WordPress installation, you can change the basedomain of your blog under: Settings -> General -> WordPress […]

Install WP-CLI into a separated folder

WP-CLI (http://wp-cli.org/) is a great commandline tool to manage your WordPress installation. It has countless commands. For example to: change database settings clear the cache manage comments and posts install plugins … The “normal” installation is well documented on the project page. But I prefer to store my project tools (f.e.: vagrant, coposer, etc.) in […]

Trigger Rest-API via curl

This snippet shows how to call a REST-API via curl. It also tells you how you can do a Basic-HTTP-Authentification to legitimate the call.

Make additional product attributes available over REST-API

To do this you only have to add a api2.xml in your modules etc folder that puts the necessary product tags into the node /config/api2/resources/product/attributes (xPath):

After that you can edit your REST-Attribute permissions, where you’ll find the newly defined attributes. Then a call to die products -API will show you the new Attributes.

Install busware SCC board on Raspberry Pi

To use busware SCC boards (see busware shop) with FHEM you have to: Install FHEM (see my earlier blogpost) If not already root

Remove all reverences of the device ttyAMA0 (/dev/ttyAMA0) from /etc/inittab and /boot/cmdline.txt (if you use a Banana Pi you should look for ttyS2)

and replace

with

and

and remove “console=ttyAMA0,115200” so […]

FHEM Installation on Raspbian

To install FHEM into /opt/fhem you have to take the following steps: Switch to root mode: $> sudo su - Get archive key and add it to system keys: $> wget -qO - http://debian.fhem.de/archive.key | apt-key add - Add reposetory to your system sources: $> nano /etc/apt/sources.list and add the following line to the bottom : deb http://debian.fhem.de/stable ./ Update sources: $> apt-get update Update system: $> apt-get upgrade Install FHEM: $> apt-get install fhem This will install all […]

Install Raspbian on a SD-Card

To install Rasbian on a SD-Card you have to follow these Steps Format SD-Card Fat32 (f.e. with GParted http://gparted.org/) Download Raspbian (or any other operation system) from http://www.raspberrypi.org/downloads/ Extract the downloaded zip-file Find out what is the devicepath of your SD-Card (you can use the df-command or get a list of partitions via linux-list-of-partitions) Execute the […]

Completely uninstall FHEM

If you have problems to get rid of FHEM, because of some package inconsistencies cause by broken installation or so, you can do this: