Page 1 of 1
Installation of Domoticz in jail on NAS4Free
Posted: Tuesday 27 March 2018 17:04
by iva2019
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?
Re: Installation of Domoticz in jail on NAS4Free
Posted: Tuesday 27 March 2018 17:48
by jumbotroll
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.
Re: Installation of Domoticz in jail on NAS4Free
Posted: Tuesday 27 March 2018 18:32
by iva2019
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.
Re: Installation of Domoticz in jail on NAS4Free
Posted: Tuesday 27 March 2018 18:48
by jumbotroll
Re: Installation of Domoticz in jail on NAS4Free
Posted: Tuesday 27 March 2018 19:03
by iva2019
Thanks for the help! I will look whether I will be able to correct it.
Re: Installation of Domoticz in jail on NAS4Free
Posted: Tuesday 27 March 2018 19:54
by iva2019
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 "???"?
Re: Installation of Domoticz in jail on NAS4Free
Posted: Friday 27 July 2018 1:14
by Whiskey
What's the output from
I just wrote a patch that deals with this (on FreeNAS myself) by falling back to parsing ifconfig output if the default approach with boost asio does not work. The patch may work for you as well.