Pausing Raumfeld One with pressing a preset button

Since the Raumfeld-Update to 1.56 which was released on 07/11/2016 the stuff below is not really necessary because when pressing the on/off-button at the front the device activates the standby mode (instead of powering off) in which music can be played very fast by pressing a preset button. It automatically turns on then.

A known problem of the Raumfeld One is that playing audio cannot be stopped with one of the preset buttons. With one of the four buttons you can directly start playing music. But pausing/stopping only works by turning the device off.

It helps to play a song which includes only silence and save this with one of the buttons. With Audacity I created an audio file. Completely without sound and 0s long dit not work. The Raumfeld won’t play it. With a 1s long file I had the problem to press the preset button fast enough. Maybe this would work with playing it repeatly, but I didn’t try. So I created a 30s audio file with silence and saved this with the fourth button.

Now I am able to start listening to my favorite online radio with TuneIn by pressing one button and to stop it without using my smartphone.

Problem

You have to be careful not to play music repeatly, otherwise the device would play the silence song repeatly. When you are only listening to online radio this is not a real problem. But do not forget to turn of the repeat mode when listening to an album or so.

Download

Download the m4a-file

Audacity Project Files

Flickr

For a very long time I wanted to publish some of my photos to flickr. Now the time has come. 😉

Until now there are two albums available.

Camping in the Cairngorms

Zelt am Morgen

Copenhagen

Nyhavn

TouchFhem – Control FHEM with one single touch

This JavaScript webapp I hosted on GitHub allows to control a FHEM instance via a simple configurable touch interface with one single touch! It is even possible to display it on a very small 320×240 pixel display, e.g. on a raspberry pi. In my case I tested it only with the MAX! heating controllers, but it should work with more devices controlled by FHEM.

Requirements

Installed latest node.js and npm and running fhem.

Build & deploy

Run grunt for building and grunt serve for preview. After grunt you can copy the content of the dist folder to your own web server.

How does it look like?

When nothing is selected:

Nothing selected

After clicking on a button:

After click

After getting a successful answer from the FHEM server the button turns green for a few seconds:

Successful

Configuration

In app/config.json lies an example configuration file. It starts with the configuration of the URL to the fhem web interface and is followed by the configuration of the different configuration sets. E.g.:

{
  "url": "http://127.0.0.1:8083/fhem?room=MAX&cmd=jsonlist2&XHR=1",
  "groups":
  [
    {
      "groupname": "Room x",
      "buttons": [
        {
          "name": "19°C",
          "cmd": "set",
          "arg": "desiredTemperature",
          "room": "MAX",
          "val": "19.0",
          "devices": [
            {"deviceid": "dev1"},
            {"deviceid": "dev2"}
          ]
        },{
          "name": "off",
          "cmd": "set",
          "arg": "desiredTemperature",
          "room": "MAX",
          "val": "off",
          "devices": [
            {"deviceid": "dev1"},
            {"deviceid": "dev2"}
          ]
        }
      ]
    },
    {
      ...
    }
  ]
}

In this example you have a group with two buttons, each button controlls two devices. You can set the desiredTemperature to 19 degrees and off. As arg it is allowed to set anything the fhem web interface would accept, too.

Synchronizing all Adobe settings on multiple Macs

I decided to write a small script to synchronize the settings for any Adobe application (like Photoshop, InDesign or Lightroom) installed on all my Macs. In ~/Library/Preferences are many files for all the Adobe products, which unfortunately are not bundled in a folder like ~/Library/Preferences/Adobe. So I had to write a script which automatically synchronizes all the stuff, when executed frequently.

Read more

Multilingual

With the help of qtranslate this blog is multilingual. The articles will be translated soon, if they aren’t yet.

In most cases the appropriate language (english and german are possible) will be chosen automatically, but with http://blog.veltrus.de/de or http://blog.veltrus.de/en it can be set via the URL.

Howto und Script, Mac OS X: Open SafeStick Login automatically and much more! (Update 2)

Here I show you how the login-application of the hardware encrypted USB flashdrive, e.g. SafeStick from Blockmaster (you can buy it at schwarz.de) can automatically be opened when you insert it. Furthermore it will be checked if it really is the USB flashdrive with the application you are expecting. After typing in the right passphrase, a script will be executed that uses data from the decrypted USB flashdrive, e.g. a command that copies keyfiles in a ramdisc (/dev/shm) of a remote computer, whose encrypted volumes will be thus decrypted (see the example below). Read more

