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?
Installation of Domoticz in jail on NAS4Free
Moderator: leecollings
- jumbotroll
- Posts: 793
- Joined: Tuesday 13 January 2015 14:36
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Oslo,Norway
- Contact:
Re: Installation of Domoticz in jail on 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.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?
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
-
- 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
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.
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.
- jumbotroll
- Posts: 793
- Joined: Tuesday 13 January 2015 14:36
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Oslo,Norway
- Contact:
Re: Installation of Domoticz in jail on NAS4Free
https://github.com/domoticz/domoticz/bl ... ateway.cppiva2019 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.
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
-
- 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
Thanks for the help! I will look whether I will be able to correct it.
-
- 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
If I correctly understand, I need to make the following:
How correctly it is necessary to write 2 and 4 lines? What paths to them should be specified instead of "???"?
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
-
- Posts: 6
- Joined: Monday 07 May 2018 20:35
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Installation of Domoticz in jail on NAS4Free
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.
Code: Select all
ifconfig
Who is online
Users browsing this forum: No registered users and 1 guest