Page 45 of 55

Re: [MyDomoAtHome] Support thread

Posted: Tuesday 26 December 2017 22:21
by dextm80
hi guys, i've a problem with mdah configuration and imperihome. Local all ok but i don't understand how to do for remote access.
Ngix? https? i try configure https but without luck.

http://192.XXX.X.XX:3002/devices i see all my devices and the server seems ok

i've also problem with apache2 httpd after mdah installation:

Code: Select all

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: inactive (dead) since mar 2017-12-26 18:36:37 CET; 7min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5200 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 5184 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
 
dic 26 18:36:37 XXX-XXX apache2[5184]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
dic 26 18:36:37 XXX-XXX apache2[5184]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
dic 26 18:36:37 XXX-XXX apache2[5184]: no listening sockets available, shutting down
dic 26 18:36:37 XXX-XXX apache2[5184]: AH00015: Unable to open logs
dic 26 18:36:37 XXX-XXX apache2[5184]: Action 'start' failed.
dic 26 18:36:37 XXX-XXX apache2[5184]: The Apache error log may have more information.
dic 26 18:36:37 XXX-XXX apache2[5184]:  *
dic 26 18:36:37 XXX-XXX apache2[5200]:  * Stopping Apache httpd web server apache2
dic 26 18:36:37 XXX-XXX apache2[5200]:  *

dic 26 18:36:37 Linux-Server systemd[1]: Started LSB: Apache2 web server.

any suggestion/idea?

thanks

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 9:13
by epierre
seems apache wants to use port 443 (https) but someone is already listening on it (mdah ?)

if you want to have https, decide which one is going to answer on port 443.

you can do a reverse proxy from apache to mdah, see here: https://httpd.apache.org/docs/2.4/howto ... proxy.html

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 12:19
by dextm80
epierre wrote: Wednesday 27 December 2017 9:13 seems apache wants to use port 443 (https) but someone is already listening on it (mdah ?)

if you want to have https, decide which one is going to answer on port 443.

you can do a reverse proxy from apache to mdah, see here: https://httpd.apache.org/docs/2.4/howto ... proxy.html
And what s the best way? Httpd proxy o nginx proxy?

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 12:59
by epierre
Will you use the proxy for something else ?

If no, see readme tonuse mdah in https

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 13:50
by dextm80
I want to remote access imperihome...i try with guide without results

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 14:31
by epierre
from here: https://github.com/empierre/MyDomoAtHome
section under "start in https mode" ?

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 15:36
by dextm80
Yes, i do it ..... but nothing change, not secure connection by my firefox browser. I i connect my.domain.com:443 get 404 page not found, i think i ve a problem with httpd configuration, do you think?

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 16:24
by epierre
only one process can listen to one port at one given time.

If you says it is mydomoathome in ssl so no nginx nor apache should have the 443 port in its configuration.

