Opentherm Gateway 4.0 alpha/beta testers wanted
Moderator: hvxl
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
It's indeed Linux X86, but same error
- Attachments
-
- otmonitor2.png (22.95 KiB) Viewed 9765 times
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
It only starts when running a Xwindows
- Attachments
-
- otmonitor3.png (18.12 KiB) Viewed 9772 times
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
That's a completely different error. Why are you running this as root? That should not be necessary. (You may have to add the user to a special group to allow access to the serial port.)
Schelte
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
Try 4.0b2.2. That doesn't crash in case of dbus problems (of course you won't have dbus control of the application in that case).
Schelte
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
You can run the 32-bit linux version on a 64-bit linux platform with 32-bit libraries installed. I have uploaded otmonitor 4.0b2.2 for raspberry pi.trie wrote:Do you also have a Linux x86_64 or the raspberry version of this? Then I can get the logging on console as well.
Schelte
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
You're right, I was also trying to use the dbus... but that gave the same error as otmontior..hvxl wrote:That's a completely different error.
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
hvxl wrote:Try 4.0b2.2. That doesn't crash in case of dbus problems (of course you won't have dbus control of the application in that case).
It's working.. Now I've got to figure out why dbus isn't working

Re: Opentherm Gateway 4.0 alpha/beta testers wanted
In a next version I can make otmonitor (optionally) use the system dbus instead of the session dbus. But that requires some advanced security configuration on the system that may be a bit too much for the average user.
Schelte
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
Code: Select all
dbus-send --print-reply --dest=com.tclcode.otmonitor / com.tclcode.otmonitor.Command :PR=A[/b]
Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Code: Select all
eval 'dbus-launch --auto-syntax' "dbus-send --print-reply --dest=com.tclcode.otmonitor / com.tclcode.otmonitor.Command :PR=A"
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.tclcode.otmonitor was not provided by any .service files

Re: Opentherm Gateway 4.0 alpha/beta testers wanted
Great, working now on the RPi which also has the OTGW connected. Unfortunately, the daemon/webinterface does not show logging as you've requested in my other topic about time/date losing. Any other way or do I need the graphical version?hvxl wrote:You can run the 32-bit linux version on a 64-bit linux platform with 32-bit libraries installed. I have uploaded otmonitor 4.0b2.2 for raspberry pi.trie wrote:Do you also have a Linux x86_64 or the raspberry version of this? Then I can get the logging on console as well.
Other question: is there some documentation about the T/B/A/R output and meaning (which code is what and how to interpret the values) of the OTGW? And any documentation of the status bits PS=1 provides?
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
OK, that appears to work. I wasn't aware of dbus-launch, but it seems you can use it to start otmonitor with a session dbus:
After that you can control otmonitor via dbus, even from another shell running under the same user.
Note: I think dbus-launch was the key, not eval.
Code: Select all
dbus-launch --exit-with-session ./otmonitor --webserver 8085 --daemon &
Note: I think dbus-launch was the key, not eval.
Schelte
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
You can specify several command line options to otmonitor. Use the -o option to specify a logfile, e.g.:trie wrote:Great, working now on the RPi which also has the OTGW connected. Unfortunately, the daemon/webinterface does not show logging as you've requested in my other topic about time/date losing. Any other way or do I need the graphical version?
Other question: is there some documentation about the T/B/A/R output and meaning (which code is what and how to interpret the values) of the OTGW? And any documentation of the status bits PS=1 provides?
./otmonitor -o $(date +otlog-%Y%m%d.txt) --daemon /dev/ttyUSB0
The opentherm messages are decoded by otmonitor. For more details look at the opentherm specification.
The information reported by PS=1 is documented on the web site
Schelte
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
Otmonitor is running with the dbus-lauch, but connecting to it with dbus is still not working :hvxl wrote:OK, that appears to work. I wasn't aware of dbus-launch, but it seems you can use it to start otmonitor with a session dbus:After that you can control otmonitor via dbus, even from another shell running under the same user.Code: Select all
dbus-launch --exit-with-session ./otmonitor --webserver 8085 --daemon &
Note: I think dbus-launch was the key, not eval.
without eval I still get :
Code: Select all
Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Code: Select all
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.tclcode.otmonitor was not provided by any .service files
Is the name com.tclcode.otmonitor setup by otmonitor, or must I configure this manually?
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
It's hard for me to come up with different suggestions since the previous one worked for me (on a raspberry pi).
You could try:
$ dbus-launch > /tmp/dbusenv
$ ./otmonitor.ahf --daemon --webserver 8085
And then in another session:
$ . /tmp/dbusenv
$ dbus-send --print-reply --dest=com.tclcode.otmonitor / com.tclcode.otmonitor.Command :PR=A
The com.tclcode.otmonitor name doesn't require any manual configuration.
You could try:
$ dbus-launch > /tmp/dbusenv
$ ./otmonitor.ahf --daemon --webserver 8085
And then in another session:
$ . /tmp/dbusenv
$ dbus-send --print-reply --dest=com.tclcode.otmonitor / com.tclcode.otmonitor.Command :PR=A
The com.tclcode.otmonitor name doesn't require any manual configuration.
Schelte
Re: Opentherm Gateway 4.0 alpha/beta testers wanted
unfortunately...
I will try it on a fresh normal Debian installation.. (now using Voyage debian Linux)

I will try it on a fresh normal Debian installation.. (now using Voyage debian Linux)