OTGW and Orange Pi Zero one device.

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

Moderator: hvxl

cyril
Starting Member
Starting Member
Posts: 39
Joined: Tue May 23, 2017 9:53 am

Re: OTGW and Orange Pi Zero one device.

Post by cyril »

Links to OS images with OTmonitor in first post of this topic.
texnic
Starting Member
Starting Member
Posts: 19
Joined: Thu Apr 07, 2016 12:03 am

Re: OTGW and Orange Pi Zero one device.

Post by texnic »

bruce_miranda wrote:Once you load the OS image and get the Orange Pi connected to your network, how do you interact with the OT gateway? I'm guessing the OS on the Orange Pi is headless, so where is the OT Monitor loaded? I.e. how do view the data?
I've tried one method so far. Let's say your OPi IP is 192.168.1.9. Then, while on the same network, you can simply browse to http://192.168.1.9:8080 and should see the monitor web-pages.

Tried with Armbian image from Cyril (links in the first post of this thread).
bruce_miranda
Starting Member
Starting Member
Posts: 33
Joined: Sun Apr 27, 2014 12:30 am

Re: OTGW and Orange Pi Zero one device.

Post by bruce_miranda »

Ah right so it's using the web version of the otmonitor, rather than the client GUI. That's fine. What about SSH access into the armbian. What's the root user and password?
bruce_miranda
Starting Member
Starting Member
Posts: 33
Joined: Sun Apr 27, 2014 12:30 am

Re: OTGW and Orange Pi Zero one device.

Post by bruce_miranda »

Received mine today. It's super neat and clearly a lot of time has gone into thinking about the layout and researching the BOM. Finding and designing a terminal block that would fit through the dual USB hole on the enclosure was just genius. I was going to fire it up today. But I need to find some thinner gauge wire, oh and time!
cyril
Starting Member
Starting Member
Posts: 39
Joined: Tue May 23, 2017 9:53 am

Re: OTGW and Orange Pi Zero one device.

Post by cyril »

Tnank you!
texnic
Starting Member
Starting Member
Posts: 19
Joined: Thu Apr 07, 2016 12:03 am

Re: OTGW and Orange Pi Zero one device.

Post by texnic »

bruce_miranda wrote:What about SSH access into the armbian. What's the root user and password?
It is root/orangepi, as also briefly mentioned by Cyril at the top of this thread :)

SSH works just fine. I've set up SSH keys and disabled password login, as usual.
bruce_miranda
Starting Member
Starting Member
Posts: 33
Joined: Sun Apr 27, 2014 12:30 am

Re: OTGW and Orange Pi Zero one device.

Post by bruce_miranda »

Yes, I did spot that in the thread earlier.
koetsier
Starting Member
Starting Member
Posts: 1
Joined: Tue May 22, 2018 3:33 pm

Re: OTGW and Orange Pi Zero one device.

Post by koetsier »

Thank you Cyrill,
It took a little while (20 days to be exact), but finally your DIY board arrived an it looks very neat. :D
As I mentioned in earlier, I've bought an Orange Pi Zero Plus H5 with a 10/100/1000 RJ45 jack. This seemed a smart idea at the time, but now I've found out that the standard black container for an Orange Pi Zero doesn't fit (the USB and the RJ45 jack are 4 mm too wide). I got that sorted by cutting away some plastic. However, I just also found out that your DIY board doesn't fit nicely on the Orange Pi Zero Plus H5 with a 10/100/1000 RJ45 jack, because the RJ45 jack is also 4 mm too long. The lesson here: I'll just buy the Orange Pi Zero you recommended and try again.

Can somebody please give me a heads up how to install de OT Monitor (Linux ARMHF) and the firmware on the Orange Pi Zero?

The rest is up and running (Armbian, Grafana and InfluxDB).

Cheers,
Richard
bruce_miranda
Starting Member
Starting Member
Posts: 33
Joined: Sun Apr 27, 2014 12:30 am

Re: OTGW and Orange Pi Zero one device.

Post by bruce_miranda »

Just use the package that is linked in the first post. It's got the OS and the OT Monitor installed. You then just update the OS.
cyril
Starting Member
Starting Member
Posts: 39
Joined: Tue May 23, 2017 9:53 am

Re: OTGW and Orange Pi Zero one device.

Post by cyril »

You can install OTmonitor separately. Download otmonitor from otgw.tclcode.com:

wget http://otgw.tclcode.com/download/otmonitor-ahf

change permissions:

chmod a+x otmonitor

and create symlink:

sudo ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3

Create config file:

web {
enable true
port 8080
nopass true
}
connection {
device /dev/ttyUSB1
type serial
enable true
}

To start otmonitor:

./otmonitor-ahf --daemon -f /opt/otmonitor/otmonitor.conf

Also you need to create systemd unit like this:

[Unit]
Description=OpenTherm Monitor

[Service]
PIDFile=/run/otmonitor-ahf.pid
ExecStart=/opt/otmonitor/otmonitor-ahf --daemon -f /opt/otmonitor/otmonitor.conf
Restart=always

[Install]
WantedBy=multi-user.target

give name otmonitor.service and place it to /etc/systemd/system/

Reloading systemd:

systemctl daemon-reload

Add to autostart:

systemctl enable otmonitor.service

Start otmonitor:

systemctl start otmonitor
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: OTGW and Orange Pi Zero one device.

Post by hvxl »

cyril wrote:and create symlink:

sudo ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3
That should no longer be necessary.
Schelte
paulockenden
Starting Member
Starting Member
Posts: 13
Joined: Thu Apr 19, 2018 8:43 pm

Re: OTGW and Orange Pi Zero one device.

Post by paulockenden »

Given that Opentherm is a two way protocol does it actually matter which side is connected to the boiler and which to the thermostat?

Not that it's a problem doing it correctly, I'm just curious!

P.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: OTGW and Orange Pi Zero one device.

Post by marcelr »

Yes, that makes a difference. It's a two-way protocol, but not a bus protocol. Talker and listener (master and slave) cannot be exchanged.
paulockenden
Starting Member
Starting Member
Posts: 13
Joined: Thu Apr 19, 2018 8:43 pm

Re: OTGW and Orange Pi Zero one device.

Post by paulockenden »

AH - thanks makes sense. Thanks for satisfying my idle curiosity!
anoppe
Starting Member
Starting Member
Posts: 8
Joined: Mon Sep 10, 2018 4:39 pm

Re: OTGW and Orange Pi Zero one device.

Post by anoppe »

Hi Cyril,

I've been running an OrangePI with the expansion board for a few months now, and works like a charm! (Except for having to reflash my sd-card twice now)
Last month I installed a Remeha (same brand as Baxi) eTwist and now my OrangePI reports strange temperatures, see this image: https://imgur.com/a/hrFpN9y
The green line is the temperature reported by the OPI, the yellow is a reading form some online weather service.
But, as you can see does my graph contain strange drops in temperature. Could you reason why this could happen icw the eTwist? could this behaviour be caused by unstable power supply or interference or something?
Post Reply

Return to “Opentherm Gateway Forum”