**** BEGIN LOGGING AT Mon Aug 24 02:59:59 2015 Aug 24 08:24:50 morning Aug 24 09:23:17 Morning! Aug 24 17:58:37 morphis: ping Aug 24 18:48:43 nizovn: ping Aug 24 18:48:58 Herrie: pong Aug 24 18:49:42 I've been looking into 2 wifi things today where I think you might be able to help since they involve some C++ ;) Aug 24 18:50:03 1: Captive Portal (stuff like Wifi at airports, hotels etc that require you to login via browser). Aug 24 18:51:14 2: Public wifi by operator (for example UPC subscribers here can use all UPC hotspots with their account login details). This uses ieee8021x with username and password. Aug 24 18:52:12 For 1: It seems that connman has a property called LoginRequired which I believe we don't expose in the plugin. I suspec that should be fairly easy to add? Aug 24 18:53:08 https://github.com/aldebaran/connman-stable/blob/master/doc/service-api.txt#L176 Aug 24 18:53:39 If we were to expose the this property I could sort the rest I guess with banners, opening browser etc Aug 24 18:54:09 probably will be simple Aug 24 18:54:41 Could be as simple as adding it here: https://github.com/webOS-ports/luna-webappmanager/blob/master/src/extensions/wifimanager.cpp#l102 Aug 24 18:54:44 But not 100% sure Aug 24 18:54:51 I haven't looked that much into connman Aug 24 18:55:54 2 is a bit more tricky, it seems it needs a config file as per https://kernel.googlesource.com/pub/scm/network/connman/connman/+/1.26/doc/config-format.txt Aug 24 18:56:18 Not sure how Jolla and/or Ubuntu deal with this. It's a bit cumbersome needing to add this for every network manually Aug 24 18:56:56 Some more automated way would be good ;) Also it seems that I only get prompted for a password (didn't check if this is due to Settings or plugin). I suspect it might be both. Aug 24 18:58:16 did you try connect to captive portal? Aug 24 18:59:22 nizovn: Yeah I tried a while ago while I was in hotel, but it doesn't show any notifications to user Aug 24 18:59:25 It does work in general though Aug 24 18:59:36 If I open the browser go to www.google.com it will show me the login page Aug 24 18:59:45 But a notification like on 3.x would be nice to have Aug 24 18:59:55 So you can tap it and login Aug 24 19:00:01 The app for it is really simple ;) Aug 24 19:00:04 so you want to detect captive portals Aug 24 19:00:07 Only like 10 lines of Enyo code ;) Aug 24 19:00:48 nizovn: Yeah detect with the LoginRequire, then create a dashboard which would then trigger the browser at user's request Aug 24 19:00:57 Not sure you've ever seen it on 3.x? Aug 24 19:01:05 Or 2.x for that matter Aug 24 19:01:09 Works similar on both Aug 24 19:01:13 yeah, saw it Aug 24 19:01:21 For 2: It seems we're currently only passing a password Aug 24 19:03:01 From Settings. So we'd need to conditionally show the username field as well and pass that in. Aug 24 19:03:44 Seems we need to add the username here as well in the C++ plugin: https://github.com/webOS-ports/luna-webappmanager/blob/master/src/extensions/wifimanager.cpp#l147 Aug 24 19:03:55 Problem is that these aren't so easy to test ;) Aug 24 19:05:54 For 2 I have one at home I can test ;) Aug 24 19:06:18 For 1 I'd need to go to a place where they have it, but shouldn't be too difficult... I guess StarBucks might have one ;) Or somewhere around there :) Aug 24 19:06:35 We have quite some restaurants. I can just go with my phone or TP and see where they have captive portal :P Aug 24 19:06:41 And sit there and code on a sunny day :P Aug 24 19:09:51 Tofe: ping Aug 24 19:09:55 ok, seems i have captive portal in home :) Aug 24 19:10:23 :D Aug 24 19:10:26 That's nice :D Aug 24 19:10:45 I think when you expose the LoginRequired the rest should be easy from my end ;) Aug 24 19:10:50 Code in legacy is really simple for it Aug 24 19:12:59 but we will need to have settings app open to detect captive portal Aug 24 19:13:47 Hmmz :S Aug 24 19:14:00 Maybe would be better if somehow the connman deamon would trigger it :S Aug 24 19:14:04 morphis: suggestions? Aug 24 19:14:31 We could possibly run Settings as hidden/noWindow but that's a bit nasty Aug 24 19:15:22 btw we can pair with bt device only when settings is open, but this behaviour was also in legacy Aug 24 19:15:58 nizovn: That's OK for now Aug 24 19:16:04 The same for WiFi currently ;) Aug 24 19:16:22 We might want to change that at some point but for now it's most important it works :D Aug 24 19:19:44 i mean when pairing request created from another device(maybe unexpectable), we already should have settings open Aug 24 19:20:19 normally yes. I think currently for the captive portal we're OK with settings too Aug 24 19:20:31 Because you connect to WiFi in Settings normally as well in most cases Aug 24 19:20:37 We can always tweak it further later Aug 24 19:24:44 seems libconnman-qt doesn't support LoginRequired for now Aug 24 19:30:04 Herrie: pong Aug 24 19:34:23 Tofe: Had any luck with the dashboard metrics units.gu stuff? Aug 24 19:34:50 Herrie: I'm still investigating the browser crash Aug 24 19:35:18 Ah ok : Aug 24 19:35:20 : Aug 24 19:35:22 :D Aug 24 19:35:27 Hmmz D is wearing out :P Aug 24 19:35:52 Good to see you didn't give up on it :D Aug 24 19:48:30 nizovn: Strange that's not exposed by libconnman-qt :S Aug 24 19:48:47 seems it's even removed from connman Aug 24 19:51:45 nizovn: Hmmz :S Aug 24 19:51:51 It must have moved somewhere you'd say :S Aug 24 19:52:01 I could only find it in the documentation, but not in the code :S Aug 24 19:52:55 http://git.kernel.org/cgit/network/connman/connman.git/commit/doc/service-api.txt?id=fa54ada1a44c97165690e548719231de23756e74 Aug 24 19:54:26 ok it's now called RequestBrowser Aug 24 19:54:36 Ah well renamed then :P Aug 24 19:55:10 https://github.com/nemomobile/libconnman-qt/blob/master/libconnman-qt/useragent.cpp#L167 Aug 24 19:55:27 Seems that Jolla guys have something. Not sure that's custom or standard QT stuff Aug 24 20:08:31 so seems it's ease to implement Aug 24 20:08:40 s/ease/easy Aug 24 20:09:38 :D Aug 24 20:10:01 I already figured that one would be Aug 24 20:10:19 The 2nd one with ieee8021x might be trickier? Aug 24 20:37:26 i think your suggestion about replying username is right Aug 24 20:38:20 nizovn: I have Horizon Hotspot from UPC/Ziggo here in NL (which is our cable provider) Aug 24 20:38:27 They require both username + password Aug 24 20:38:38 I understood some ieee8021x might require a certificate as well Aug 24 20:39:58 But we can tackle the different ones as we meet them :) Aug 24 20:40:04 Rome wasn't build in a day ;) **** ENDING LOGGING AT Tue Aug 25 02:59:58 2015