@metbril Thanks to your advice, I had make a pull request on home-assistant.github.io, would you please help to review my request?
This is the 1st time for me to participate such a big open source project, please let me know if there’re something more I need to improve.
i would like to know how i can integrate it into my hassio ?
i have a airport extreme, and would like to use it for tracking when i’m connected in my wifi
No didn’t try it because this router will not be renewed by Apple so one day or an other i will need to buy an other router from an other brand.
I’ve made something different but for me do the same thing,
in place of using wifi tracking, i’ve made tracking based on enter/exit home zone with a radius 20m, so basically when i enter/exit my home.
Hi @XCray It seems like no matter what I do, I cannot seem to get the apple_airport process to show up when I send messages to the network syslog… I’m pretty sure I configured everything correctly. For some time in my /var/log/syslog, it was showing me a permission denied error for the script that was in my homeassistant config directory, but I changed the group and owner to syslog and now I get no feedback whatsoever about the script in the log… All I have in the log is the following:
Mar 31 20:37:29 myhost systemd[1]: Started System Logging Service.
Mar 31 20:37:29 myhost rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.32.0]
Mar 31 20:37:29 myhost rsyslogd: rsyslogd's groupid changed to 106
Mar 31 20:37:29 myhost rsyslogd: rsyslogd's userid changed to 102
Mar 31 20:37:29 myhost rsyslogd: [origin software="rsyslogd" swVersion="8.32.0" x-pid="30962" x-info="http://www.rsyslog.com"] start
Mar 31 20:38:51 myhost systemd-resolved[870]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Mar 31 20:38:58 myhost rsyslogd: Child 31443 has terminated, reaped by main-loop. [v8.32.0 try http://www.rsyslog.com/e/0 ]
Mar 31 20:53:25 myhost hassio-supervisor[2460]: #033[32m19-03-31 20:53:24 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token#033[0m
Is there any way to get some more debug information about what’s going on with the script or even getting executed?
Is this the firewall locally on the server where you are running rsyslogd? If so, what OS are you on? I’m quite sure nothing could be blocking ports internally on my network, unless this service is blocked by default on Ubuntu itself.
It must be auth problems, I struggled with this from beginning but after added this in my HA conf it works perfekt, no need for http_password in py file just leave as it is
Okay, so it turns out to be SSL that’s messing everything up… I turned off SSL and authentication on local subnet and everything and I could get it going. But I’m not willing to run without SSL. With everything exactly the same and SSL on, it doesn’t work. The following command works to access the API:
curl -X GET -H "Content-Type: application/json" https://MYHOST:8123/api/config?api_password=MYPASS --insecure
the --insecure option seems to be the key but I can’t figure out how to do something similar in the script. I have the URLs defined as https:// but the script doesn’t work with https turned on.
Does anyone know how to do something like the --insecure option in CURL with python’s POST() method?