Running otmonitor on orange pi 2 plus

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

Moderator: hvxl

Post Reply
oipmok
Starting Member
Starting Member
Posts: 5
Joined: Sun Dec 03, 2017 7:27 pm

Running otmonitor on orange pi 2 plus

Post by oipmok »

i'm trying to run otmonitor - Linux-armhf on armbian on orange pi 2 plus, doesn't work, i can't find the tclkit for armbian and built my self . Someone ran otmonitor on armbian and orangepi ?

logs:

pi@orangepiplus:~/otgw$ ldd otmonitor-ahf
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6f08000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6e90000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6e6c000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6d80000)
/lib/ld-linux.so.3 => /lib/ld-linux-armhf.so.3 (0xb6f1b000)
pi@orangepiplus:~/otgw$ uname -a
Linux orangepiplus 3.4.113-sun8i #18 SMP PREEMPT Thu Jun 15 02:16:06 CEST 2017 armv7l armv7l armv7l GNU/Linux
pi@orangepiplus:~/otgw$ ./otmonitor
bash: ./otmonitor: No such file or directory
pi@orangepiplus:~/otgw$


Sorry for my English
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Running otmonitor on orange pi 2 plus

Post by hvxl »

I moved your post to a new topic, because it really had no relation to the "Opentherm Monitor - Error running from sources" topic you originally posted in.

First of all, your output shows that your executable is called otmonitor-ahf. So then it's no surprise that you cant run it as ./otmonitor. Try ./otmonitor-ahf.

On an orange pi it may be necessary to create a symbolic link (as root):
ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3
Schelte
oipmok
Starting Member
Starting Member
Posts: 5
Joined: Sun Dec 03, 2017 7:27 pm

Re: Running otmonitor on orange pi 2 plus

Post by oipmok »

I did symbolic link and now :

pi@orangepiplus:~/otgw$ ./otmonitor-ahf
couldn't load file "/tmp/tcl_d5kmjW": libXss.so.1: cannot open shared object file: No such file or directory
while executing
"load /home/pi/otgw/otmonitor-ahf/lib/tk8.6/libtk8.6.so Tk"
("package ifneeded Tk 8.6.4" script)
invoked from within
"package require Tk"
("try" body line 2)
(file "/home/pi/otgw/otmonitor-ahf/gui.tcl" line 2)
invoked from within
"source /home/pi/otgw/otmonitor-ahf/gui.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source [file join /home/pi/otgw/otmonitor-ahf $file]]"
(procedure "include" line 2)
invoked from within
"include gui.tcl"
(file "/home/pi/otgw/otmonitor-ahf/otmonitor.tcl" line 1712)
invoked from within
"source /home/pi/otgw/otmonitor-ahf/otmonitor.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source [file join /home/pi/otgw/otmonitor-ahf $file]]"
(procedure "include" line 2)
invoked from within
"include otmonitor.tcl"
(file "/home/pi/otgw/otmonitor-ahf/main.tcl" line 13)
pi@orangepiplus:~/otgw$
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Running otmonitor on orange pi 2 plus

Post by hvxl »

It seems your system is missing the libxss1 package (apt-get install libxss1). Do you actually intend to run otmonitor as a GUI program? Otherwise you may want to run it as:
  • ./otmonitor-ahf --daemon
Schelte
oipmok
Starting Member
Starting Member
Posts: 5
Joined: Sun Dec 03, 2017 7:27 pm

Re: Running otmonitor on orange pi 2 plus

Post by oipmok »

YEs it works !

sudo ./otmonitor-ahf -w 8181 --daemon -f otmonitor.conf

Thank You !!!

I use Tcp connections via USR-TCP232-302 on my otgw, how to modify otmonitor.conf file to tcp connection:

connection {
......
}

i can't find examples
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Running otmonitor on orange pi 2 plus

Post by hvxl »

Normally it's easiest to run otmonitor as a GUI and configure the connection as you want it. Then you can use the configuration file produced that way for non-GUI mode. For a TCP connection you would get something like:

Code: Select all

connection {
  type tcp
  port 23
  host 192.168.5.7
  enable true
}
Schelte
oipmok
Starting Member
Starting Member
Posts: 5
Joined: Sun Dec 03, 2017 7:27 pm

Re: Running otmonitor on orange pi 2 plus

Post by oipmok »

Works !

Thank You
Post Reply

Return to “Opentherm Gateway Forum”