Page 10 of 25

Re: Android app

Posted: Thursday 20 March 2014 13:51
by fwehrle
Works fine for me with this nGinx config.
I use specific port and disable login/password in domoticz to use the one specified in the nGinx config file.
(Note : you can use directly 4443 port after forward it on your router, or forwrd it to the standard https 443 external port)

server {
listen 4443;
server_name mydomain.fr www.mydomain.fr;
port_in_redirect off;

ssl on;
ssl_certificate /xxx/yyy/ssl-unified.mydomain.fr.pem;
ssl_certificate_key /xxx/yyy/ssld.mydomain.fr.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass http://192.168.1.13:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
port_in_redirect off;
proxy_redirect http://192.168.1.13:8080 /;
proxy_connect_timeout 300;
auth_basic "Restricted https domoz root";
auth_basic_user_file /var/services/homes/admin/htpasswd_admin;
}
location /domoticz {
proxy_pass http://192.168.1.13:8080/;
proxy_redirect off;
auth_basic "Restricted /domoticz";
auth_basic_user_file /var/services/homes/admin/htpasswd_admin;
}
}

Re: Android app

Posted: Tuesday 01 April 2014 8:39
by sebas
I've send out an update to add support for weather devices yesterday evening. I already got some requests to add devices and I'll be adding them shortly. Please do report the weather devices you use so I can add support for them in Dromotica. I've also received a lot of requests to add other devices. Thanks for that, they will be added shortly.

I'll post my configuration this evening. Dromotica ignores if the certificate is from a trusted source solving most of the problems. However it does not work with certificates that are not for the domain that is set in the settings as the host. Please be carefull when issuing certificates that you use the domain that you've set in Dromotica to connect to Domoticz. Browsers will allow you to connect.

I'll see if I can find a way to support multiple users but it isn't high on the list :-) I think Android has support for multiple users using the same device as well. Might be a workaround.

Re: Android app

Posted: Tuesday 01 April 2014 8:46
by remb0
great news! the app is awesome. really fast, clean and easy.

I have mailed my energy & water meter + essent thermostat.
first energy was not implemented and the I saw a send button and now i got no option to send info but a empty block:
Devicename
Current - today
Actual - Daily

Delivery - Delivery Today
Actual - daily

last sen 00-00-0000 00:00:00 battery level 100.

Re: Android app

Posted: Tuesday 01 April 2014 9:23
by sebas
remb0 wrote:great news! the app is awesome. really fast, clean and easy.

I have mailed my energy & water meter + essent thermostat.
first energy was not implemented and the I saw a send button and now i got no option to send info but a empty block:
Devicename
Current - today
Actual - Daily

Delivery - Delivery Today
Actual - daily

last sen 00-00-0000 00:00:00 battery level 100.
Got your email. Question about the thermostat. Does Domoticz allow you to set the temperature? If so, in whole degrees or decimals?

It seems that for that device somehow the data that is received from Domoticz isn't placed on the card correctly. Do you know which device it is? I'll check.

Re: Android app

Posted: Tuesday 01 April 2014 21:16
by Ron
I received the update today, and after that switches are "on" while they should be "off".
It is possible to switch them to "off" again, but after a few seconds the status sets itself to "on"again...

Seems like the old bug came back.

Re: Android app

Posted: Tuesday 01 April 2014 21:43
by sebas
Ron wrote:I received the update today, and after that switches are "on" while they should be "off".
It is possible to switch them to "off" again, but after a few seconds the status sets itself to "on"again...

Seems like the old bug came back.
That's odd. Are those dimmers or other switches?

I would post my nginx configuration for using SSL to connect to Domoticz. This is the config I use. The certificates are issued by StartSSL.

Code: Select all

access_log off;
add_header Cache-Control public;
server_tokens off;
server  {
   include    /etc/nginx/proxy_params;
   listen 443 ssl;
   keepalive_timeout 70;
   server_name localhost;
   ssl on;
   ssl_certificate             /etc/ssl/ca/server.crt;
   ssl_certificate_key         /etc/ssl/ca/server.key;
   add_header X-Frame-Options SAMEORIGIN;
   location / {
     proxy_pass http://localhost:8080/;
     access_log /var/log/nginx/domoticz.access.log;
     error_log /var/log/nginx/domoticz.error.log;
   }
}

