Geofence for Domoticz

Moderator: leecollings

Post Reply
forum026
Posts: 6
Joined: Friday 04 March 2016 7:39
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by forum026 »

Appesteijn wrote: If there are errors you should see them in a Toast (the short popup message). If your virtual switch does get switched on, the communication should be OK. And if the app give a notification when entering the geofence, that should work also.
You could also look into your location history at google and see if anything weird happens: https://maps.google.com/locationhistory/b/0

And you could try to see what happens when you place the geofence at another location (e.g. at work) to test if it works there.
There were not error messages. This weekend I updated the Domoticz software to V3.xxx and now it's working fine. :D
toreandre
Posts: 91
Joined: Tuesday 19 January 2016 12:51
Target OS: -
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by toreandre »

Is there any geofence for Windows phones?
User avatar
sisaenkov
Posts: 50
Joined: Friday 27 May 2016 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8
Location: Moscow, Russia
Contact:

Re: Geofence for Domoticz

Post by sisaenkov »

Can you add login page auth support in addition to basic-auth?
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

Not sure how that works, just a POST to the login form?

I'll have a look this weekend.

--Update: Didn't have time this weekend. I'll put it on the backlog for this app.
Craigarran
Posts: 7
Joined: Sunday 24 May 2015 16:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Craigarran »

Been using Pilot on an iPhone successfully for some time and now converted to Android and therefore attempting to use Domofence but all I get is "Error: <URL>". The URL is correct but I don't know where the error is coming from. Can anyone help please?
Raspi, RFXCom, Harmony Hub, Hive, Sonoff, ESP8266, LWRF, Alcto WS, X10
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

Craigarran wrote:Been using Pilot on an iPhone successfully for some time and now converted to Android and therefore attempting to use Domofence but all I get is "Error: <URL>". The URL is correct but I don't know where the error is coming from. Can anyone help please?
Maybe this post and my answer below it will help: http://domoticz.com/forum/viewtopic.php?p=75137#p75137
Craigarran
Posts: 7
Joined: Sunday 24 May 2015 16:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Craigarran »

Thanks for the help. I changed to Basic-Auth, still not change. I reloaded the app and it now works. Thanks again.
Raspi, RFXCom, Harmony Hub, Hive, Sonoff, ESP8266, LWRF, Alcto WS, X10
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

Craigarran wrote:Thanks for the help. I changed to Basic-Auth, still not change. I reloaded the app and it now works. Thanks again.
Good to hear!
amens
Posts: 7
Joined: Tuesday 03 May 2016 10:42
Target OS: Windows
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by amens »

I have been testing your application for a couple of days now, but it doesn't seem to work for me. The app is not recognizing my location somehow. Only a few times when I'm at home i got the message that the geofence was entered.

Are there know issues with a Samsung Galaxy Note 4?
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

amens wrote:I have been testing your application for a couple of days now, but it doesn't seem to work for me. The app is not recognizing my location somehow. Only a few times when I'm at home i got the message that the geofence was entered.

Are there know issues with a Samsung Galaxy Note 4?
A little late (was on vacation), but there are no known issues with your device. What ou could try is to open Google Maps when you are at home and the geofence isn't triggered. Look where you phone thinks you are.

Also it is advised (when you have problems with the geofence) to start with a large geofence (1000 meters for example) and look if that works. Then start making the geofence smaller 500, 250, etc.
PABben
Posts: 48
Joined: Friday 31 January 2014 14:32
Target OS: Windows
Domoticz version:
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by PABben »

Using reverse proxy at my place. If I specify the port, my proxy sends the request to that port on the firewall and not the server where it's supposed to go. Is it possible to do the "port" option not mandatory?
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

PABben wrote:Using reverse proxy at my place. If I specify the port, my proxy sends the request to that port on the firewall and not the server where it's supposed to go. Is it possible to do the "port" option not mandatory?
Yes it is, I'll look in to it today.

