-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Clock Info -> extra data on the clock face #2226
Comments
... also if using clock_info it should probably remember what setting it was scrolled to last time the clock was shown |
… added to the screen easily (ref #2226)
Ok, just added something... So as an example:
So this should be really easy to add to clock faces now... |
@peerdavid any thoughts on this? How does this fit with what you're doing with clock_info at the moment? I think we should probably do with ... and maybe it should store the currently shown options in a settings file |
@gfwilliams When clock_info and these things crystallize a bit, should something be appended to the Clock Faces guide? If I get to learning it first I could maybe contribute to that later. |
Yes, absolutely! And it might be worth mentioning the clock module too |
Hi @gfwilliams, sry forgot to answer :/ Honestly, I'm not sure if I understood it correctly, but the |
It basically abstracts the user interaction away, so you call it and then all you have to worry about is drawing the information. Swiping on the watch screen then cycles through all the info. ... having said that it doesn't handle calling I need to actually add it to some clock faces now, but it's just a few lines to do now. |
Ohhh yea thats pretty cool, thank you! I will later on update my clocks :D |
… added to the screen easily (ref espruino#2226)
There is now an app which adds sunrise/sunset to this, if someone wants to see how to add their own clockinfo-only app: https://github.com/espruino/BangleApps/tree/master/apps/clkinfosunrise Also tapping on an info item will call the
You can then tap to focus, and swipes change the focused item - which is also remembered next time you load the clock. I'll update |
…2226) Made fonts smaller to avoid overlap when (eg) 22:00 Allowed black/white background (as that can look nice too)
I think clock_info's are the future. I'm very grateful for the work thats been done here. I have already replaced my Pastel Clock with Lato. And the great thing is that it will benefit from all the future clock_info's that become available. Would be good to have a firmware Clock_info and a Bluetooth ID clock_info. I can see that calendar_info now exists. Would ideally like a configurable date format clock_info. And a day of the week info (Full day or Abbreviated day. Also would be better to use Camelcase for the Day element then the developer can call touppercase() or tolowercase() on the string. For example return 'Thursday' or 'Thu' and let the developer decide to call touppercase() to get THURSDAY or THU. I personally prefer to display Thursday, it just looks less 1970s that way. |
It would also be great to have a GPS clock info that would to show lat / lon and OS Grid reference. Eastings and Northings are pretty useless (IMHO), OS grid reference is much more useful when you have an OS map in your hand. However I think this comes back to my preference for the developer to be able to pull out device information through a system call, rather than having to setup and manage event handlers which means the developer has to work out of the GPS is already on or not, and there are other complexities like making sure you dont create a 2nd event handler and that you correctly clear down the event handler. BangleJS has moved to the system call approach with If I had more time I would have another crack at the lower power option for the GPS. |
Great! I think for clocks, clock_info is definitely the way forward
Well I'm always open to merging PRs :) I see you did the firmware widget already. OS grid reference is a great one - because it's basically UK only it really doesn't make a great deal of sense to add it inside a clock app, but as an add-on it's perfect. Not sure if you saw but I already had some example code for other Espruino devices which would be easy to use: http://www.espruino.com/Pocket+Walking+GPS
I do listen sometimes :) http://www.espruino.com/Reference#l_Bangle_getGPSFix |
I've thought up some configurations for clock info's that could be implemented. If I know myself I will probably not get to doing it - but if I do I'll leave a comment here.
I'll probably add more ideas here. |
I like the third one - resetting to a specific entry on lock. I guess we'd need to do a bit of work to allow clockinfo settings to be per-clockface. In terms of the others, I'm not a massive fan of deliberately restricting things... Have you actually really had a big issue where you accidentally selected a clockinfo and changed it? |
And since some clockfaces implement multiple clock info sections - have clockinfo settings PER CLOCKINFO SECTION in a clockface 😂 - maybe take one step at a time here whenever someone gets to maybe implementing this.
No, not really. I thought it could be a way to make it easy to create clock faces with complications in some more classical sense. Where they often aren't as interactive. |
I think it's fine to close this now - we have clockinfos and a lot of stuff uses them, so I think we're good |
I'm seeing quite a few clocks now that provide extra data on the watch face - like steps or weather. Often there may even be an existing clock that is then cloned to make it show that extra data - and then the clock's code is duplicated, as well as the code to show the data.
It'd be nice to:
The idea of widgets was to display this kind of data, but right now they're relegated to a small 24px strip at the top and bottom of the screen.
We also have clock_info now which is a really neat system that allows a clock to display information that can be scrolled through (and added to with plugins): https://github.com/espruino/BangleApps/blob/master/modules/clock_info.js
I'm open to ideas here - just thinking aloud really, but:
tl,tr,bl,br
widget areas - we could have a new widget areaclk
or something, and then a library that allowed those widgets to be displayed wherever made sense on the clock face. Widgets would then need to look atthis.w
andthis.h
to figure out how much space they had available.clock_info
that handles non-interactive clock widgets?The text was updated successfully, but these errors were encountered: