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.
Comments
In the next release there will be an array of users created based upon the received messages. The current geofence a user is in is stored, as mentioned lon/lat.
This data can be viewed in the log part. Nothing is done with it yet.
The idea was to implement voice so you can ask "where is ingmar" and homey responds with the name of the geofence (and later the Adress based on lon/lat)
But I don't know how to implement that yet.
Have a problem with the config file, have add the following:
listener 9001 [ip-adres]
listener 1883 [ip-adrres]
But what do I add with websockets
only type
listener 9001
listener 1883
websockets
remove (if there is one ) user mosquitto.
remove mosquitto app from you NAS.
restart your NAS
instal mosquitto (but don't start it)
then do the folowing:
login with putty on your NAS with normal user name and passw
then type SUDO SU
then type your admin passw
then do the following
1) ssh to your synology and log in with your normal account
2) execute: cd /var/packages/mosquitto/scripts
3) sudo vi start-stop-status (you need to be root, hence the sudo), give your admin password when requested
4) using vi, comment the line which declares the USER such that it reads:
#USER="mosquitto"
be sure you save this correctly with ":wq!now you must find mosquitto.conf
/usr/mosquitto/ or something like that (because on my search everybody has another directory)
type VI MOSQUITTO.CONF
and put this three list at the bottom.
listener 9001
listener 1883
websockets
save this with ":WQ!
open poort 1883 on your router
now start mosquitto on you nas
Subscribing to that topic means that all topics beginning with owntracks/ are being received. The app itself will not trigger the card because it does not recognize the # wildcard (and will not because it will get triggered with every lon/lat change).
But you will see all messages that are received in the log. Besides that, I have uploaded a new version for approval that includes the userid addition.
Have mosquitto 1.4.9-5
i do not know if with -i you have root acces
Could it be that I have an other version of Mosquitto?
and by actie activeren ?
have to putt
listener 9001 [ip-adres]
listener 1883 [ip-adres]
protocol websockets
Here is an articel http://jpmens.net/2014/07/03/the-mosquitto-mqtt-broker-gets-websockets-support/
2) execute: cd /var/packages/mosquitto/scripts
3) sudo vi start-stop-status (you need to be root, hence the sudo), give your admin password when requested
4) using vi, comment the line which declares the USER such that it reads:
#USER="mosquitto"
So change
USER="mosquitto"
to
#USER="mosquitto"
listener 9001 ip-adres
listener 1883 ip-adres
protocols websockets
found it somewhere on the internet.
hope it work for you
However, after that check, no location updates where delivered or seen of either phone... Only if I switch on GPS on my phone, I get my current location in the App. But, it worked without GPS on my phone and my sons 6 phone too.
So, what could cause it to be broken after a successful start?
Now I get this... App on the android phone says connected, but still no report received (i think)