These are chat archives for abranson/rockpool

16th
Jun 2016
ruff
@rufferson
Jun 16 2016 08:07
Hi @abranson - do you still observe high cpu usage for rockpool on latest commit? I have strange battery drain issue on the phone but cannot track it down to anything particular, from time to time i'm checking CPU and it's always fine. however i think when i check it i'm waking the phone so I wouldn't be able to see what happens when it sleeps. Also it seems to be bound to the situation when there's no internet connectivity - which again hints it could be bound to the websync part of the rockpoold - but cannot find any evidences
Andrew Branson
@abranson
Jun 16 2016 10:06
I'd seen the -uint and wondered if it was right, so when you said that I changed it and the calendar entries returned.
I'm not sure if pebble's support TODOs. The organizer adapter I wrote certainly didn't look for them
I haven't noticed the hanging/high CPU in this latest build, no! It seems fine, though I think the notifications are misbehaving - I had a completely blank one the other day, and some are being missed I think. I should disable the removal so I can check what's actually been sent to the watch.
Things that currently drain my Jolla battery:
  • owncloud-daemon. Occasionally spams 'IODevice not ready' to the journal, 100% cpu. Needs killing to recover
Andrew Branson
@abranson
Jun 16 2016 10:20
  • caldav-client. No idea why, but I notice my calendars get stale, and it often sits at 100% CPU for ages while it tries. have to delete my phone calendar db to fix it
and I'm sure there are more :)
Andrew Branson
@abranson
Jun 16 2016 10:25
but i haven't used the websync yet
also, i've traced the phone call crash bug to the handler->deleteLater. I think the hangup is being signalled twice in quick succession, so both are handled at the same time and the handler's gone before the second one gets there. might just disable the delete for the moment. it's a memory leak, but one object per call isn't going to fill anyone's RAM very quickly
ruff
@rufferson
Jun 16 2016 10:59
Ah, so that might be the reason, I've recently linked my cladav to jolla, that's where I realized jolla does not support todos. And it's probably caldav-client milking out the battery
as for pebble - there's nothing required from pebble to support it, I'm planning to push them as simple pins.
each notification which is delivered to the phone should have corresponding json entry saved at .local/share/rockpool/<mac>/timeline/<guid>
so if you can track down those broken notifs to the json files - can look at what's wrong with them
*to the watch
Andrew Branson
@abranson
Jun 16 2016 11:09
how do you mean simple pins? how will the TODOs appear?
and then attach a single action to it - mark complete
on each refresh you'll get all todos for today - which will include all non-complete timeless todos as well as those with exlicit today datetime
timeless will get automatically time as end of day, timed will have original time
once you action-complete todo - it disappears from the list
Andrew Branson
@abranson
Jun 16 2016 19:53
that will get in the way of the calendar entries though won't it? does it do that in the official apps? it doesn't seem to be what the timeline is intended for
ruff
@rufferson
Jun 16 2016 19:58
why? I'm not sure how todos work on android, but apparently there're watchapps which are making this. Todo is a simple time related entry, timeline is for time related entries. I'm not the only one with such thinking, simple googling pointed me to let say this http://www.pebblestuff.io/pebbletimewithmichael/a-very-simple-way-to-manage-to-dos-on-a-pebble-time/
I'm also searching for some api for jolla weather to push similarly weather information from local weather provider to pebble. THat's kind of thing apparently implemented in andorid, and I liked it there
so timeline is not about calendar, it's about... well, timeline
Andrew Branson
@abranson
Jun 16 2016 20:01
yeah, but weather info etc is time-related. TODOs aren't - they'll keep running down the timeline, getting in the way until you delete them.
i mean, some people might like it but it sounds more like an app than default behaviour
ruff
@rufferson
Jun 16 2016 20:04
not all of them, you can put a deadline on todo, then it will be time-bound. Tomorrow is a new day, but incomplete todos are still waiting for completion. And anyway it will have an option in settings similar to sync calendar. It's just a waste of organizer adapter - to have it and not to use it
bcz run down the todos will be the same as down the incidences
so the code could be reused, with small adjustment
Andrew Branson
@abranson
Jun 16 2016 20:07
a todo task with a deadline could enter the timeline, but it's the tracking of the others that i think is weird. very much like the weather idea though. i think that's built-in on the official apps.
ruff
@rufferson
Jun 16 2016 20:09
buitl-in weather is something we need to clarify with Kath at all, but i think it uses certain similar approach - note it's mentioned you need latest version of the android pebble app for weather to work
Andrew Branson
@abranson
Jun 16 2016 20:10
sure. should wait for her to update libpebble - it's not fair to bother her before she's put it on there
ruff
@rufferson
Jun 16 2016 20:10
yup, i'm not in rush either, it's just on my todo :)
Andrew Branson
@abranson
Jun 16 2016 20:11
:)
ruff
@rufferson
Jun 16 2016 20:13
so let see, if it's going to be not that simple as i think - i wouldn't push a new codebase just to make myself happy. but if i manage to make todos with trivial modifications and/or no significant loc increase - i'll commit that :)
Andrew Branson
@abranson
Jun 16 2016 20:13
i'd quite like to get a 1.0 out with the timeline stuff stable, the remaining bugs fixed, and the canned messages
i haven't tried the login stuff yet, is that all finished?
ruff
@rufferson
Jun 16 2016 20:15
oh, apparently it will be after 1.0
yes, login is finished, I'm working on canned messages gui atm
the only thing missing from timeline api is account token
ah, need to push last commit for login - cache invalidation
unless i did it already?
no i didn;t
Andrew Branson
@abranson
Jun 16 2016 20:22
my battery seems to be taking a pounding from something in the last couple of days
i should get some profiling tool or something. do you know one?
ruff
@rufferson
Jun 16 2016 20:49
no, i'm using hungermeter to find whether sleep state is affected, but nothing what can point to actual app