This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed Solved
[Solved] Geo location doesn't load
roel_hendr
Member
Hi,
In the settings of Homey there is Location. When I click it, nothing happens. See screenshot...
Can someone help me with this?
Also when I ask Homey the current time, its wrong. Its 2 hours earlier according to Homey. Don't know if this is related to the problem about location?
In the settings of Homey there is Location. When I click it, nothing happens. See screenshot...
Can someone help me with this?
Also when I ask Homey the current time, its wrong. Its 2 hours earlier according to Homey. Don't know if this is related to the problem about location?
Tagged:
This discussion has been closed.
Comments
@zowieke
At this moment it is (remote ) working for me.
Don't know if 3 hours ago Google Maps or the API has had an hick up.... (why else you both have problem while it is working correct for weeks/months)
Your time on Homey, seen from Settings - System - Stuff for geeks!
is that date 2 hours before?
Nice That's ZULU time ;-) that is correct!
If date_human is 2 hours earlier maybe your Homey doesn't get the correct time!
Does your Router provide a NTP time server? maybe check!
Pls restart homey once by pulling the plug, power-up and look at it after everything is loaded.
This is a screenshot from my Stuff for geeks:
At the moment of the screenshot the time is about 09:10 on my laptop.
Thank you for your reply.
Tried this morning again, with same result. Page is still not showing up, only the loading icon is visible.
Restarted Homey yesterday 4 times with no solution. Restarted Homey again this morning, again no solution.
About the time:
Yes, the date is GMT.
But the date_human is also GMT, while it should be GMT+1 DST.
Like @roel_hendr mentioned, if you ask Homey the time it is 2 hours early.
My router does not have an NTP server. There is no active NTP server on my network.
Also I do not block Google, Google API's or Google Maps in any way on my network.
When i open the page and check the console in Chrome, it gives me the errors and warning below.
When i try to open the mentioned URL with HTTP-500 error, it gives me status: 500, result: unknown_location
I'm in The Netherlands, my location can be found by any device in this house or neighborhood.
Is there any way to fix this? Can i SSH into Homey to change the settings?
Thank you in advance.
Location, timezone and time are set correctly now.
@roel_hendr
If you want to fix your issue too:
You will need a browser like Chrome or Firefox.
Open the Location settings page.
Press F12 to open the console.
On the console enter the following:
Homey.api("PUT","/",{latitude:52.3702157,longitude:4.8951679,mode:"manual"})
Confirm with Enter. When you reload the page, it should load correctly and have set your location to Amsterdam. From here you can change the setting and your location if preferred.
Hope this helps.
Where did you find that API command? I am learning here....
I see you both joined recent, was this after the first setup?
I guess the location has never worked before on your Homey?
For both, what version homey you run?
I see the latest stable v1.3.1 for @roel_hendr for you the same?
Maybe this is a new issue in that stable.
Did you already looked how to report issues on github?
@roel_hendr if you didn't fix it yet, pls go to system settings and send logs. Pls report the log number here or in an github issue. And maybe a second log after the fix if it works for you.
And for @zowieke the same but only logs after :-)
@bram (Athom's support and commuity manager), do you know if this is an known issue? Pls ask the responsible developer to read this issue above!
I send the logs before the fix, I received log number: 0D8190B402. When applying the fix @zowieke
mentioned I see following:
After reloading the page it still doesn't work
Does this ring a bell for you experts?
Homey.api("PUT","/manager/geolocation/",{latitude:52.3702157,longitude:4.8951679,mode:"manual"})
And reload the page I get following:
Only when I then choose for "Vind mijn locatie automatisch", it shows following:
The map stays blurred and never returns. Can it be something related to GPS inside Homey?
I use JavaScript a lot for work, so i know a little how it works <span></span>
@roel_hendr I see you got it working. If the page loads, it's what you want. You should then be able to do the settings, like automatic location or manual, and if manual select a location (map not blurred, only blurred when automatic location is selected).
@bvdbos I had the issue in both 1.3.1 and 1.5.0 RC5, so it is not an issue with FW 1.5.
In my opinion, when setup is complete and no location is set, the page should always load and ask one for the location to set (or choose automatic). Perhaps include it in the setup procedure.
I am now on 1.3.1 and can select my location and settings for location.
I do not have the issue with a blurred map when i select manual location. So the referenced issue does not apply to my configuration.
I have the same problems !
As @roel_hendr mentioned it seems maybe not to work.
If this is the case, right click on the main part of the webpage (where the loading icon is) and select "Inspect". The Developers Tools will switch to Elements tab, change back to Console and try again.
This worked for me.
When done, reload your entire webpage.
Probleem: Homey time (date_human) is 2 Hours before the real "Amsterdam time" and the timezone field is not empty. At the tap location is the donot running.
Homey.api("PUT","/manager/geolocation/",{latitude:52.3702157,longitude:4.8951679,mode:"manual"})
The response I got was: Reference Error: Homey is not defined.
So apparently I need to define Homey. But how do I do that?
Regards Bobby
Go to https://my.athom.com/#/ and login
Select your Homey.
open Develper tools (Ctrl-Shft-I) and put it there...
did you try as follows:
it looks like this:
after this you should be able to open the Settings - Location and see your PIN for Homey in Amsterdam. Zoom into the map ans place the Pin where you live.