How to run OpenTherm Monitor on Ubuntu 12.10

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Post Reply
jdthood
Starting Member
Starting Member
Posts: 1
Joined: Tue Mar 19, 2013 2:45 pm

How to run OpenTherm Monitor on Ubuntu 12.10

Post by jdthood »

Here's how to get OpenTherm Monitor running on a typical Ubuntu system, in my case an Ubuntu 12.10 amd64 machine. It's easy. The available binary is for i386, not amd64, but that won't stop us.

1. Install needed i386 tk binaries: sudo apt-get install tk8.6:i386.
2. Download the i386 otmonitor binary from the author's website at tclcode.com.
3. Move the otmonitor binary file under /usr/local/bin/ and make it executable.
4. Run otmonitor. :)
ThinkPad
Member
Member
Posts: 75
Joined: Sat Nov 15, 2014 1:49 pm

Re: How to run OpenTherm Monitor on Ubuntu 12.10

Post by ThinkPad »

Excuse me for kicking this old topic, but i have the same question:
How can i get this working on a stock Ubuntu 14.04 (x64) system? I tried the steps mentioned, but it doesn't work.
It keeps saying:

Code: Select all

otgw@ubuntu:~$ otmonitor
bash: /usr/bin/otmonitor: No such file or directory
I also tried the x64 version, but that one seems to need a lot of additional stuff:

Code: Select all


otgw@ubuntu:~$ ./otmonitor-x64
no display name and no $DISPLAY environment variable
    while executing
"load /home/otgw/otmonitor-x64/lib/tk8.6/libtk8.6.so Tk"
    ("package ifneeded Tk 8.6.4" script)
    invoked from within
"package require Tk"
    (file "/home/otgw/otmonitor-x64/gui.tcl" line 2)
    invoked from within
"source /home/otgw/otmonitor-x64/gui.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source [file join /home/otgw/otmonitor-x64 $file]]"
    (procedure "include" line 2)
    invoked from within
"include gui.tcl"
    (file "/home/otgw/otmonitor-x64/otmonitor.tcl" line 1620)
    invoked from within
"source /home/otgw/otmonitor-x64/otmonitor.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source [file join /home/otgw/otmonitor-x64 $file]]"
    (procedure "include" line 2)
    invoked from within
"include otmonitor.tcl"
    (file "/home/otgw/otmonitor-x64/main.tcl" line 13)
otgw@ubuntu:~$
Can someone point me how to get it working? I am running Ubuntu Server 14.04 LTS (x64) in a virtual machine, no GUI only commandline SSH.

Edit:
I have found it already, you can just start the binary in daemon mode:

Code: Select all

./otmonitor-x64 --daemon --w 8080 /dev/ttyUSB0
or in my case (OTGW over LAN, with USR-TCP232):

Code: Select all

./otmonitor-x64 --daemon --w 8080 192.168.4.30:23
:mrgreen:
I let supervisor autostart the 'otmonitor-x64' on boot, and let it also watch it, so when it should crash, it is automatically started again.
Post Reply

Return to “Opentherm Gateway Forum”