Putting all of these toghether was apparently a non-trivial task, so I decided to setup a simple project for a future reference. I’m quite satisfied with the result, which looks as follows:
The source code, as well as detailed clarification of what needs to be set up, are available on GitHub. If you find anything that can be improved, don’t hesitate to open up an issue or create a pull request - all contributions are more than welcome. :)