Page 7 of 8

Re: New iOS App for domoticz

Posted: Tuesday 08 March 2016 19:24
by safi78
digimate wrote:What could be (done) wrong?
I don't know, you aren't very 'verbose' ;)

You try to connect to your public IP, correct port on the outside, mapped to the correct (probably 8080) to the inside? Can you connect with a browser from the outside world?

I configured 2 servers in the app, which 'switch' automagically with geofencing. One for the private ip, one for the public ip.

I do the port-forwarding in my UPC-router, and 'new' forwards only seem to work after I configure the mapping, then reboot my router (yeah, nice...)

Re: New iOS App for domoticz

Posted: Tuesday 08 March 2016 20:31
by digimate
@Sander: Thanks for your reply.

Right now I can only connect with a local ip address.
When I use my WAN ip-address (or DNSS name) I can't.

I have no connect problems/issues with the (similar) Pilot app (iPhone), so no problems with the local or public ip-address.
I have no connect problems/issues by using a browser (iPhone/iPad/macbook) to connect with the local or public ip-address to domoticz (@synology: port 8084).

I have no problems with other devices (like my Synology, ip-camera's, and so on) which needs port forwarding.

When I try to add a new server (named Thuis) and with that try to connect by using the public ip-address the app continues to 'say': 'Kan geen verbinding maken met Thuis', so I can't connect with correct public ip-address, correct port (8084) and correct credentials. When I do save this settings the app crashes again and again. To solve this I have to delete the app and re-install it.

As said it works with the local ip-address and of course same data to log-on.

Once I got an error:
Could not connect to Thuis
De bewerking kan niet worden voltooid. Response status was unacceptable: 401

Re: New iOS App for domoticz

Posted: Tuesday 08 March 2016 20:38
by safi78
Hmmm that's weird indeed. Do you use Basic-Auth as well? That fixed the 401 for me?

Re: New iOS App for domoticz

Posted: Tuesday 08 March 2016 20:47
by safi78
Or some settings in the ip-ranges in domoticz that dont require authentication? Had a lot of fun with that once

Re: New iOS App for domoticz

Posted: Wednesday 09 March 2016 9:19
by mfranken
The issues with authentication started a couple of days ago (after commit https://github.com/domoticz/domoticz/co ... 70319e2ef4).

A number of users are having this issue (including me). Reverting back solves the issue. I will investigate the problem.

I am using LoginBased auth with HTTPS (real cert).

I saw

Code: Select all

Error: [web:8443] missing SSL DH parameters from file .... 
in my log

and then

Code: Select all

Error: [web:8443] Failed authentication attempt, ignoring client request (remote address: ....)

Re: New iOS App for domoticz

Posted: Wednesday 09 March 2016 10:19
by digimate
A number of users are having this issue (including me). Reverting back solves the issue. I will investigate the problem.
@mfranken: Thanks in advance!
What is the preferred/best way to logon with the domotix app? With the website-security account (works only with option Basic-Auth) or with the user account (Instellingen | Meer opties | Gebruikersinstellingen)??

@Sander: Thanks for your help! Despite still some errors in the log, the trick 'using Basic-Auth' did it for me! :)

Re: New iOS App for domoticz

Posted: Wednesday 09 March 2016 10:27
by mfranken
Both methods should work, I prefer LoginBased with 'website-security account'

Re: New iOS App for domoticz

Posted: Wednesday 09 March 2016 18:16
by cgaudry
mfranken wrote:The issues with authentication started a couple of days ago (after commit https://github.com/domoticz/domoticz/co ... 70319e2ef4).

A number of users are having this issue (including me). Reverting back solves the issue. I will investigate the problem.

I am using LoginBased auth with HTTPS (real cert).

I saw

Code: Select all

Error: [web:8443] missing SSL DH parameters from file .... 
in my log

and then

Code: Select all

Error: [web:8443] Failed authentication attempt, ignoring client request (remote address: ....)

What is the issue exactly ?
Did you change the -ssl**** arguments to start domoticz ?
For you, what is the version of domoticz that works and the one that does not work ?

Re: New iOS App for domoticz

Posted: Thursday 10 March 2016 0:03
by cgaudry
Dear all,

The error code 401 seems to be the HTTP status code 401 Unauthorized.
Domoticz replies HTTP 401 Unauthorized if your credentials are missing or erroneous, or the authentication request does not respect the Domoticz API.

Domoticz v2.3941 works using the default ssl arguments and Domotix v1.1.0. It also works when I use custom ssl arguments.
DomotiX uses the Login page API to login to the Domoticz server by send the request "/json.htm?param=logincheck&rememberme=true&type=command" :

Code: Select all

pi@raspberrypi ~/domoticz_test_2 $ sudo ./domoticz_test_2 -sslwww 10443
2016-03-09 23:51:07.941  Domoticz V3.4931 (c)2012-2016 GizMoCuz
2016-03-09 23:51:07.942  Build Hash: 8ede143-modified, Date: 2016-03-09 16:44:24
2016-03-09 23:51:07.942  System: Raspberry Pi
2016-03-09 23:51:07.942  Startup Path: /home/pi/domoticz_test_2/
2016-03-09 23:51:08.007  Sunrise: 07:16:00 SunSet:18:45:00
2016-03-09 23:51:08.007  EventSystem: reset all events...
2016-03-09 23:51:08.022  Active notification subsystems: (0/11)
2016-03-09 23:51:08.024  [web:8080] create server using settings : 'server_settings[is_secure_=false, listening_address='::', listening_port='8080']'
2016-03-09 23:51:08.025  WebServer(HTTP) started on address: :: with port 8080
2016-03-09 23:51:08.032  [web:10443] create ssl_server using ssl_server_settings : ssl_server_settings['server_settings[is_secure_=true, listening_address='::', listening_port='10443']', ssl_method='sslv23', certificate_chain_file_path='./server_cert.pem', ca_cert_file_path='./server_cert.pem', cert_file_path=./server_cert.pem', private_key_file_path='./server_cert.pem', private_key_pass_phrase='', options='default_workarounds,no_sslv2,single_dh_use', tmp_dh_file_path='./server_cert.pem', verify_peer=false, verify_fail_if_no_peer_cert=false, verify_file_path='']
2016-03-09 23:51:08.039  [web:10443] 'BEGIN DH PARAMETERS' found in file ./server_cert.pem
2016-03-09 23:51:08.040  WebServer(SSL) started on address: :: with port 10443
2016-03-09 23:51:08.045  Proxymanager started.
2016-03-09 23:51:08.048  Starting shared server on: :::10144
2016-03-09 23:51:08.048  TCPServer: shared server started...
2016-03-09 23:51:08.049  RxQueue: queue worker started...
2016-03-09 23:51:10.050  Domoticz Internal: Started
2016-03-09 23:51:10.051  EventSystem: reset all events...
2016-03-09 23:51:10.053  EventSystem: reset all device statuses...
2016-03-09 23:51:10.055  EventSystem: Started
2016-03-09 23:51:17.076  Incoming connection from: DOMOTIX_IP_ADDR
2016-03-09 23:51:17.269  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.271  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?param=logincheck&password=d41d8cd98f00b204e9800998ecf8427e&rememberme=true&type=command&username= HTTP/1.1" 200 24
2016-03-09 23:51:17.386  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.387  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?param=logincheck&password=d41d8cd98f00b204e9800998ecf8427e&rememberme=true&type=command&username= HTTP/1.1" 200 24
2016-03-09 23:51:17.391  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.392  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?param=getauth&type=command HTTP/1.1" 200 95
2016-03-09 23:51:17.474  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.475  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?param=getauth&type=command HTTP/1.1" 200 95
2016-03-09 23:51:17.483  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.497  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?type=settings HTTP/1.1" 200 1254
2016-03-09 23:51:17.560  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
To access DomotiCZ without crashing DomotiX you only need valid credentials (empty user or password works if Domoticz allows it) and at least one switch.

Re: New iOS App for domoticz

Posted: Sunday 13 March 2016 17:17
by jphermans
On my iPhone (5S) the app always crashes. Does not matter if i use a login/password or not.
I am using iOS 9.3 beta 6! Somebody that can help to solve the problem?

http://youtu.be/oI9ZP51ivYU

Re: New iOS App for domoticz

Posted: Monday 14 March 2016 13:06
by jeey
Just bought the app, and noticed that it doesn't show Usage for Powermeters in dimmers and such.

Is this normal ?

The app says No Utilities found, but if i view the domoticz webui it lists all my meters.

Re: New iOS App for domoticz

Posted: Monday 14 March 2016 15:46
by mfranken
The 401 issue was a bug in Domoticz that has been fixed by gizmocuz

Re: New iOS App for domoticz

Posted: Monday 14 March 2016 15:50
by mfranken
HI JP,

Send me a PM or an email to [email protected] to help us resolve your issue
jphermans wrote:On my iPhone (5S) the app always crashes. Does not matter if i use a login/password or not.
I am using iOS 9.3 beta 6! Somebody that can help to solve the problem?

http://youtu.be/oI9ZP51ivYU

Re: New iOS App for domoticz

Posted: Monday 14 March 2016 15:50
by mfranken
Hi jeey,

Meters should be visible in the Usage tab. Send me a PM or an email to [email protected] to help us resolve your issue
jeey wrote:Just bought the app, and noticed that it doesn't show Usage for Powermeters in dimmers and such.

Is this normal ?

The app says No Utilities found, but if i view the domoticz webui it lists all my meters.

Re: New iOS App for domoticz

Posted: Monday 14 March 2016 18:52
by safi78
Hi mfranken,

I'm interested in the 'disappearence of the Youless'-usage meters as well.

Like stated before, I have two (one for gas, one for power) that used to be 'there'.

New update made them vanish, can I help in any way?

Re: New iOS App for domoticz

Posted: Wednesday 16 March 2016 9:26
by mfranken
This issue is known and has been fixed by a new version that's currently pending AppStore review.
safi78 wrote:Hi mfranken,

I'm interested in the 'disappearence of the Youless'-usage meters as well.

Like stated before, I have two (one for gas, one for power) that used to be 'there'.

New update made them vanish, can I help in any way?

Re: New iOS App for domoticz

Posted: Wednesday 30 March 2016 22:40
by simon_rb
Hi, app looks good. Any chance of an Apple Watch App?

Cheers

Re: New iOS App for domoticz

Posted: Sunday 01 May 2016 12:40
by safi78
Yeay! iPad support :)

Would it be possible to also support 'landscape mode' ? (My ipad on the wall is positioned like that) :)

And, I still get two Youlesses for power (while one of them is my gas-meter). Anything I'm doing wrong?

Cheers!

Sander

Re: New iOS App for domoticz

Posted: Tuesday 03 May 2016 9:18
by mfranken
Hi Sander,

Landscape support is coming up! The Youless does not distinguish between gas and energy, so no way to tell the difference.
If you want me to take a closer look, send me your JSON output from domoticz.

cheers,
Michael
safi78 wrote:Yeay! iPad support :)

Would it be possible to also support 'landscape mode' ? (My ipad on the wall is positioned like that) :)

And, I still get two Youlesses for power (while one of them is my gas-meter). Anything I'm doing wrong?

Cheers!

Sander

Re: New iOS App for domoticz

Posted: Tuesday 03 May 2016 15:38
by safi78
mfranken wrote:Landscape support is coming up!
Great! Looking forward to it, this is really hurting my neck ;)
mfranken wrote:The Youless does not distinguish between gas and energy, so no way to tell the difference.
If you want me to take a closer look, send me your JSON output from domoticz.
Already did that couple of months/weeks ago, somewhere here in this thread...

Thanks for the great work :)

EDIT: here it is ;) viewtopic.php?f=36&t=5052&start=100#p60065