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

feat: show hourly forecast #455

Merged
merged 7 commits into from
Oct 27, 2024

Conversation

Ryuno-Ki
Copy link
Contributor

This took me quite some trial and error to figure out.

This took me quite some trial and error to figure out.

Signed-off-by: André Jaenisch <[email protected]>
@Ryuno-Ki
Copy link
Contributor Author

I want to add an example_response.json to the repo and also respect day/night information as suggested in my last PR before I open this for inclusion.

That being said, by opening a PR now I can invite others to check it out and run locally. Feedback welcome.

@Ryuno-Ki Ryuno-Ki marked this pull request as draft October 10, 2024 14:34
NeoVim tried to be helpful.

Signed-off-by: André Jaenisch <[email protected]>
@trap000d
Copy link

Hi @Ryuno-Ki,

Would you consider to [optionally] add popup on mouse hover?

    weather_widget:connect_signal("mouse::enter", function()
        weather_widget:set_bg(beautiful.bg_focus)
        weather_popup:move_next_to(mouse.current_widget_geometry)
    end)

    weather_widget:connect_signal("mouse::leave", function()
        if weather_popup.visible then
            weather_widget:set_bg('#00000000')
            weather_popup.visible = not weather_popup.visible
        end
    end)

This was a nice contribution!

Co-authored-by: trap000d

Signed-off-by: André Jaenisch <[email protected]>
@Ryuno-Ki
Copy link
Contributor Author

Done.

This should ease the job of updating this widget.

Signed-off-by: André Jaenisch <[email protected]>
This was highly requested. I hope I catched all cases.

Signed-off-by: André Jaenisch <[email protected]>
@Ryuno-Ki Ryuno-Ki changed the title WIP: feat: show hourly forecast feat: show hourly forecast Oct 22, 2024
@Ryuno-Ki
Copy link
Contributor Author

I think I have everythink now. I can see unrelated failures in luacheck to this extension.

@streetturtle Mind taking a review on this?

@Ryuno-Ki Ryuno-Ki marked this pull request as ready for review October 22, 2024 07:30
@trap000d
Copy link

trap000d commented Oct 22, 2024

All works great, thanks a lot.
The only issue I could spot: all night icons files are missing.
You might want to add all them to corresponding directories.
image

I removed the executable flag from all of them.

Signed-off-by: André Jaenisch <[email protected]>
@Ryuno-Ki
Copy link
Contributor Author

Good catch!

I only need to add a prefix when it is not day.

Signed-off-by: André Jaenisch <[email protected]>
@streetturtle streetturtle merged commit 81cd341 into streetturtle:master Oct 27, 2024
1 check failed
@streetturtle
Copy link
Owner

This is great! Thank you! 👍

@Ryuno-Ki Ryuno-Ki deleted the weather-hourly-forecast branch October 28, 2024 07:19
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.

4 participants