Installation of Domoticz in jail on NAS4Free

On various Hardware and OS systems: pi / windows / routers / nas, etc
Post Reply
iva2019
Posts: 5
Joined: Sunday 25 March 2018 7:44
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Contact:

Installation of Domoticz in jail on NAS4Free

Post by iva2019 » Tuesday 27 March 2018 17:04

Hi, I have a problem with Domoticz.

OS: NAS4Free 11.1.0.4 (FreeBSD 11.1-RELEASE-p8)
Domoticz: 3.8153

I have installed Domoticz in a NAS4Free jail and although I was able to add the Xiaomi Gateway and sensors, its status is not updated.
When I start Domoticz, it gives me the following error:
XiaomiGateway: Could not detect local IP address: connect: Can not assign requested address

The similar problem with installation of Domoticz in prison on FreeNas was discussed in a topic of "Xiaomi Smart Home Suite (very cheap) compatibilty?".
It was offered to add manually the local address to XiaomiGateway.cpp, but in NAS4Free there is no such file.

How can I solve this problem in NAS4Free?

User avatar
jumbotroll
Posts: 646
Joined: Tuesday 13 January 2015 15:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: Installation of Domoticz in jail on NAS4Free

Post by jumbotroll » Tuesday 27 March 2018 17:48

iva2019 wrote:
Tuesday 27 March 2018 17:04
Hi, I have a problem with Domoticz.

OS: NAS4Free 11.1.0.4 (FreeBSD 11.1-RELEASE-p8)
Domoticz: 3.8153

I have installed Domoticz in a NAS4Free jail and although I was able to add the Xiaomi Gateway and sensors, its status is not updated.
When I start Domoticz, it gives me the following error:
XiaomiGateway: Could not detect local IP address: connect: Can not assign requested address

The similar problem with installation of Domoticz in prison on FreeNas was discussed in a topic of "Xiaomi Smart Home Suite (very cheap) compatibilty?".
It was offered to add manually the local address to XiaomiGateway.cpp, but in NAS4Free there is no such file.

How can I solve this problem in NAS4Free?
XiaomiGateway.cpp is a part of the source code and I think you have to add manually the local address to XiaomiGateway.cpp before you compile.
Regards
Jumbotroll
http://www.jadahl.com

iva2019
Posts: 5
Joined: Sunday 25 March 2018 7:44
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Contact:

Re: Installation of Domoticz in jail on NAS4Free

Post by iva2019 » Tuesday 27 March 2018 18:32

Can you prompt where it is possible to find this file?
I did not find the XiaomiGateway.cpp file
neither in official https://github.com/freebsd/freebsd-port ... w/domoticz
nor in informal https://github.com/xbeaudouin/freebsd-ports ports.

User avatar
jumbotroll
Posts: 646
Joined: Tuesday 13 January 2015 15:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: Installation of Domoticz in jail on NAS4Free

Post by jumbotroll » Tuesday 27 March 2018 18:48

iva2019 wrote:
Tuesday 27 March 2018 18:32
Can you prompt where it is possible to find this file?
I did not find the XiaomiGateway.cpp file
neither in official https://github.com/freebsd/freebsd-port ... w/domoticz
nor in informal https://github.com/xbeaudouin/freebsd-ports ports.
https://github.com/domoticz/domoticz/bl ... ateway.cpp
Regards
Jumbotroll
http://www.jadahl.com

iva2019
Posts: 5
Joined: Sunday 25 March 2018 7:44
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Contact:

Re: Installation of Domoticz in jail on NAS4Free

Post by iva2019 » Tuesday 27 March 2018 19:03

Thanks for the help! I will look whether I will be able to correct it.

iva2019
Posts: 5
Joined: Sunday 25 March 2018 7:44
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Contact:

Re: Installation of Domoticz in jail on NAS4Free

Post by iva2019 » Tuesday 27 March 2018 19:54

If I correctly understand, I need to make the following:

Code: Select all

1) pkg install git

2) cd /root && git clone https://github.com/domoticz/domoticz.git ???

3) To make changes to file XiaomiGateway.cpp

4) pkg add curl expat2 telldus-core jsoncpp cmake iconv pkgconfig execinfo ssl boost-libs boost-python-libs lua mqtt sqlite

5) cd /usr/ports/??? && make install clean
How correctly it is necessary to write 2 and 4 lines? What paths to them should be specified instead of "???"?

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests