dbus-mqtt-bridge

command module
v0.0.0-...-5a00604 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2015 License: GPL-2.0 Imports: 11 Imported by: 0

README

dbus-mqtt-bridge

a bridge to link mqtt and dbus

ToDo

  • receive DBus-Signal
  • send MQTT-Message
  • MQTT-TLS-Support
  • react on DBus-property-change
  • function-descriptions

Example-Config

Following example-config subscribes for the property changed signal on DBus and publishes changes to the selected MQTT-Topic when the playback-state changes. Put this code into a "config.json" file in the working-directory.

{
	"Dbus": { },
	"Mqtt": {
		"Servers": ["tcp://server:1883"],
		"ClientID": "MediaPC",
		"Username": "",
		"Password": ""
	},
	"Mapping": [
	{
		"Mqtt": {
			"Topic": "vlc"
		},
		"Dbus": {
			"Type": "Signal",
			"Path": "/org/mpris/MediaPlayer2",
			"Interface": "org.freedesktop.DBus.Properties",
			"Sender": "org.mpris.MediaPlayer2.vlc",
			"StructPath": "[1].['PlaybackStatus']",
			"RemoveQuotmark": true
		},
		"Mode": "passtrough"
	}
	]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL