Skip to content

Middleware on Raspberry Pi (MWRP)

Nico Boettcher edited this page Dec 21, 2016 · 1 revision

Middleware on Raspberry Pi

Command Line Arguments

Gui

Usage: -gui

Displays a minimalistic (and unfinished) GUI for debugging purposes.

Currently it only displays pressure and temperature values. Positioning via Bluetooth beacons is also available but very inaccurate.

Where the GUI is displayed depends on a few factors. If used via ssh -X <host> on a device that runs Linux and supports X11 forwarding, the GUI is forwarded to the users device. If the Raspberry Pi has a display, the GUI can be displayed on that display by calling export DISPLAY=:0 before starting the application.

No Server

Usage: -noserver

This option disables pushing data to the server's message queue.

Actually this argument is not necessary since the application simply continues if a connection to the server can not be established. With this option, the application simply doesn't even try to connect to the server.

Game Controller

Usage: -gctrl

Enables the game controller module.

The application pushes data to a game controller host. The host, port, key bindings and sensitivity of the game controls can be configured in gamecontroller.properties

Game Controller with configuration interface

Usage: -gctrlwww

Enables the HTTP/Rest interface for the game controller configuration. -gctrl is implicitly active if this option is active.

The HTTP/Rest interface is available on port 8080 and can be used to rebind keys for the game controls during runtime. Pressing Save Config writes these values to gamecontroller.properties so they'll persist through reboots.

Clone this wiki locally