send commands via dbus-send ?
Posted: Mon Jan 25, 2016 9:15 pm
Hi,
first of all I am not very familiar to DBUS.
Right now I have a daemon ot-monitor running in a raspberry-pi. The process is sending signals to the "system bus", in fact I can check it via "dbus-monitor --system", so the guy is running good in that sense.
Now I want to command the thermostat via the command line (so I can write scripts). I would say that this should be possible employing the command "dbus-send". I have to say that it is a bit frustrating since it seems to me
a bit cumbersome.
Is the following the right way?
Despite that for sure the former command is wrong (nothing happens after, not even an error). In the documentation it says that the argument ogf the method much be a QString, but dbus-send only supports strings. No idea if then I could use dbus-send then.
Btw, before I was using the graphical program "d-feet" for interfacing the DBUS and I could click on all the available commands very easily. So I hope it is also easy to interface otmonitor via the command line.
Thanks in advance!
first of all I am not very familiar to DBUS.
Right now I have a daemon ot-monitor running in a raspberry-pi. The process is sending signals to the "system bus", in fact I can check it via "dbus-monitor --system", so the guy is running good in that sense.
Now I want to command the thermostat via the command line (so I can write scripts). I would say that this should be possible employing the command "dbus-send". I have to say that it is a bit frustrating since it seems to me
a bit cumbersome.
Is the following the right way?
Code: Select all
dbus-send --system --dest=com.tclcode.otmonitor --type=method_call /com/tclcode/otmonitor com.tclcode.otmonitor.Command string:"TT=19.0"
Btw, before I was using the graphical program "d-feet" for interfacing the DBUS and I could click on all the available commands very easily. So I hope it is also easy to interface otmonitor via the command line.
Thanks in advance!