-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agenda: displaying calendar colour and name #2117
Conversation
Great, thanks! Yes, just to check - did the PR get merged? If so I'll have to do a new Gadgetbridge release for the Play Store soon. |
Well, it has been approved but not merged yet, I'm not sure how long will that take. |
Merged now |
Great! |
Hi! Is this still working for you? I've had a report about Gadgetbridge not syncing the calendar and after trying it's not working for me either. It seems that if you enable Calendar Sync in Gadgetbridge and click Any thoughts? Is there some trick we're missing? |
Hi, I have noticed sometimes some events are out of sync (e.g. it takes time to delete old events). I'm not sure what exactly is kicking the TL;DR |
Thanks! Yes, I saw the CalendarReceiver kicking going on. Just in my case everything apart from that seemed to work. Actually I just started stepping through, and it turns out that for some reason Gadgetbridge hadn't been given permissions to my calendar! I checked and Gadgetbridge definitely requests access but my phone (Redmi) has done this kind of thing before like ignoring Did you have to do anything, or did it 'just work' for you? Actually there's no reason that Bangle.js couldn't kick off force_calendar_sync on reconnect. After all, it would save one to-and-fro of data. Do you think that makes sense? But... as you say, calling |
Well, I haven't used MIUI in a long while, but I bet there can be problems! At most I had to set it manually from the settings (I don't remember exactly if the request was prompted the first time, but most likely yes), so no real special step (but I'm on a LineageOS based). If you did something for your Redmi, we could add the steps somewhere (wiki? agenda's README?). I agree with the bangle asking directly, it shouldn't break anything (as far as I can see, not even if we aren't using the calendar) and with your fix it looks much neater! |
Ok, great! I'll push a change to request the calendar sync. And yes, I've updated https://github.com/espruino/EspruinoDocs/blob/master/info/Gadgetbridge.md so it'll go live on http://www.espruino.com/Gadgetbridge next time I update the website. One thing I have noticed is Gadgetbridge can cause a FIFO_FULL error when syncing calendar (that's mainly my fault for not having flow control in Gadgetbridge yet) but I noticed that the description of calendar events can be huge, especially when you have something like a video call. Maybe we should attempt to crop those to a sensible length? |
Great, thanks! Yeah, probably that would be the best, do you have any idea of a good number? Is there any strict limit we should respect or just bigger messages increase the probability? |
It's just bigger messages. I guess maybe we think about what we can actually sensibly display? 200 chars? Also, other things that might matter:
|
Yeah looks like a fine value.
|
Ok, great. I think probably for now let's just get rid of And yes, the color thing won't save many characters - it might just be a little tidier |
Well, it's nice to give a little more context rather than just the colour if you have multiple calendars, but if you see it useless, let's get rid of it |
Well, not useless, but maybe not useful at the moment - and anything we can do to reduce the amount of data we send the better :) |
I already submitted a pull request on gadgetbridge for this to be supported, it might take a little time for users to see this actually working.