**** BEGIN LOGGING AT Sat Feb 13 02:59:58 2016 Feb 13 08:54:56 Morning! Feb 13 09:17:55 Tofe: morning! Feb 13 09:18:08 You have any idea why the vibrate feedback might not work for the keys in phone app? Feb 13 09:18:15 I see everything correct on desktop :S Feb 13 09:18:28 My console.log doesn't seem to output much either on device Feb 13 09:18:45 for the keys? you mean any typing on device? Feb 13 09:19:04 Tofe: Yeah for phone kb when you enable vibrate in Tweaks Feb 13 09:19:42 I didn't even try it yet, I'm still thinking on the geocoding stuff Feb 13 09:21:20 Somehow I don't see my console.log entries ending up in journalctl Feb 13 09:21:29 While I know I have the right file on device Feb 13 09:26:10 Tofe: http://tinypic.com/r/2cxzwpy/9 Feb 13 09:26:17 I get logging in QtCreator Feb 13 09:35:56 you get vibrate success? Feb 13 09:37:29 when I try to call the luna vibrate call by hand on device, it doesn't vibrate Feb 13 09:37:41 so the issue isn't in LNC Feb 13 09:37:46 I mean phone Feb 13 09:38:18 morning Feb 13 09:44:08 Tofe: It seems the call is too short Feb 13 09:44:12 I already made it longer Feb 13 09:44:55 Tofe: luna-send -n 1 luna://com.palm.vibrate/vibrate '{"period": 100, "duration": 180}' Feb 13 09:44:58 THat works for me Feb 13 09:45:24 Not sure where I got the period 0 from before, I thought legacy but could be typo Feb 13 09:45:55 ok, well, if you put period:100 in the QML file, it works? Feb 13 09:47:00 Tofe: No ;) Feb 13 09:47:21 but it returns success? Feb 13 09:47:38 Tofe: I don't get logging in journalctl for my console.logs so cannot see :P Feb 13 09:47:47 Or I shoudl check ls-monitor? Feb 13 09:48:14 ah, no logs is always annoying Feb 13 09:48:29 yes ls-monitor could be a way, in this case Feb 13 09:49:33 Tofe: Hmmz it says there period: 0 while I clearly have 100 in my QML :S Feb 13 09:55:39 works on my device. Check yours! Feb 13 09:56:42 but put 10ms of duration instead of 180ms, the latter is really too long Feb 13 09:56:59 it's a feedback, not an alarm :p Feb 13 10:04:48 Tofe :S Feb 13 10:06:00 Tofe: The luna-send works or QML? Feb 13 10:06:04 QML Feb 13 10:06:14 well, both Feb 13 10:06:26 Not sure why mine doesn't :S Feb 13 10:06:58 not sure either... sure about the "period" value in the QML file ? Feb 13 10:07:07 restarted phone app? Feb 13 10:07:27 make sure you kill it by hand, not via UI Feb 13 10:07:49 because it stays in background Feb 13 10:08:17 I did a LNC restart Feb 13 10:08:20 Even full reboot Feb 13 10:08:22 Let me try again Feb 13 10:09:30 I'm puzzled :S Feb 13 10:10:00 "computers is just about logic", they say... well, theoretically! Feb 13 10:11:02 The good news is, your code works, apart from the period value Feb 13 10:11:15 Tofe: Yeah Feb 13 10:11:22 Not sure why it doesn't for me :S Feb 13 10:12:06 it still sends period:0 ? Feb 13 10:12:19 It seems so :S Feb 13 10:12:50 and "grep DialerPage period" tells the contrary? Feb 13 10:13:15 It also still sees 180 :S Feb 13 10:13:39 Not sure... I pushed the DialerPage.qml to /usr/palm/applications/org.webosports.app.phone/views Feb 13 10:14:06 Ah wait Feb 13 10:14:08 but for period, it's 100, right? Feb 13 10:14:15 Seems I forgot a QML in there :S Feb 13 10:14:43 Need more COFFEE Feb 13 10:14:48 definitely! Feb 13 10:14:50 6:00 is not good time to get up on Saturdays Feb 13 10:14:54 :D Feb 13 10:15:17 I'll get some coffee too, it's a good idea Feb 13 10:16:00 UndefinedVariableException: variable 'coffee' has not been defined Feb 13 10:17:45 * dkirker waits patiently or a witty response :) Feb 13 10:18:22 dkirker: if only that didn't trigger a whole lot of random behavior, that'd be easier to debug :p Feb 13 10:18:29 lol Feb 13 10:20:14 var coffee = new Latte(["honey"],"non-fat") Feb 13 10:21:59 Tofe.drink(coffee) Feb 13 10:22:35 well.... maybe dkirker.drink(coffee) in that case. not sure how partial you are to a latte with honey ;) Feb 13 10:23:55 dkirker: in this case, it's Herrie that crashed Feb 13 10:24:14 lol Feb 13 10:24:28 I'll crash in 40 mins or so.... Feb 13 10:24:33 been a long week at work Feb 13 10:25:08 I'm already in week-end :p Feb 13 10:25:33 shush!! Feb 13 10:25:36 :P Feb 13 10:27:43 Herrie: I was thinking: to populate the db with geocoding data, maybe we could execute a little script just before starting the phone service Feb 13 10:28:20 or just before "starting" loadable-framework, but I don't really know how/by who the latter is loaded Feb 13 10:29:02 it could also be a dedicated systemd service Feb 13 10:31:16 which takes all that is in /var/lib/db/upgrade, and for each json file in there does a mergePut db8 command (https://github.com/openwebos/db8/commit/072cd15051d97ca372966f43069ac11f7bd679b7) Feb 13 10:32:15 that way we handle both first boot and later upgrades Feb 13 10:32:32 and it's kept a bit generic Feb 13 10:32:44 Yeah that sounds like a plan Feb 13 10:33:27 for the directory, let's say "/var/db/json-upgrades" ? As /var/db alreeady exists Feb 13 10:34:07 Tofe: I'm OK with what you seem appropriate Feb 13 10:34:38 The script in itself will be really short and easy, but I wonder in which package to put it Feb 13 10:34:47 maybe configurator's package? Feb 13 10:36:44 We won't even need to patch upstream, it can all be in a bbappend recipe Feb 13 10:38:32 Well. I think. Feb 13 10:47:40 Tofe: Well we don't really care about OWO upstream currently. So we can just fork if needed Feb 13 10:48:07 I don't think it will be needed; I just need to install a shell script and a systemd service Feb 13 12:39:40 mmh not sure if my initial idea with the script will work well Feb 13 12:40:30 The json files can be pretty big, and passing their content as a program argument might not work Feb 13 12:44:30 or... maybe as a little trivial node.js app? Feb 13 14:33:25 Herrie: do you have any idea what "db: no index for query" means? Feb 13 14:34:13 i'm querying com.palm.media.audio.album:1 for "name" Feb 13 15:15:38 nizovn let me see Feb 13 15:15:53 There needs to be an index defined for everything you query on in the db kind Feb 13 15:16:30 See: https://github.com/webOS-ports/mediaindexer/blob/master/files/db8/kinds/com.palm.media.audio.album Feb 13 15:16:40 There's no index for name, only albumName Feb 13 15:21:48 i have the same error for "albumname" Feb 13 15:25:46 mind the case Feb 13 15:25:48 albumName Feb 13 15:26:18 What's your query? Feb 13 15:28:07 luna-send -n 1 -a com.palm.systemui luna://com.palm.db/find '{"query":{"from":"com.palm.media.audio.album:1","select":["_id"],"where":[{"op":"=","prop":"albumName","val":"test"}]}}' -f Feb 13 15:28:18 same error Feb 13 15:34:59 Sorry my mistake should be albumname all lowercase Feb 13 15:35:51 You might want to try genre to search for instead Feb 13 15:35:58 Could be the index for albumname is wrong Feb 13 15:36:08 Need to research a bit in 30 or so mins Feb 13 15:40:00 ok, it's strange that only name doesn't work Feb 13 15:52:42 it works if i delete "collate" string Feb 13 16:06:31 ok I'm no db8 expert Feb 13 17:46:55 nizovn: It could be these kind definitions aren't 100% correct Feb 13 17:47:01 That's why you're seeing this Feb 13 17:47:07 I'll have a look into that later today Feb 13 17:47:27 Easiest to check is just to run the same query on TP with 3.0.5 Feb 13 17:47:41 If it's OK there, it's likely an issue with DB kind definition Feb 13 17:49:27 Herrie: are you at ease with node.js and mojoloader and services? Feb 13 17:51:09 Tofe: Not at all, but well, I can always dig up something :P Feb 13 17:51:14 What you're looking for Feb 13 17:51:26 Garfonso & DougReeder are way better with node.js Feb 13 17:51:32 Andolamin as well I'm sure ;) Feb 13 17:52:21 I'm trying to do the db8 upgrade js code using our node.js Feb 13 17:52:43 I'm nearly there, but now I'm struggling to make the Db8 calls work Feb 13 17:53:13 I need some PalmBus handle, but I would have thought this was automatic... Feb 13 17:54:15 At first I was just putting up a JS file to be run with node.js, and then I've moved to a luneos service, and now I'm a bit lost :p Feb 13 17:55:15 Garfonso & DougReeder should know a bit about this Feb 13 17:55:21 If you have code I can have a look too Feb 13 17:55:28 nizovn: Kind definition seems OK Feb 13 17:56:04 Herrie: let me put some pastes for the service, because I think using a raw node.js script is quite a deadend Feb 13 17:56:11 nizovn: This comes from 3.0.5 for the indexes: https://bpaste.net/show/35daebb261fb Feb 13 17:56:33 nizovn: Which seems identical to what we have Feb 13 17:56:51 nizovn: Maybe you can upload your code and I can have a look to see if I see something really obvious? Feb 13 17:56:57 maybe it's a bug in db8 with "collate", or maybe it's a feature Feb 13 17:58:52 nizovn: Does the same query work on 3.0.5? Feb 13 17:58:58 no Feb 13 17:59:57 Ah well... It could be that the sandbox indexes are not the final indexes that ended up on 3.0.5 somehow :S Feb 13 18:00:05 I think these are stubs for testing Feb 13 18:00:15 Could be final image shipped with something else Feb 13 18:00:19 I'll test with my TP Feb 13 18:01:07 Herrie: http://paste.ubuntu.com/15040268/ Feb 13 18:01:41 Herrie: the problems begin with DB.find Feb 13 18:02:47 Also, I don't even know how to properly start the service's command Feb 13 18:06:40 Herrie: here's my current standalone script for node.js, not working much better but much easier to call http://paste.ubuntu.com/15040345/ Feb 13 18:14:09 nizovn: For your query, seems you need to add collate to the query as well when it's in the index " Note that the collate property defined on a query must match the collate property defined on an index." Feb 13 18:14:16 Last line on: https://developer.lge.com/webOSTV/develop/web-app/app-developer-guide/db8/faq-db8/ Feb 13 18:14:41 ok Feb 13 18:14:56 it works on 3.0.5 Feb 13 18:16:14 nizovn: This works for me: luna-send -n 1 -a com.palm.systemui luna://com.palm.db/find '{"query":{"from":"com.palm.media.audio.album:1","select":["_id"],"where":[{"op":"=","prop":"name","val":"test","collate":"primary"}]}}' -f Feb 13 18:17:15 Herrie: ok, thanks Feb 13 18:27:44 Tofe: I can take a look today, if you want Feb 13 18:28:00 qemu latest nightly fine? Feb 13 18:28:49 Andolamin: that'd be nice :) I think I mainly lack general palm knowledge Feb 13 18:29:18 Herrie: latest nightly is ok, regarding lnc? Feb 13 18:29:45 NP, standalone node.js services don't work the same way as the documented node.js services. Needs to be written differently. Feb 13 18:32:01 Andolamin: my goal is to write a one-shot script that will take the json files in /lib/db/json-upgrades, fill or modify the db accordingly, and exit Feb 13 18:32:22 Tofe: Should be just our background is broken in N4 & TP for upgrades Feb 13 18:32:33 typically it would be run at first boot to populate the db, or on a package update to update some values Feb 13 18:32:37 New install & Qemu should be fine Feb 13 18:33:09 Tofe: Couldn't you simply abuse FIrstUse app for that :P ? Feb 13 18:34:09 Herrie: well, yes, but that feels strange; and it wouldn't work for an update Feb 13 18:34:39 Tofe: True ;) Feb 13 18:35:04 and the js script is almost ready, it's the environment to start it that isn't Feb 13 18:35:08 Tofe: Update service should take care of any kinds of updates Feb 13 18:35:26 Tofe: You can simply register it as a service and let systemd start it? Feb 13 18:35:55 what is the "it" ? Feb 13 18:36:59 TofE: The service? Feb 13 18:37:19 At least that's how I think it's done for other services Feb 13 18:37:23 systemd service, node.js service, update service ? Feb 13 18:37:43 everything is named service around here :p Feb 13 18:41:56 Herrie: I could easily plug my script into an additional command of the update service Feb 13 18:42:07 but I don't know how to trigger it :p Feb 13 18:49:34 Tofe: You seen: https://github.com/webOS-ports/meta-webos-ports/blob/fido/meta-luneos/recipes-luneos/services/org.webosports.service.update.bb and https://github.com/webOS-ports/org.webosports.update/tree/master/service/files Feb 13 18:49:40 Something similar could be used I guess Feb 13 18:49:53 But it's a bit overkill I think to do it seperately Feb 13 18:49:59 Garfonso might know more :P Feb 13 18:50:39 I wouldn't set it up as a separate service unless it's something you expect to run every boot. Feb 13 18:56:48 Update service runs with a fixed interval I think Feb 13 18:56:55 Might be easiest to extend that somehpw Feb 13 18:57:00 Saves you all the other hassle Feb 13 19:10:32 No I want it at first boot and then on demand Feb 13 19:49:58 Tofe: It's strange you can use configurator to create kinds, set permissions, and filecache but not for loading data into db8 Feb 13 19:51:35 configurator can be used for loading data too Feb 13 19:52:17 feniksa: Can it? Feb 13 19:52:21 You have any examples? Feb 13 19:52:46 feniksa: I couldn't really find it.... Feb 13 19:52:48 Herrie: Give me 5 minutes, I will try find json file with example Feb 13 20:00:07 Herrie: ahrr, all devices are turned off... need more time :-) Feb 13 20:16:33 feniksa: No problem Feb 13 20:16:33 Herrie: sorry, you was right Feb 13 20:16:37 Configurator can't upload data Feb 13 20:16:40 itself Feb 13 20:16:45 Only register kinds / permissions Feb 13 20:16:53 By the way we forked db8, so in case you have something nice ;) Feb 13 20:16:54 (just watch to sources) Feb 13 20:17:38 Herrie: Currently I am disscussing with top managers to port some fixes from closed DB8 to oopensource Feb 13 20:17:41 :-) Feb 13 20:17:45 Give your link to db8 Feb 13 20:17:49 *fork Feb 13 20:18:05 feniska :D Feb 13 20:18:06 That's nice Feb 13 20:18:10 You work for LG SVL? Feb 13 20:18:44 feniska: We just forked, didn't switch yet, but at least we can if we want :) https://github.com/webOS-ports/db8/tree/webOS-ports/master Feb 13 20:19:31 Herrie: You work for LG SVL? - yes Feb 13 20:21:37 Herrie: Added to watch list :-) by the way, I have my own version of db8 (fork) - https://github.com/feniksa/indb8 maybe, it will be intresting for you to port some changes from indb8 Feb 14 01:49:59 Tode: running this script with node.js doesn't work? **** ENDING LOGGING AT Sun Feb 14 02:59:58 2016