**** BEGIN LOGGING AT Sat Feb 27 02:59:58 2016 Feb 27 06:53:17 pong Herrie Feb 27 06:53:21 Good morning Feb 27 06:53:44 morning Feb 27 06:53:54 elvispre: Forgot my question LOL ;) Feb 27 06:54:04 Ah I guess if you could test something when you got time Feb 27 06:54:21 I'm looking into switching to Google Location Services for more accurate location ;) Feb 27 06:54:38 Requires a single config file + reboot to test Feb 27 06:54:45 To see if it gets more accurate Feb 27 06:54:52 Mozilla gets me 10-15 km from where I am Feb 27 06:54:57 Google seems a lot better Feb 27 06:55:10 Herrie: OK. What should I do? Feb 27 06:55:18 Try in Maps app with N4 to see what you get as location now Feb 27 06:55:36 "Now?" Feb 27 06:55:47 Do I need a particular image? Feb 27 06:56:42 elvispre: Any image, just make sure you're connected to WiFi Feb 27 06:59:47 "Location error: unknown" Feb 27 06:59:50 STart Maps app, it'll load a map, center on US, California, then it will shortly after zoom to your location Feb 27 07:00:19 You get the map at least? Feb 27 07:00:42 I have a map of California :-) Feb 27 07:00:49 LOL Feb 27 07:00:54 OK well wifi works thn Feb 27 07:01:01 I could go outside? Feb 27 07:01:09 It doesn't use GPS Feb 27 07:01:22 2 secs Feb 27 07:01:28 Let me find the file to push and put it somewhere Feb 27 07:03:31 Put http://www.herrie.org/geoclue.conf to /etc/geoclue/ and reboot Feb 27 07:03:46 This enables the Google Location Services instead of Mozilla one Feb 27 07:05:53 Bear with me... Feb 27 07:07:51 just "adb push geoclue.conf /etc/geoclue/" should do Feb 27 07:08:16 I have to find where emacs has saved the file first... Feb 27 07:11:32 morning Feb 27 07:12:55 nizovn: morning Feb 27 07:13:15 If you have a chance to test to compare Mozilla & Google Location Services that would be great too Feb 27 07:15:04 Herrie: Now it thinks I am in the United Kingdom. Feb 27 07:19:54 Anywhere close to you? Feb 27 07:20:21 Not even close. Looks like the geographical centre. Feb 27 07:20:52 With me on my VirtualBox it got pretty close to me ;) Feb 27 07:20:59 Charging N4 now to test Feb 27 07:21:53 I might well have an IP6 address. Maybe it can't tell where that is. Feb 27 07:22:27 elvispre: That could be Feb 27 07:22:42 It would normally send WIFI Mac addresses though I think to Google Feb 27 07:22:50 And then based on that determine where you are Feb 27 07:22:58 At least that's one of the features Feb 27 07:23:01 Booting N4 now to test Feb 27 07:24:47 Herrie: My WiFi network is only a week or two old as well. Google may not have worked out where it is yet. (Cool experiment.) Feb 27 07:25:14 elvispre: It normally sends an array of available networks to Google and determines based on that AFAIK Feb 27 07:25:24 nizovn: ^ Is that correct? Feb 27 07:26:39 For me: http://herrie.org/mozilla.png and http://herrie.org/google.png Feb 27 07:26:54 Google one is for sure closer, I'm in the blue circle at least Feb 27 07:27:06 Herrie: not sure exactly Feb 27 07:27:33 for me mozilla's location is closer Feb 27 07:27:39 elvispre: It's 200m from my apartment, so quite good Feb 27 07:27:46 :-) Feb 27 07:28:12 While Mozilla is 10km out Feb 27 07:28:37 nizovn: Yandex also has location services with Google API syntax :P ? Feb 27 07:28:42 Might be cool to test that Feb 27 07:28:50 Mozilla & Google are syntax compatible Feb 27 07:31:02 nizovn: By the way, I still have never managed to connect to a hidden WiFi network. Have you? What combination of path, security, password, name, hidden should I have in the connectNetwork call? Feb 27 07:35:18 Herrie: Testr Geolocation: PalmBus gives me what looks like a good location but html5 does not respond. Feb 27 07:37:34 Herrie: Actually, no, that PalmBus location is the same as what Maps is showing me. (Makes sense.) Feb 27 07:40:57 elvispre: "path" is known wifi path which has empty name & required security; "name" && "password" should be requested from user; "hidden" is not used Feb 27 07:41:09 yes, i'm connected to hidden network right now Feb 27 07:43:34 nizovn: Thanks. I'll try again (with more certainty). Feb 27 07:43:37 Herrie: for me mozilla's circle center is closer, but google's radius is ~3 times smaller Feb 27 08:09:29 nizovn: When I try to connect to my hidden network, I make the call with name, path, security and password set; but the log shows "Uncaught TypeError: Cannot set property 'password' of undefined" Feb 27 08:13:55 * elvispre is having so much trouble with Ubuntu lately. The N4 USB makes it hang (*hard*) regularly and last night's update, renders it almost unbootable. Feb 27 08:18:28 nizovn: Ignore that. That is my own typo! Feb 27 08:18:43 ok Feb 27 08:22:06 * elvispre notices that "that" is not the right password for his hidden network :P Feb 27 08:29:38 nizovn: CONNECTED! :-) Feb 27 08:30:47 nizovn: Probably you sometime submitted your location to Mozilla so it knows to find you, but it only has 1 network. Your neighbours probably submitted their networks to Google, hence the smaller circle :P Feb 27 08:38:54 elvispre: ok, good :) Feb 27 08:39:39 I'll tidy this up and do a Settings PR today. Feb 27 08:42:46 Herrie: i think google is more precise, and mozilla is simply lucky(in my case), because its circle covers whole city, but center is close Feb 27 08:43:16 nizovn: OK Feb 27 08:43:26 I'll see how to get a config file in the recipe Feb 27 08:43:43 Recreating my build environment, will test upgrade from 2.2.0 to 2.4.1 as well Feb 27 08:45:33 is it good to use hardcoded google api key, or user should supply his own? Feb 27 08:45:45 nizovn: It's OK for now Feb 27 08:45:58 In case we get a too big userbase we'd need to see what we can do license wise Feb 27 08:46:07 But I think we're OK with 2500/day for now :) Feb 27 08:46:52 It's on the WebOS Ports Google account, so we can always update to a paid license later if needed with the same key I guess Feb 27 08:47:39 ok Feb 27 10:59:02 Tofe: ping Feb 27 11:18:17 Herrie: pong Feb 27 11:18:23 and https://github.com/webOS-ports/org.webosports.app.phone/pull/41 tested on N4 Feb 27 11:27:29 Tofe: OK Feb 27 11:27:51 Can you read log adn test Maps on your N4 with current image and my adapted geoclue.conf file? Feb 27 11:28:12 To see if Mozilla or Google gives you better accuracy Feb 27 11:28:17 So far it's 3-0 for Google :P Feb 27 11:30:21 Where is the adapted geoclue.conf ? already in the image? Feb 27 11:30:41 ah, it's the "read the log" :) Feb 27 11:31:16 Tofe: Put http://www.herrie.org/geoclue.conf to /etc/geoclue/ and reboot Feb 27 11:31:21 First try with current config Feb 27 11:31:28 I got 10 km from me as location :P Feb 27 11:32:20 rebooting Feb 27 11:33:35 about 1km away Feb 27 11:33:37 Google 200 or so m :P Feb 27 11:33:54 So Mozilla was 10km, Google 200m for me Feb 27 11:34:54 Herrie: how do you know which one is being tested? by editing the .conf? Feb 27 11:35:28 edited conf = Google Feb 27 11:35:36 For me: http://herrie.org/mozilla.png and http://herrie.org/google.png Feb 27 11:37:27 ok, edited = 1km away, and I'm going to test mozilla now Feb 27 11:38:14 there is no need to reboot btw Feb 27 11:38:20 ah, too late :p Feb 27 11:38:56 oh.. Feb 27 11:39:19 hey, mozilla wins! 300m ! Feb 27 11:40:59 btw, there's a slight miscalculation of the position, which changes a bit when zoomin on the map Feb 27 11:41:25 Could be because of the projection used, though Feb 27 11:42:35 Tofe: OK Feb 27 11:42:42 Well that makes it 3-1 for Google still :P Feb 27 11:42:54 Well nizovn's Mozilla was closer but a much larger circle Feb 27 11:44:19 Ah, good remark, that's also my case Feb 27 11:44:54 I could be anywhere in Paris + near suburbs ! Feb 27 11:45:26 So I guess we're benefiting from switching to Google (we have a limit of 2500/calls a day currently which isn't an issue yet, might get in the future). I'll see if I can bump GeoClue to 2.4.1 from 2.2.0 Feb 27 11:45:59 Are we really using our gps, or is it just wifi geolocation ? Feb 27 11:46:06 Tofe: WiFi Feb 27 11:46:10 GPS is a different story Feb 27 11:46:21 GeoClue2 supports it, but only using ModemManager Feb 27 11:46:43 Not using oFono, GeoClue2 dev isn't a big fan of oFono it seems :P Feb 27 11:47:41 ok Feb 27 11:47:42 See: http://zee-nix.blogspot.nl/2014/06/ofono-its-dead-jim.html?m=1 Feb 27 11:48:09 He did however make GeoClue capable of more easily plugin oFono if we'd want: https://cgit.freedesktop.org/geoclue/commit/?id=c84a0972058de25e2a4eb987458f31317bcf47a6 Feb 27 11:50:13 I recall Jolla uses GeoClue 0.x still probably Feb 27 11:50:25 So they don't have this issue I think Feb 27 11:53:06 Seems mer guys have something that might be partially re-used to plug oFono into GeoClue 2? https://git.merproject.org/mer-core/libqofonoext/commit/0d880d7d4dec33e623385058967c845477fdfb26 Feb 27 11:53:12 Seems to list modems etc. Feb 27 12:04:35 Not sure what would be the best approach here, there are different ways. Another would be through libhybris I guess somehow Feb 27 12:04:48 But this might be easier? Maybe nizovn or morphis have an opinion? Feb 27 12:20:35 when i thought about this, my idea was to add support for any gps service to geoclue (probably using nmea network source), and then add libhybris support to gps service Feb 27 12:26:28 nizovn: I think they already have NMEA now Feb 27 12:26:32 THey added it after 2.2 Feb 27 12:29:06 nizovn: See http://blog.gmane.org/gmane.comp.gnome.geoclue Feb 27 12:29:30 2.3.0: Add a network NMEA source, which together with this application: https://wiki.gnome.org/Apps/GeoclueShare allows you to use the GPS of your Android device on your geoclue-enabled machine. Feb 27 12:34:40 Just not sure if we need anything to get NMEA working. I think it uses ModemManager for that where we have oFono Feb 27 13:18:17 Herrie: not sure, i think we should use libhybris for gps, not ofono Feb 27 13:39:31 nizovn: Not sure either, will dig a bit. Might be we can use oFono directly since it uses RILMODEM from Android already Feb 27 13:51:05 oFono seems to support GPS directly Feb 27 13:51:37 https://github.com/c4milo/ofono/blob/master/doc/features.txt#L537 Feb 27 13:51:49 And https://lists.ofono.org/pipermail/ofono/2010-December/006767.html Feb 27 14:12:40 ok Feb 27 14:27:13 So I doubt we need the hassle of libhybris as additional layer. Should be a matter of querying oFono in GeoClue similar like they do for ModemManager? Feb 27 16:27:06 Herrie: dunno.. Feb 27 16:27:56 nizovn: A worry for later I guess Feb 27 16:27:58 Let Feb 27 16:28:08 's first get MediaIndexer & Audio Service sorted :) Feb 27 16:28:23 right :) Feb 27 16:34:42 Having any luck with mediaindexer? Feb 27 16:35:14 not yes, will have time tomorrow Feb 27 16:46:44 :) Feb 27 18:16:12 Tofe: Where you got the data for PhoneNumberMetadata.js from? Just want to know so I can see if it's up to date etc Feb 27 18:39:07 It's up to date, because we generate it from the xml file from Google Feb 27 18:39:20 using the python script Feb 27 18:41:05 Tofe: Ah OK :) Feb 27 18:41:14 Well as up to date as Google then ;) Feb 27 18:41:28 Which can be improved but it's a good start Feb 27 18:41:52 I might do something on that if I feel like, though I don't feel much like improving Android :P Feb 27 18:42:10 :) Feb 27 20:23:09 Herrie: do you remember if, in the phone app on Legacy, when you have an unknown number in the call history and you add a contact corresponding to the unknown number, the call history will be updated? **** BEGIN LOGGING AT Sat Feb 27 21:36:26 2016 Feb 27 21:57:19 Tofe: Not 100% sure, but to me that would be a logical thing to do Feb 27 21:57:28 I think it does it on legacy **** ENDING LOGGING AT Sun Feb 28 02:59:59 2016