Page 2 of 2

Re: Wifi status notifications (DLink DIR-655)

Posted: Tue Dec 11, 2012 5:15 pm
by Scope
krambriw wrote:I hacked your version a bit, maybe not the most beautiful and efficient code, but now I see connects & disconnects coming into the log...
Most changes was needed in the "parse_wifi_assoc_reponse" function.

If you do a file compare, you will easily see the modifications.

BR Walter

PS I notice that you many times end lines with a ';'
This should not be in Python
Hey again,
I have added parsing of the altered xml-response from the newer firmwares now.
And the semicolon is just an old habbit, which even the python-team seems to have some understanding for (since they are allowing it) :P

Kind regards,
Torbj├Ârn Westerlund.

Re: Wifi status notifications (DLink DIR-655)

Posted: Wed Dec 12, 2012 7:07 pm
by krambriw
Hi Thorbj├Ârn,
I think your latest version works ok, there are some limitations, I assume it is because the response is not holding all data anymore. If you look below, I have for reference pasted some events I receive.

Kind regards, Walter

(PS How did the TellStickDuo plugin work for you?)

Code: Select all

19:05:30   dir655.Wifi.Quality.Stable.14d64d50571e {'quality': 96}

19:05:42   dir655.Wifi.Quality.Change.003c05003925 {'last_reported_quality': 0, 'quality': 95, 'change': 95}

19:05:54   dir655.Wifi.Quality.Change.0004201ed335 {'last_reported_quality': 0, 'quality': 96, 'change': 96}

19:07:06   dir655.Wifi.Quality.Stable.003c05003925 {'quality': 95}

19:07:18   dir655.Wifi.Quality.Stable.0004201ed335 {'quality': 94}

19:12:42   dir655.Wifi.Quality.Change.003005002667 {'last_reported_quality': 0, 'quality': 96, 'change': 96}

19:28:21   dir655.Wifi.Connected.7cc3a116a974 {'ssid': 'Unknown', 'ip': u'192.168.10.104', 'rate': 58.0, 'type': u'11n', 'quality': 100, 'channel': 0}

19:28:57   dir655.Wifi.Disconnected.7cc3a116a974 {'ssid': 'Unknown', 'ip': u'192.168.10.104', 'rate': 58.0, 'type': u'11n', 'quality': 100, 'channel': 0}

19:30:09   dir655.Wifi.Quality.Stable.003005002667 {'quality': 100}


Re: Wifi status notifications (DLink DIR-655)

Posted: Wed Dec 12, 2012 7:43 pm
by Scope
krambriw wrote:Hi Thorbj├Ârn,
I think your latest version works ok, there are some limitations, I assume it is because the response is not holding all data anymore. If you look below, I have for reference pasted some events I receive.

Kind regards, Walter

(PS How did the TellStickDuo plugin work for you?)
Glad to hear that it is working now! You are correct about the limitations which are SSID and Channel which are not supplied by the new firmware.
It might be supplied if you add a Guest-network with another SSID. Just a guess though!
SSID and channel may be collected elsewhere, but it would be nice to know which SSID the connection comes from, if you are using a guest-network.

Tellstick DUO plugin worked like a charm, thanks! I had to cast some var to bool before I got i to work though, but not a big hazzle... let me check which line it was...
On line 988:

Code: Select all

bDebugCtrl.SetValue(bool(bDebug))
Perhaps I should've posted that in the Tellstick DUO-thread instead :D

Kind regards,
Torbj├Ârn Westerlund

Re: Wifi status notifications (DLink DIR-655)

Posted: Sat Mar 15, 2014 12:59 am
by oncemore
This could be pretty useful.

Would it work on my DIR-615?