Skip to content
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

Add date to time #17

Closed
xJoe opened this issue Jun 18, 2016 · 8 comments
Closed

Add date to time #17

xJoe opened this issue Jun 18, 2016 · 8 comments

Comments

@xJoe
Copy link

xJoe commented Jun 18, 2016

Hi,
great watchface! Just found it today and it will take me quite some time to figure out all possible settings. Fantastic work and all the possibilities to adopt layout to my preferences. Thanks for all the work you put in this!
I was looking for a possibility to add the date (i.e. June 18) below the current time. Is there a way to do this? Tx.
Joe

@mddub
Copy link
Owner

mddub commented Jun 18, 2016

Thanks! Showing the date is not supported right now, but it's a high priority on the roadmap. For now, you could show it in the status bar as part of a "custom URL" status (with the "multiple" status option if you want to show other status text above/below it).

@mddub
Copy link
Owner

mddub commented Jun 18, 2016

http://www.timeapi.org/ lets you do this fairly easily, with support for a specific time zone and lots of formatting options:

For example, I would use this for PDT:
http://www.timeapi.org/pdt?format=%25a%20%25b%20%25d

@xJoe
Copy link
Author

xJoe commented Jun 19, 2016

Thank you. I try using the URL you posted (Custom URL Text) but it displays only -. If I copy the URL to safari the date is displayed. Can you give me a hint what I do wrong?

@mddub
Copy link
Owner

mddub commented Jun 20, 2016

You're right: this ended up revealing an absurdly subtle bug. Short story is that it's fixed in the latest release, so if you reinstall the watchface, that URL should work now.

Long story is that Pebble has a slight inconsistency across platforms. The emulator doesn't decode the data returned by the config page in the same way as the iOS/Android apps, and Urchin was assuming the emulator's behavior reflected all platforms. As such, a URL like the one from timeapi.org (containing %) kind of breaks everything. I've submitted a pull request to fix the inconsistency in the Pebble emulator. Until then, I added a workaround to Urchin in 101532.

Either way, I'm suggesting you show the date via an extra web request only as a slightly crazy last resort until the watchface has real support for it. :)

@tuzoenduro
Copy link

One question, how do we add a +2 to the timeapi setup?
I live in France, so GMT+2, but so far I can only put GMT otherwise I get errors.

Minor issue, as it only means that the new date will roll at 2am instead of midnight, but still...

Thanks!

@mddub
Copy link
Owner

mddub commented Aug 25, 2016

@tuzoenduro see the http://www.timeapi.org/ docs. Chronic has a list of all the format options and time zones somewhere.

Or I believe you can do something like
http://www.timeapi.org/gmt/in-two-hours?format=%25a%20%25b%20%25d

@xJoe
Copy link
Author

xJoe commented Sep 17, 2016

@mddub
Copy link
Owner

mddub commented Oct 20, 2016

The current release, v0.0.13, adds a "Date" status bar option with configurable format.

If anyone is interested in non-English translations, please make changes to status_formatters.js and submit a pull request.

@mddub mddub closed this as completed Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants