Search found 20 matches

by hjzwiers
Wednesday 05 September 2018 20:50
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

Running a AC86u as main router and AC68u in AImesh mode. with #forcegeneric it sees all phones, but with quite a detection delay So I tried the newest version and added both the IP of the main and mesh router. This is the log: 2018-09-05 20:40:48.391 Status: (iDetect) Initialized version 0.6.2, auth...
by hjzwiers
Saturday 01 September 2018 23:18
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I added #forcegeneric and now all phones are "seen". I will see how this works the coming days.

Thnx
by hjzwiers
Saturday 01 September 2018 19:21
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I have an Asus AC86U and AC68U now working in AiMesh configureation. The AC86U is the main router, and now only the phones are detected connected to the main router, and not the mesh node. Any way in the future it can "see" both? Probably too much to want ;)

Thnx
by hjzwiers
Monday 19 February 2018 23:27
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I put debian jessie on the nuc and downloaded the RTL8168 driver (Linux by default puts the 8169 driver on)

I changed the ac68u firmware to 380.69.

No more errors in the speedtest (<1sec)

So there is a clear relation to the router firmware as well.
by hjzwiers
Thursday 15 February 2018 23:41
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I have tried to optimize the network settings RSAAuthentication yes PubkeyAuthentication yes UseDNS no GSSAPIAuthentication no Allowed users hjz Its not due to packet loss or the connection, ping shows good statistics. --- 192.168.1.1 ping statistics --- 539 packets transmitted, 539 received, 0% pac...
by hjzwiers
Wednesday 14 February 2018 21:29
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I ran your script (the ssh = subprocess.Popen line was not copied right but i corrected it based on the plugin) These are the times: 0:00:00.305547 (errors=0, maxtime=0:00:00.305547) > data:assoclist 00:04:20:F1:B9:4A 0:00:00.267185 (errors=0, maxtime=0:00:00.305547) > data:assoclist 00:04:20:F1:B9:...
by hjzwiers
Wednesday 14 February 2018 0:09
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I started reading about debugging and then I checked the domoticz.sh file. I installed Domoticz (on Linux 17.10 NUC platform) with the command sudo curl -L install.domoticz.com | bash Seems it fills in a default user pi !!!! I changed this to hjz, and all the errors have reduced .... Any tips on deb...
by hjzwiers
Tuesday 13 February 2018 23:00
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

Thanks for your effort. I have no problem doing any test, but I have no clue how to test this or get relevant data ....... I will google a bit as well.
by hjzwiers
Tuesday 13 February 2018 21:52
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

Making progress :-) I have two keys now, one from root and one from the user hjz. I used the hjz one, tested the connection from the command line, then installed the new version of Presence: Because of the errors in the logging I thought it was not working. But I just tested by putting phones in air...
by hjzwiers
Tuesday 13 February 2018 8:01
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I ran the test scripts: Last login: Mon Feb 12 20:48:52 2018 from 192.168.1.5 hjz@domoticz:~$ sudo ssh HJZ@192.168.1.1 -i /root/.ssh/id_rsa "wl -i eth1 assoclist;wl -i eth2 assoclist" [sudo] password for hjz: sh: wl: not found sh: wl: not found hjz@domoticz:~$ sudo ssh HJZ@192.168.1.1 HJZ@RT-AC68U:/...
by hjzwiers
Tuesday 13 February 2018 0:27
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I will check your input tomorrow evening, seems more our joining to solve this puzzle :-)

This evening i did check the last beta from Merlin, also produced the exact same error (that was RT-AC68U_384.3_beta2)
by hjzwiers
Monday 12 February 2018 0:53
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I have tested the manual "wl -i eth1 assoclist;wl -i eth2 assoclist" command from /home/hjz/ and as root (with different id_rsa & pub). They both work fine from the command line (also no error in the router logging). But I get the same error within the running domoticz: Error getting data from route...
by hjzwiers
Saturday 10 February 2018 21:01
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I did a full reinstall of the server From root I generated the command in a ssh session to the router: wl -i eth1 assoclist;wl -i eth2 assoclist (after installing the correct keygen in the root) root@domoticz:~# ssh HJZ@192.168.1.1 HJZ@RT-AC68U:/tmp/home/root# wl -i eth1 assoclist;wl -i eth2 assocli...
by hjzwiers
Friday 09 February 2018 23:29
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

Thanks for your help.

My router is also the Asus AC68u running the latest firmware 3.0.0.4.384_20308 (with AImesh support)

Error "User HJZ executing 'wl -i eth1 assoclist;wl -i eth2 assoclist' ", it seems it does not support the wl command.
by hjzwiers
Friday 09 February 2018 21:23
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

In the end I made a new key from root, deleted the old ons. That worked fine. The new error is because I flashed the router to AsusWRT, not Merlin, because I want to use the new AImesh functionality which is not supported in the Merlin release. It seems to be the cause. Is there a way the wl command...
by hjzwiers
Thursday 08 February 2018 22:27
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I did the commands but it has not been succesful, and this is the new ls -la drwx------ 2 hjz hjz 4096 Feb 8 21:22 . drwxr-xr-x 10 hjz hjz 4096 Feb 6 07:16 .. -rw------- 1 root root 1675 Jan 30 21:42 id_rsa -rw-r--r-- 1 hjz hjz 394 Jan 30 21:42 id_rsa.pub -rw-r--r-- 1 hjz hjz 0 Feb 8 21:22 known_hos...
by hjzwiers
Thursday 08 February 2018 7:56
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

Also the permissions of the stored id_rsa hjz@domoticz:~/.ssh$ ls -la total 20 drwx------ 2 hjz hjz 4096 Feb 6 22:28 . drwxr-xr-x 10 hjz hjz 4096 Feb 6 07:16 .. -rwx------ 1 600 root 1675 Jan 30 21:42 id_rsa -rw-r--r-- 1 hjz hjz 394 Jan 30 21:42 id_rsa.pub -rw-r--r-- 1 hjz hjz 314 Feb 6 22:29 known_...
by hjzwiers
Wednesday 07 February 2018 22:25
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

Thanks for your help. I ran the command, this is the result root 1947 /home/hjz/domoticz/domoticz -daemon -www 8080 -sslwww 443 hjz 19448 grep --color=auto domoticz I also made an overview of the file permissions hjz@domoticz:~/domoticz/plugins$ ls -la total 44 drwxrwxr-x 6 hjz hjz 4096 Feb 7 07:10 ...
by hjzwiers
Wednesday 07 February 2018 9:51
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I have moved my hardware setup to a NUC for a better performance (I had this plugin running before from a PI) I set up the keys from my home directory (/home/user/). Domoticz runs from /home/user/domoticz. I can ssh my router (AC68u) from the home directory without errors, no problem with the keys o...
by hjzwiers
Friday 12 January 2018 9:34
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 378
Views: 23186

Re: Python plugin: Presence detection from wireless router

I like the concept of the plugin. I have installed this plugin, can ssh (from /home/PI/ ) with user@ip_adress to the router (also a AC68U) without password, but in the Domoticz logging I only see the plugin start, no errors. On the router log I see the connection open en close, no errors. Attention ...