Howto: Inserting an USB-Stick triggers a call of the encryption-program on an active ssh-connection

Ich habe mir einen hardwareverschlüsselten USB-Stick gekauft und besitze einen Homerserver, auf dem Debian läuft, er routet und dient auch als Fileserver. Manche Daten sind sensibel, deshalb sind sie mit LUKS/cryptsetup und einem KeyFile, was damals auf einem softwareverschlüsselten USB-Stick lag, verschlüsselt.

Jetzt möchte ich natürlich meinen neuen USB-Stick möglichst komfortabel als Schlüsselablage verwenden, da es auch eine (nicht supportete, da beta) Firmware für Linux gibt.

Ziel

Wenn in den Server ein bestimmter, hardwareverschlüsselter USB-Stick gesteckt wird, wird auf einer gleichzeitig aktiven SSH-Verbindung automatisch der Befehl zum Entschlüsseln aufgerufen, so dass der User sofort sein Passwort eingeben kann. Read more

Script: Firefox’ Bookmarks schnell und einfach in Safari importieren

Hallo,

hier gibt’s ein Script, das automatisch die Lesezeichen (im Lesezeichenmenü) vom Firefox in den Safari importiert. Ich brauche dies, weil ich auf meinem MacBook den Firefox als Browser benutze (er bietet so tolle Plugins wie Adblock Plus oder Firefox Sync) und meine Lesezeichen gerne im Safari meines iPhones haben möchte.

Mit Google fand ich keine einfache Möglichkeit, die dies bewerkstelligt, deshalb habe ich selbst Hand angelegt.

Read more

Script: Filterrules for SysCP

With this Syscp-module it is possible for any syscp-user (customer) to create filter rules. E-mails with a certain subject, sender or recipient can be moved automatically in another folder of the mailbox.

Some parts of the code are changes of the maildrop- and fetchmail-module for syscp, so there might be some similarities. This modules can be found in the syscp-board.

Thanks to the authors of this modules.

The filterrules module’s license is included in the files.

In my testscases it works fine with syscp-1.2.14 and 1.2.19.

An installation instruction is included in the tar-file.

If you have questions please post them as comments here or better ask them in the board.

Downloads

Current version

Syscp 1.2.17-19, the comparison may include [ and ] now.: filterrules-0.1.4

Obsolete versions

Syscp 1.2.17-19, laxer (but not less safer) verification of the comparison and the target directory: filterrules-0.1.3
Syscp 1.2.17-19, Uses the new cron handling: filterrules-0.1.2
syscp-1.2.16-19: filterrules-0.1.1
Syscp < 1.2.16: filterrules-0.1

Anleitung: Benutzerverzeichnis von Mac OS mit TrueCrypt verschlüsseln

Wichtig: Wer sich daran wagt, sollte wissen, was er mit jedem von mir gezeigten Befehlt tut. Es ist höchstwahrscheinlich nicht möglich, der Anleitung zu folgen ohne selbst zu wissen, was man macht und gegebenenfalls einen Befehl etwas anzupassen beziehungsweise zu korrigieren.

Ziele:

  • Verschlüsselung mit TrueCrypt statt mit proprietärem FileVault. So weiß ich, wie verschlüsselt wird und dass nicht noch ein Zweitkey existiert.
  • Verschlüsselung mit einem Keyfile, welches auf einem USB-Stick gespeichert sein kann. Ich finde es komfortabler, außerdem kann dann das Nutzerpasswort recht kurz gehalten sein. So ein Keyfile bietet natürlich auch weniger Angriffsfläche für einen Bruteforce-Angriff als ein Passwort.
  • Lauffähig unter MacOS X 10.5 (Leopard) und 10.6 (Snow Leopard) und TrueCrypt (sicher lauffähig sind 6.2, 6.2a und 6.3).

Read more

 

Durch die weitere Nutzung der Seite stimmst du der Datenschutzerklärung,
dem Haftungsausschluss und der Verwendung von Cookies zu. Weitere Informationen

Die Cookie-Einstellungen auf dieser Website sind auf "Cookies zulassen" eingestellt, um das beste Surferlebnis zu ermöglichen. Wenn du diese Website ohne Änderung der Cookie-Einstellungen verwendest oder auf "Akzeptieren" klickst, erklärst du sich damit einverstanden.

Schließen