If you say it is apache or nginx, so mydomoathome should listen on another port (let's say 3002) and not in ssl, and from nginx/apache do a redirection so when port 443 is called, the request is forwarded to mdah, and when mdah answers it does so to apache/nginx who answers in their turn to the browser

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 16:31
by dextm80
How i can verify what process is using 443 port?

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 16:34
by epierre
sudo lsof -i tcp:443

[MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 16:35
by dextm80
Says domoticz

Why? I ven t configured it with secure access

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 27 December 2017 16:39
by epierre
I can't tell you, you can also have https on another port, but some enterprise firewall may block that.

Before I used to run on port 444 for https, and then I added a nginx in front that would protect my synology and other applications running at home.

Re: [MyDomoAtHome] Support thread

Posted: Tuesday 02 January 2018 10:27
by mcwieger
epierre wrote: Friday 22 December 2017 12:08 @mcwieger since @spuki confirmed, I'll release a version maybe tonight
I updated to 0.2.36 and it has been running for over 2 days now. It looks like it was fixed. Thanks!

Any way to donate to support?

Re: [MyDomoAtHome] Support thread

Posted: Saturday 06 January 2018 10:26
by dextm80
i've addes two zwave wall plug switch , i see in domoticz but not in imperihome, why?

Re: [MyDomoAtHome] Support thread

Posted: Saturday 06 January 2018 15:07
by Spucki
Reload switches in ImperiHome

Re: [MyDomoAtHome] Support thread

Posted: Saturday 06 January 2018 15:10
by dextm80
How?

Edit: ok i find it....now it works! thanks!

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 10 January 2018 18:39
by dextm80
hi, i've a problem.
Whit new installation i get this error:

192.xxx.100.x:3002/devices

Code: Select all

	
devices	
0	
id	"S00"
name	"Unable to connect to Domoticz"
type	"DevGenericSensor"
room	"Utility"
params	
0	
key	"Value"
value	"http://127.0.0.1:8080/json.htm"
1	
id	"S01"
name	"Please add this gateway in Setup/settings/Local Networks"
type	"DevGenericSensor"
room	"Utility"

192.xxx.100.x:3002

Code: Select all


    AppName: MyDomoAtHome
    MDAH: http://192.xxx.100.x:3002
    Domoticz: http://127.0.0.1:8080/json.htm
    NodeJS: v4.8.7
    Webmanager: EJS
    Renderer: Express

this is my config.json

Code: Select all

{
  "app_name": "MyDomoAtHome",
   "auth": null,
   "domoticz": {
        "ssl": false,
        "host": "127.0.0.1",
        "port": "8888",
        "path": "/",
        "auth": { "username": "admin", "password": "admin" },
   },
  "port": 3002,
  "passcode": ""
}

i try to modify host: 192.xxx.100.x without result, i'd set 8888 port on domoticz.sh

if i put auth: null all gone ok

Where is the error(s)?

thanks

Re: [MyDomoAtHome] Support thread

Posted: Saturday 20 January 2018 12:03
by gerardosamara
epierre wrote: Friday 01 September 2017 16:04
gerardosamara wrote: Thursday 03 August 2017 15:44 Hi , Before installing the Imperihome GW MyDomoAtHome in the new stable Domoticz release 8153 on last raspbian jessie , I looked a the related Wiki part

https://www.domoticz.com/wiki/ImperiHome

=> The wiki has to be updated
looks like you reported things in github, is the wiki correct now ?
Hi @epierre,

I take the opportunity of installing Strech+Domoticz on a new RPI 3 to test the updated Wiki for Rpi platform

1) Add RPI3 to "On RASPBIAN (Raspberry PI/PI2), please install first to have a stable nodeJS : "

2) Numbering the chapter to be followed would help ( step by step )

3) This step fails

-------------------------
Installing the software Debian package .deb

wget -qO - http://www.e-nef.com/domoticz/mdah/gpg.key | sudo apt-key add -
sudo vi /etc/apt/sources.list
-------------------

pi@raspberrypi:/ $ wget -qo - http://www.e-nef.com/domoticz/mdah/gpg.key | sudo apt-key add - sudo nano /etc/apt/sources.list

gpg: no valid OpenPGP data found.
gpg: can't open 'sudo': No such file or directory
gpg: can't open 'nano': No such file or directory
gpg: no valid OpenPGP data found.

Is it a known issue ?
Thanks

Re: [MyDomoAtHome] Support thread

Posted: Friday 26 January 2018 14:09
by epierre
mcwieger wrote: Tuesday 02 January 2018 10:27
epierre wrote: Friday 22 December 2017 12:08 @mcwieger since @spuki confirmed, I'll release a version maybe tonight
I updated to 0.2.36 and it has been running for over 2 days now. It looks like it was fixed. Thanks!

Any way to donate to support?
thanks ! you have it on the page: https://github.com/empierre/MyDomoAtHome

Re: [MyDomoAtHome] Support thread

Posted: Friday 26 January 2018 14:14
by epierre
@jimmy777 I've deleted full sections of the Imperihome wiki in domoticz linking to github.

@gerardosamara I'll check and modify for your remarks above.