Re: Android app

Posted: Tuesday 01 April 2014 22:04
by Ron
sebas wrote: That's odd. Are those dimmers or other switches?
These are all dimmers, the switches are working fine.
It occurs at my phone and tablet.

The problem it exactly the same as i mentioned one page ago..

Re: Android app

Posted: Wednesday 02 April 2014 10:38
by andriej
Strange as hell, I have the same configuration of nginx like you + port forward straight to nginx on same port.
Everything works from every browser, but not from Dromotica. :-(

Re: Android app

Posted: Wednesday 02 April 2014 13:08
by gertjuhh
Same problem, dimmers keep showing "on" even though they are "off" within the Domoticz web interface.
App is connected directly to Domoticz, no nginx in between.

Re: Android app

Posted: Wednesday 02 April 2014 17:44
by sebas
andriej wrote:Strange as hell, I have the same configuration of nginx like you + port forward straight to nginx on same port.
Everything works from every browser, but not from Dromotica. :-(
Can you PM me your URL to access Domoticz? I don't need a login. With it I'll see if I can find out why it doesn't work.

I have the fix for the dimmers ready. The update is coming, I'm working on the thermostat to work with Remb0. It's in the same update so I'd like that have that work when I send out the update.

Re: Android app

Posted: Wednesday 02 April 2014 18:49
by wizzard72
Ron wrote:
sebas wrote: That's odd. Are those dimmers or other switches?
These are all dimmers, the switches are working fine.
It occurs at my phone and tablet.

The problem it exactly the same as i mentioned one page ago..
Same problem. Dimmers are off but dromotica reports they are on.

Re: Android app

Posted: Thursday 03 April 2014 23:40
by Ron
Thanks for the update, the problem is solved for me.
Did you find the cause of the problem, the last time you also fixed it with an update.

Re: Android app

Posted: Friday 04 April 2014 7:13
by jili
Hi, great work! Could you add in settings an option to master a refresh time for your app ? I notice that when your app refresh automatically in utilities section we lose the actual view and go at the beginning of the section

Re: Android app

Posted: Friday 04 April 2014 7:15
by jili
It will be great to have the possibility to display by room as I own many zwave devices with many child device.

Re: Android app

Posted: Friday 04 April 2014 7:19
by wizzard72
wizzard72 wrote:
Ron wrote:
sebas wrote: That's odd. Are those dimmers or other switches?
These are all dimmers, the switches are working fine.
It occurs at my phone and tablet.

The problem it exactly the same as i mentioned one page ago..
Same problem. Dimmers are off but dromotica reports they are on.
Everything works again. Thanks for solving it.

Re: Android app

Posted: Friday 04 April 2014 8:21
by sebas
Ron wrote:Thanks for the update, the problem is solved for me.
Did you find the cause of the problem, the last time you also fixed it with an update.
Somehow I've overwritten the code with the fix from the last update :?
Good to hear it's fixed (again).

Re: Android app

Posted: Friday 04 April 2014 8:46
by sebas
I'm looking for beta testers. More and more device types are added and different phones and tablets are used to work with Dromotica. I can't test them all and would like your help with testing. Distribution of the Beta version is handled by Google Play. You'll receive the latest beta version automatically after I've uploaded it. I'm working on a solution to report bugs and feature requests. To join as a beta tester please first join this community on google+ and after approval join the beta program through this link.

Re: Android app

Posted: Friday 04 April 2014 14:03
by jili
Sorry Sebas but the link tell us there is a problem, could you check ?

Re: Android app

Posted: Friday 04 April 2014 19:02
by sebas
jili wrote:Sorry Sebas but the link tell us there is a problem, could you check ?
Ah, I was hoping that Google would forward you automatically to the Google+ community. You will need to join this community first and then join the beta tester program through this link after approval.

Re: Android app

Posted: Friday 04 April 2014 22:53
by jili
Sebas ?
Is there a way to be beta tester without joining google+ community.

I dont usually use that sort of social app.

For exemple, I'm beta tester of an andrdoid app and didn't need to use google+.

If no choice I will do but prefer not.