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

Weather widget - day/time in UTC #360

Merged
merged 7 commits into from
Sep 11, 2017
Merged

Weather widget - day/time in UTC #360

merged 7 commits into from
Sep 11, 2017

Conversation

trap000d
Copy link
Contributor

@trap000d trap000d commented Sep 6, 2017

utc_offset option/function is not need anymore

@lcpz
Copy link
Owner

lcpz commented Sep 6, 2017

Not working for me: it gives a nightly icon, while it's AM here.

@trap000d
Copy link
Contributor Author

trap000d commented Sep 6, 2017

Hmm, on my 3 computers it works properly. I've added some debug output: https://github.com/trap000d/lain/blob/debug/widget/weather.lua
Could you give it a try and send me output from ~ /.xsession-errors - it should look like:

2017-09-07 09:52:42 W: Times:1504734762 43200 1504722990 1504764132 1504699200 1504656000
2017-09-07 09:52:42 W: Weather icon:10d

@lcpz
Copy link
Owner

lcpz commented Sep 7, 2017

2017-09-07 17:51:55 W: awesome: Times:1504799515 3600 1504845358 1504891431 1504735200 1504731600
2017-09-07 17:51:55 W: awesome: Weather icon:11n

Icon is n, while it should be d.

@trap000d
Copy link
Contributor Author

trap000d commented Sep 8, 2017

After looking at your logs... Well... I've forgotten of DST. Also I've tried to optimize code a bit. Here the debug version. Please test if it works on your machine.
trap000d@43b9114

@lcpz
Copy link
Owner

lcpz commented Sep 8, 2017

It's OK now.

Remove debugs, git rebase -i HEAD~3 to squash and push --force into your master, so I can merge.

Wiki has to be updated too.

@trap000d
Copy link
Contributor Author

OK. 59f99ea

@lcpz lcpz merged commit 7d8307d into lcpz:master Sep 11, 2017
@lcpz
Copy link
Owner

lcpz commented Sep 11, 2017

Thank you.

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

Successfully merging this pull request may close these issues.

2 participants