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

Sunrise/Sunset Times Cut Off #8

Open
parryg opened this issue Dec 3, 2020 · 11 comments
Open

Sunrise/Sunset Times Cut Off #8

parryg opened this issue Dec 3, 2020 · 11 comments

Comments

@parryg
Copy link

parryg commented Dec 3, 2020

Would there be any reason why the times for sunrise & sunset are cut off when 24h format is enabled?

image

@italoboy
Copy link
Owner

italoboy commented Dec 4, 2020

It was fixed, be sure you are in the latest update.

@parryg
Copy link
Author

parryg commented Dec 4, 2020

Strange! The code I used was just before I posted as I've never used the script before.

@parryg
Copy link
Author

parryg commented Dec 4, 2020

Just tried the code again and have the same issue, it happens when I set these to false.

// 12 hours time
const _12Hours = false
const diagram12Hours = false

@italoboy
Copy link
Owner

italoboy commented Dec 4, 2020

I don't have this issue and never seen it reported by far, make sure your padding line 335 is correct. What device are you?!

widget.setPadding(3, 10, -3, 10)
widget.spacing = -1.2

@parryg
Copy link
Author

parryg commented Dec 4, 2020 via email

@parryg
Copy link
Author

parryg commented Dec 4, 2020

I'm using an XR, the numbers look correct to me.

image

@italoboy
Copy link
Owner

italoboy commented Dec 4, 2020

Try this and let me know

widget.setPadding(3, 9.9, -3, 9.9)

if not try

widget.setPadding(3, 10.1, -3, 10.1)

And you can longer that by widget.spacing = -2

@parryg
Copy link
Author

parryg commented Dec 4, 2020

Still no luck, no idea what's causing it!

@foebay
Copy link

foebay commented Dec 6, 2020

For me, it seems that it is missing the “tens” place value. It should read 8:06. But instead with the missing place it reads 8:6. I’m using the 24hr setting. A running it on an iPhone Xs Max.
66F154D0-E82C-4599-8EEB-D88802DAA1F7

@foebay
Copy link

foebay commented Dec 6, 2020

Great work btw. This script here is the best I’ve seen by far. I really like it a lot 👍

@italoboy
Copy link
Owner

italoboy commented Dec 6, 2020

Since this issue is rare, please come to our Discord server in order to discuss for solving., you will find the invitation link at Reddit r/Scriptable.

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