Edit: I just released a new version where the port number is optional. Your phone should update in a few hours (when google has distributed the new version)
PABben
Posts: 48
Joined: Friday 31 January 2014 14:32
Target OS: Windows
Domoticz version:
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by PABben »

Appesteijn wrote:
PABben wrote:Using reverse proxy at my place. If I specify the port, my proxy sends the request to that port on the firewall and not the server where it's supposed to go. Is it possible to do the "port" option not mandatory?
Yes it is, I'll look in to it today.

Edit: I just released a new version where the port number is optional. Your phone should update in a few hours (when google has distributed the new version)
Thank you! However, when i don't add a port number, it adds a ":" at the end of the url so the json url does'nt work ( "myserver.com:/" and not "myserver.com/")
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

PABben wrote: Thank you! However, when i don't add a port number, it adds a ":" at the end of the url so the json url does'nt work ( "myserver.com:/" and not "myserver.com/")
You should leave the field completely empty (so it reads 'Port'). Let me know if that doesn't work.
PABben
Posts: 48
Joined: Friday 31 January 2014 14:32
Target OS: Windows
Domoticz version:
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by PABben »

Appesteijn wrote:
PABben wrote: Thank you! However, when i don't add a port number, it adds a ":" at the end of the url so the json url does'nt work ( "myserver.com:/" and not "myserver.com/")
You should leave the field completely empty (so it reads 'Port'). Let me know if that doesn't work.
Still adding the ":" :)
Spoiler: show
Image
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

PABben wrote: Still adding the ":" :)
That is weird, tested it on a few phones of myself. You could try to remove and add the Geofence and see if that works, maybe saving the empty port number went wrong.

I just made checking of a valid port number more robust, so a new version should be on your phone in a few hours.

Let me know if it works.
PABben
Posts: 48
Joined: Friday 31 January 2014 14:32
Target OS: Windows
Domoticz version:
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by PABben »

Appesteijn wrote:
PABben wrote: Still adding the ":" :)
That is weird, tested it on a few phones of myself. You could try to remove and add the Geofence and see if that works, maybe saving the empty port number went wrong.

I just made checking of a valid port number more robust, so a new version should be on your phone in a few hours.

Let me know if it works.
Working perfectly now :) Thank you!
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

PABben wrote:
Appesteijn wrote:
PABben wrote: Still adding the ":" :)
That is weird, tested it on a few phones of myself. You could try to remove and add the Geofence and see if that works, maybe saving the empty port number went wrong.

I just made checking of a valid port number more robust, so a new version should be on your phone in a few hours.

Let me know if it works.
Working perfectly now :) Thank you!
Your welcome!
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Geofence for Domoticz

Post by sundberg84 »

Hi!

My domofence stopped working. Whatever i do (leave port empty or fill it in) i get fail test connection but it reports back (port 80). It will fail because i dont use port 80 but a custom one. It seems like its not possible to change to something else, it reports back fail port 80 whatever i enter.

Its a Samsung S6 with the latest domofence. I have tried reinstalled it and reconfig it.

Edit - im using a port above 9999 (5 digits) and this is the problem.
If i remove one digit it works. This must have changed in the last version - is it possible to change back?
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Geofence for Domoticz

Post by sundberg84 »

sundberg84 wrote:Hi!

My domofence stopped working. Whatever i do (leave port empty or fill it in) i get fail test connection but it reports back (port 80). It will fail because i dont use port 80 but a custom one. It seems like its not possible to change to something else, it reports back fail port 80 whatever i enter.

Its a Samsung S6 with the latest domofence. I have tried reinstalled it and reconfig it.

Edit - im using a port above 9999 (5 digits) and this is the problem.
If i remove one digit it works. This must have changed in the last version - is it possible to change back?

OK, something happened during tonight, not its not a timeout anymore... not i get a Error:Http://xxx.xxx..../json.html?..."
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests